import_file
Import STEP, IGES, SAT, SMT, F3D CAD files or STL, OBJ, 3MF meshes into a component of the active Fusion design, creating occurrences or mesh bodies, with no change to the design if the import fails.
Instructions
Import a CAD file (STEP, IGES, SAT, SMT, F3D) or a mesh (STL, OBJ, 3MF) into a component of the active design. CAD files usually arrive as a new occurrence, meshes as mesh bodies. A failed import leaves the design as it was.
Returns {"format", "target", "created": {"occurrences": [ref], "bodies": [ref], "mesh_bodies": [ref]}}.
Example: import_file(path="C:/in/bolt.step").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of an existing file | |
| format | No | Format; default from the extension | |
| target | No | Ref of the component to import into; default root | |
| mesh_units | No | Units of STL/OBJ/3MF coordinates (files carry none) | mm |