- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
greetings, can anyone help me around with the code i am using in inventor to change the repeated Parts Multivalue text parameter from the assembly level (Eg. to change value "OFF" for a feature appearance, where the same part is used in different names in an assembly (500 times) so, what am i trying is not to open individually the parts i am trying to run the code which shown below (and the CODE IS VERY GOOD FOR THE METRIC VALUE CHANGE BUT ONCE IT IS A MULTIVALUE THE CODE IS NOT WORKING ITS RUNNING BIT NO CHANGES HAPPENING)...Will be a great help if any one helps me in changing this multivalue parameter..
Note:
i) i cannot get the 500 parts repeated file name list, but the existing code works fine for metric values with variable part file names in the assembly (see text or multi values needs some alteration).
Attaching a part file image/ Assembly little one for reference
Below the used code:
SyntaxEditor Code Snippet
' set a reference to the assembly component definintion.' This assumes an assembly document is open. Dim oAsmCompDef As AssemblyComponentDefinition oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'Iterate through all of the occurrences Dim oOccurrence As ComponentOccurrence For Each oOccurrence In oAsmCompDef.Occurrences 'check for and skip virtual components'(in case a virtual component trips things up) If Not TypeOf oOccurrence.Definition Is VirtualComponentDefinition Then Parameter.Quiet = True Parameter(oOccurrence.Name, "CABLE_TRAY_VISI") = "OFF" Else End If Next
Thanks will be great help if the up code is made feasible for text too....
Thanks & Regards,
Suresh.RM
+91 87544 03310
Solved! Go to Solution.
