appearance_assign
Assigns a library appearance to a body, face, or occurrence by copying it into the design. Use it to change how a part looks without altering its physical material.
Instructions
Assign an appearance to a body, a face or an occurrence. A library appearance is copied into the design first (the library is never changed). A component has no appearance: assign it to its bodies or to an occurrence. Changes only the look, not the physical material (see material_assign).
Returns {"target", "appearance": {"id", "name", "library": "design"}, "previous": {...} | null, "copied": bool}.
Example: appearance_assign(target="", appearance="").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Ref of a body, a face or an occurrence (not a component) | |
| library | No | Library name or id to resolve an ambiguous name | |
| appearance | Yes | Appearance id from appearance_list (preferred) or exact name |