cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

J-Link examples

ptc-443146
1-Newbie

J-Link examples

Does anybody have a J-Link example of hiding a layer? Also, an example of checking assembly components to see if they are hidden? I am using layer.SetStatus(DisplayStatus.LAYER_HIDDEN) and component.GetIsVisible(), respectively. However, I am not getting the results I was expecting.
2 REPLIES 2
pstephens
6-Contributor
(To:ptc-443146)

Not sure if this is exactly what you want but my _CURVES and _SURFACES layers are blanked when I create them using the code below: nLayer.CreateLayer("_CURVES").SetStatus(DisplayStatus.LAYER_BLANK); nLayer.CreateLayer("_POINTS"); nLayer.CreateLayer("_SURFACES").SetStatus(DisplayStatus.LAYER_BLANK); Hope this helps

Not exactly. I am trying to find any hidden components in an assembly and add them to a layer. It looks like you can not do it. I have a problem logged with PTC and it has been forwarded to a developer. Thanks for the help anyway.