Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

create a new propertyset

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
129 Views, 0 Replies

create a new propertyset

When I execute the following
Set oNewPropertySet = oPropsets.Item("PartPropertySet")
'If PropertySet does not exist then add the new PropertySet
If Error Then
MsgBox "in Error"
'Add the new PropertySet
Set oNewPropertySet = oPropsets.Add("PartPropertySet")
MsgBox "in if after addPropertySet"
'Add the new Property to the new propertySet
Call oNewPropertySet.Add("P1", "Eriez Part Number", 2)
Call oNewPropertySet.Add("P2", "Drawing Number", 3)
Call oNewPropertySet.Add("P3", "Description of Part", 4)
Call oNewPropertySet.Add("P4", "Material", 5)
MsgBox "in if after addproperty"
End If

If the propertyset is not present I abort on the
Set oNewPropertySet = oPropsets.Item("PartPropertySet")
It does not look for error and do error logic

Any Ideas
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report