Message 1 of 13

Not applicable
12-17-2015
05:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to access a drawing's custom iproperties using the following code. When I Debug the customPropSet variable I get nothing, and when I run the complete macro it does not recognize the custom iproperty values. Am I missing something?
' Get the active document. Dim drawDoc As Document Set drawDoc = ThisApplication.ActiveDocument ' Get the custom property set. Dim customPropSet As PropertySet Set customPropSet = drawDoc.PropertySets.Item("Inventor User Defined Properties") ' Get the custom property named "FRAME NUMBER". Dim frameNo As Property Set frameNo = customPropSet.Item("FRAME NUMBER") ' Get the custom property named "QUANTITY". Dim frameQty As Property Set frameQty = customPropSet.Item("QUANTITY")
Thanks in advance.
Solved! Go to Solution.