VariantSet
This page documents one V-SwiFT variant-set definition.
Purpose
A VariantSet groups one family of mutually exclusive choices on a part.
Source-backed type
C# type:
VSwift.Modules.Variants.VariantSet
Key fields
VariantSetId: stringVariantSetLocalizationKey: stringIsPopout: boolVariants: list[Variant]
Runtime role
VariantSetIdis the internal identifier used in authored data and Patch Manager selection.VariantSetLocalizationKeysupplies the display name. If it is empty, V-SwiFT falls back toVariantSetId.IsPopoutcontrols whether the set is shown as a dropdown or as a dedicated popout-window action in OAB.Variantsholds the selectable options in that set.
OAB behavior
IsPopout = false: V-SwiFT builds a dropdown property in PAM.IsPopout = true: V-SwiFT creates a clickable module action that opens the part-switch popout UI.
Example
+EnginePackage {
VariantSetLocalizationKey: "MyMod/EnginePackage";
IsPopout: true;
+Vacuum {}
+SeaLevel {}
}Notes
At runtime, V-SwiFT keeps the active variant list aligned to variant-set order. That means set order is significant when stored variant state is replayed later.