5 Oct 2016

Entity Handle from DWG file in Viewer

Default blog image

When you open a modelĀ in the Viewer that was created from a DWG file then you might want to be able to check the Handle value of the selected entity.

This is something that you can get from the object's properties through externalId:

As Jeremy mentioned it in the comments section, if the source seed CAD file is a Revit RVT model, the externalId will return the Revit element UniqueId property.


Related Article

Posted By

Adam Nagy

Follow @AdamTheNagy Adam Nagy joined Autodesk back in 2005 and has been providing programming support, consulting, training and evangelism to external developers. He started his career in Budapest, then worked in Prague for 3 years and now lives in South England, UK. At the moment focusing on Inventor and Fusion 360, plus cloud and mobile related technologies. Adam has a degree in Software Engineering and has...