• Blog posts

    Bio

    by Florentina Stirbu

    Inventor_BOM_FS_01.png

    Recently I had a support request where virtual parts that represent fixings need to be counted when each assembly component type comes with a known number of a specific fixing type.

    As an example, the assembly below has two component types: TypeA and TypeB.

    First, I’ve created a virtual part for each fixing type:

    Inventor_BOM_FS_02.png

    Then, parameters were added for the fixings count of each component type.

     

    Inventor_BOM_FS_03.png

    The iLogic code will get the QTY for each component type from the BOM, multiply that using the respective number of fixings and then override the BOM QTY for the virtual parts. 

    Inventor_BOM_FS_04.png

     

    Inventor_BOM_FS_05.png

    The above is written taking into consideration 2 fixing types (one for each component type). For different scenarios, the code will need to be adjusted accordingly.

    If there is only one fixing type, you can get the code to override the QTY with the sum of the previously calculated values. 

    Inventor_BOM_FS_06.png

    Inventor_BOM_FS_07.png

    Both versions of the code are attached below.