open_document
Opens .sldprt/.sldasm files or imports STEP, IGES, and Parasolid models as the current document, so you can inspect features, dimensions, components, and mass properties.
Instructions
Open a .sldprt or .sldasm, or import a STEP/IGES/Parasolid file; it becomes the current document.
A neutral file opens as a part, or as an assembly if it holds one (kind='part' / 'assembly' says which up front). A part shows its history in list_features and its dimensions in list_dimensions; an imported body has no history, but the tools work on it (holes and pockets on its faces, bosses, fillets), and the result gives its solid body count and mass properties. An imported assembly's parts arrive as components at their places, ready for list_components and add_mate; the result gives the component count. Drawings: drawing_file(action='open').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| path | Yes |