Is this object supported by the API?

<?xml encoding=”UTF-8″>By Adam Nagy

If you know how to create a given object through the UI then it’s quite easy to tell if it’s supported by the API or not:
1) Create such an object 
2) Select it in the User Interface
3) Debug into a VBA code like the one below and check in the Watches window what info you get. If its Value is something not very useful like “Nothing” then unfortunately it’s not supported

Sub GetObject()
Dim obj As Object
Set obj = ThisApplication.ActiveDocument.SelectSet(1)
End Sub

E.g. selecting a Welding symbol will produce such result:

Weldingsymbol

 


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading