A collection of automation iLogic scripts for Autodesk Inventor designed to streamline repetitive tasks, optimize assemblies, and manage Bills of Materials (BOM) efficiently.
Automates the process of exporting an active assembly (.iam) to multiple simplified part files (.ipt). It uses the derive function (Shrinkwrap/Simplified Part) to merge the entire assembly into a single solid body without seams.
✨ Key Features:
- Batch Automation: Define the exact number of copies to generate from the base model.
- Sequential Naming: Automatically assigns a custom prefix, followed by a two-digit numerical suffix (e.g.,
SIDEWALL_01.ipt). - Dynamic Path Selection: Opens a Windows dialog box to visually select the output directory.
- Background Processing: Parts are generated and saved invisibly, optimizing processing time.
🚀 Usage:
- Run the rule and enter the total number of copies.
- Enter the base text or prefix.
- Select the output directory.
- Process runs in the background with progress shown in the status bar.
Mass "demotes" individual part components from the root of an assembly document into newly generated individual subassemblies.
✨ Key Features:
- Pre-execution Validation: Ensures the main assembly is saved.
- Isolated Inventory Collection: Scans and collects components safely before modification.
- Spatial Alignment & Grounding: Positions the part preserving its exact absolute coordinates (maintaining original offsets like
50 mm / 1.97 in) and sets it toGrounded = True. - Targeted Substitution: Modifies only the specific instance evaluated without altering other global instances.
🚀 Usage:
Runs automatically upon execution, identifying root-level parts, generating new assemblies (e.g., _Demoted_[count].iam), and replacing the original components seamlessly.
Exports a structured and recursive list of all parts and subassemblies from an active assembly (.iam) directly to Microsoft Excel. Unlike standard Inventor BOMs, it extracts each occurrence individually, properly breaking down components generated by Patterns and Mirrors.
✨ Key Features:
- Individual Instance Extraction: Captures every single occurrence (e.g.,
Bolt:1,Bolt:2) rather than grouping them by Part Number. - Genealogy Tracking: Accurately identifies the immediate Parent Subassembly and Grandparent Assembly for each part using real-time stack tracking.
- iProperty & Physical Data: Extracts Part Number, Description, Material, and accurately calculates individual component mass.
- Direct Excel Export: Uses background OLE/COM automation to quietly generate, auto-format, and save an
.xlsxfile in the same directory as your assembly.
🚀 Usage:
- Run the rule from an active, saved assembly.
- The script processes the assembly tree in the background (Excel remains hidden for speed).
- A success dialog will appear confirming the exact path of the newly generated spreadsheet.
- Software: Autodesk Inventor (Compatible with versions supporting iLogic and
System.Windows.Forms). - File type: The active document must be an assembly (
.iam). - File status: The original assembly must be saved locally or on a network before running the scripts.
- Open your main assembly in Autodesk Inventor.
- Go to the Manage tab on the ribbon, or open the iLogic Browser.
- In the iLogic panel, click on Add Rule.
- Assign a descriptive name to the rule (e.g.,
Extract_All_PartsorMassive_Simplifier). - Copy the respective script's source code and paste it into the editor.
- Click Save & Run.
Pull Requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for more details.