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.
Jul 28, 2015
06:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 28, 2015
06:55 AM
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.
Labels:
- Labels:
-
Assembly Design
1 REPLY 1
Jul 31, 2015
12:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 31, 2015
12:57 PM
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).
