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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to get all layers in drawing workbench (hidden as well)?APIs are giving only unhidden layers .In part/assembly workbench all layers can be obtained.

ssawheny
1-Newbie

How to get all layers in drawing workbench (hidden as well)?APIs are giving only unhidden layers .In part/assembly workbench all layers can be obtained.

I tried all apis

ProMdlLayerVisit

ProMdlLayersCollect


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
gkoch
1-Newbie
(To:ssawheny)

I would expect more reports about this, if there was a general limitation of ProMdlLayerVisit() in drawings.

It should return all layers, hidden or not in all modes (where layers exist).

Of course the layer labeled "Hidden items" will not be returned, as it is used for the hide/Unhide mechanism.

Also make sure whether a layer of the expected name actually exists in the drawing (in the UI layers from models are also listed).

Top Tags