简体   繁体   中英

How to retrieve list of layers from dwg file using derivative api or Autodesk.forge library c#

I am working on Autocad using C# so need to know whether there is any way to get flat list of layers from the dwg file (using urn).

Right now I am using " GetModelviewPropertiesAsync " method of Autodesk library, but this is giving me of hierarchical data and it is not efficient to iterate through each loop.

Also tried this api Link . This is also not giving me a flat list .

Please help.

The Forge Model Derivative APIs only provide the structured properties. Forge Viewer obtains the layers by traversing through the properties (just once) after loading the urn. Is there any reason why you'd need to traverse the properties in a loop?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM