Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning everyone.
I have this piece of code and would like to implement a condition.
Basically this part should work like this:
if the rule runs in an .IPT file have this run
if the rule runs in an .IAM file ignore the part
Do you think it is possible?
'If "MaterialType" does not exist, create it and set up as above
oMyParameter = ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
oParameter = oMyParameter.AddByValue("MaterialType", iProperties.Material, UnitsTypeEnum.kTextUnits)
MultiValue.List("MaterialType") = iProperties.Materials
InventorVb.DocumentUpdate(False)
iProperties.Material = InputListBox("Select a Material", MultiValue.List("MaterialType"), parameter("MaterialType"), Title := "iProperty Helper", ListName := "UNOFFICIAL INVENTOR")
parameter("MaterialType") = iProperties.Material
Solved! Go to Solution.