set_component_suppression
Set a component's load state in the active assembly: suppress to hide, resolve to fully load, or lightweight for graphics-only. Useful for creating configuration variants or managing large assemblies.
Instructions
Cambiar el estado de carga de un componente en el ensamble activo.
Uso típico autopartes: suprimir/resolver componentes para crear variantes de configuración (con/sin opcionales), o aligerar grandes ensambles con cientos de tornillería usando estado "lightweight". [en: Set a component's load state in the active assembly. Typical use: suppress/resolve to build configuration variants, or use 'lightweight' on big assemblies with hundreds of fasteners.]
Args: component_name: SW component instance name from get_active_assembly_info. state: One of "suppressed" (hidden, excluded from BOM, not loaded), "resolved" (fully loaded, default), or "lightweight" (graphics only — saves memory in large assemblies, common in autoparts sub-assemblies with 100+ fasteners). config_scope: "this" (active config only — fast), "all" (apply to every configuration in the document), "specific" (apply to configs listed in config_names). config_names: List of configuration names; required when config_scope="specific". Example: ["Sport", "Premium"] to suppress in those trim variants only.
Returns the component's updated state for the active configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | resolved | |
| config_names | No | ||
| config_scope | No | this | |
| component_name | Yes |