• Blog posts

    Bio

    By Tina Stirbu

    Inventor_-_Generate_iFactory_members__iLogic__-_1.PNG

    An iPart or iAssembly member can be generated, which effectively creates a file with the respective configuration.

    This can be done manually by Right-clicking a member name -> Generate Files. A subfolder will be created in the location of the factory file and all members will be stored there.

    Inventor_-_Generate_iFactory_members__iLogic__-_2.PNG

    Inventor_-_Generate_iFactory_members__iLogic__-_3.PNG

    Inventor_-_Generate_iFactory_members__iLogic__-_4.PNG

    It is not always needed to generate all – when a member is placed in an assembly or referenced in a drawing, Inventor will automatically create a file for that specific member.

    However, in scenarios where all members are needed as local files, this process can be automated with an iLogic snippet. It can be very useful in factories with a lot of members.

    Inventor_-_Generate_iFactory_members__iLogic__-_5.PNG

    The code can be changed to add conditions so only specific members will be generated i.e. for the iPart below I only want to generate members with a length >1m, so I will get the code to check Item(2) as Length is the 2nd column in my iPart table.

    Inventor_-_Generate_iFactory_members__iLogic__-_6.PNG

    Inventor_-_Generate_iFactory_members__iLogic__-_7.PNG

    If I look at the local files generated, I will see that the code only picked up values equal to or greater than the length I needed.

    Inventor_-_Generate_iFactory_members__iLogic__-_8.PNG

    Both the iPart and iAssembly snippets are attached below (to generate all members, no conditions included).

    Inventor_-_Generate_iFactory_members__iLogic__-_9.PNG Inventor_-_Generate_iFactory_members__iLogic__-_9.PNG