
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I setup a basic routine to generate custom iProperties for a file:
'Checks To see If the following iProperties exist and creates them if necessary
Dim FabProcess As String = "FABRICATION PROCESS"
Dim Inspect As String = "INSPECTION REQUIRED (Y/N)"
Dim merge As String = "MERGE"
Dim finish As String = "FINISH"
customPropertySet = ThisDoc.Document.PropertySets.Item _
("Inventor User Defined Properties")
Try
prop = customPropertySet.Item(FabProcess)
prop = customPropertySet.Item(Inspect)
prop = customPropertySet.Item(merge)
' prop = customPropertySet.Item(finish)
Catch
' Assume error means not found
customPropertySet.Add("", FabProcess)
customPropertySet.Add("", Inspect)
customPropertySet.Add("", merge)
' customPropertySet.Add("", finish)
End Try
'output the custom iproperties and update the file
RuleParametersOutput()
InventorVb.DocumentUpdate()
Eveything runs fine until I un-comment the "finish" lines.
Any ideas?
Solved! Go to Solution.