I’m trying to create a Form that builds up a gym layout based on the options selected. It’s a pretty basic layout and just relies on a few parts being made visible or invisible and then being patterned to create identical bays.
I have started with all the necessary parts already added to the Assembly and as the customer chooses their options the Active State (of the components) is turned off or on. This is fine for a single bay with no patterns. However once I add the patterns in, so the customer can have multiple bays, the Non-Active components are still being patterned.
Is there a way I can specify that anything invisible shouldn’t be patterned or is there a function or workaround I could use?
Example:
If Pull_Up_Bar = "Straight" Then
Component.IsActive("OF-PS-IPU Indexing Pull Up Bar:1") = False
Component.IsActive("OF-PS-PB32 Pull Up Bar (1070mm):1") = True
…
Else If Bays = "2" Then
Patterns.AddRectangular("Half Rack Bays", {"Of-PS-UR100 Upright 100 (1070mm Splayed Outwards):1", "Of-PS-UR100 Upright 100 (1070mm Splayed Outwards):2", "OF-PS-UR90 Upright 90 (Pair) - Splayed Outwards:1", "OF-PS-UR90 Upright 90 (Pair) - Splayed Outwards:2" , "Component Pattern 1:1", "OF-PS-IPU Indexing Pull Up Bar:1", "OF-PS-PB32 Pull Up Bar (1070mm):1", "OF-PS-RSF Rack Stabilising Feet (pair):1", "OF-PS-SCBOR - Origin Branded Plate:1"}, 2 ul, 300 cm, {"OF-PS-SCBOR - Origin Branded Plate:1", "ÉϱêÅƼÜ(FR75-HR)_1", "ºóÉÏÁ¬½Ó¹Ü(FR75)_22"}, "Edge0", columnNaturalDirection := False)
Within the pattern I have included every part, as I don’t know what the customer will choose so I don’t want to write a statement for every combination of parts as I imagine that will take a very long time. I am hoping there is an easier way.
This is my first time using iLogic so any tips or help would be greatly appreciated.