Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some help creating a for loop (or something similar) for changing the size of content center components.
I created the following code:
SyntaxEditor Code Snippet
If HardwareSize = .25 Then Dim Circular_Washer_Inch = Components.AddContentCenterPart("Circular Washer (Inch) 1", "Fasteners:Washers:Plain", "Circular Washer (Inch)", "1/4", Circular_Washer_InchPos) ElseIf HardwareSize = .3125 Then Dim Circular_Washer_Inch = Components.AddContentCenterPart("Circular Washer (Inch) 1", "Fasteners:Washers:Plain", "Circular Washer (Inch)", "5/16", Circular_Washer_InchPos) End If
This successfully changes the size of a washer at position "Circular Washer (Inch) 1" based on a selected parameter "HardwareSize".
Now I want to change the size of washer 2, 3, 4 and so on.
Does anybody have a suggestion for how to do this?
Thanks.
Solved! Go to Solution.