Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, good evening!
As I am a beginner in iLogic I have another question to you:
I have an iLogic rule for parts to create an userdefined Multivalue Parameter in the active part. I would like to use this rule in an assembly for all the parts referenced in the active assembly.
Dim oPartDoc As Document oPartDoc = ThisDoc.Document If oPartDoc.DocumentType = kPartDocumentObject Then Dim oPartCompDef As PartComponentDefinition oPartCompDef = oPartDoc.ComponentDefinition Dim oParams As Parameters oParams=oPartCompDef.Parameters Dim oUserParams As UserParameters oUserParams=oParams.UserParameters Dim oAwesomeParameter As Parameter Try otester = oUserParams.Item("SI_Z1") Catch oInsulationType = oUserParams.AddByValue("SI_Z1", " ", kTextUnits) MultiValue.SetList("SI_Z1", "g", "kg", "l", "m2", "m3", "mm", "PC", "STK", "t") End Try End If Parameter.Param("SI_Z1").ExposedAsProperty = False Parameter.Param("SI_Z1").IsKey = False
I have tried a lot of different ideas to create a loop but it didn't work!
It would be great if you could give me a solution for this problem.
Thank You very much for help in previous
Solved! Go to Solution.