Extract a STEP model
extract_step_modelExtract embedded STEP 3D models from Altium .PcbLib files to standalone .step files, supporting list, extract-all, and by-footprint modes.
Instructions
Extract embedded STEP 3D models from an Altium .PcbLib file. Models are stored compressed inside the library and this tool extracts them to standalone .step files. Supports multiple modes: 'auto' (default), 'list', 'extract_all', or 'extract_by_footprint'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Extraction mode: 'auto' (default) extracts single model or lists if multiple; 'list' always lists models; 'extract_all' extracts all models to output_dir; 'extract_by_footprint' extracts models used by specified footprint | |
| limit | No | Maximum number of models to list, 1 or more (for 'list' mode) | |
| model | No | Model name (e.g., 'RESC1005X04L.step') or GUID to extract (for 'auto' mode) | |
| offset | No | Number of models to skip when listing, 0 or more (for 'list' mode) | |
| filepath | Yes | Path to the .PcbLib file containing embedded 3D models | |
| output_path | No | Meaning depends only on the mode, never on how many models match: for 'auto' it is the FILE path for the extracted .step; for 'extract_all' and 'extract_by_footprint' it is a DIRECTORY that receives one file per model (created if absent). Omit to get the model inline as base64 ('auto' single model, or 'extract_by_footprint' with a single match). | |
| footprint_name | No | Footprint name to extract models for (required for 'extract_by_footprint' mode) |