Quantcast
Channel: Manufacturing DevBlog
Viewing all articles
Browse latest Browse all 516

Is this object supported by the API?

$
0
0

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

 


Viewing all articles
Browse latest Browse all 516

Trending Articles