Retrieve current work layer

Hi, how to retrieve the current work layer using vb .net?

Thanks

LIM
NX 10.0.3.5 MP1
WINDOWS 7

You can get the work layer with something like the following:

dim curWorkLayer as Integer
curWorkLayer = theSession.Parts.Work.Layers.WorkLayer

after executing the code above, the variable, curWorkLayer, would hold an integer value representing the current work layer number.

Thanks, got it!