Dear Forum, sorry for my poor English.
It is possible with ilogic to search on the BOM Parts Only in the assembly where the rule is executed, all the members that are from the content center.
When I found the member of the content center, write in logger.info these properties of the BOM: INFO: Part Number | Description | QTY |
The qty (the quantity of that part number) will be used to evaluate the formula. Insert the found member and place it on X0 Y0 Z0, fix it and remove the visibility.
Create the Parameter("L_series") = 1 mm (which will always be 1 mm)
Create a rectangular series in the column of the member in the Z direction, evaluate the spacing with Parameter("L_series"), then evaluate the number of columns with this formula: qty*10/100
Then search for the next one until they are all placed in the main assembly and create the rectangular array for each one of the placed components. The name of the series will be the description of the component then the series will be not visible.
If it were possible,
Thank you
This code will help me add a percentage of additional screws to the project I'm designing without having to manually search in the assemblies and subassemblies.
So my idea was:
1) I search for all those screws that are part of the content center in the assemblies and subassemblies
2) I count them and add them to the main assembly on XYZ0 fixed
3) I create a rectangular series for each screw added only in the column with a percentage equal to 2% for some screws and 10% for other screws, with the possibility of having a list in ilogic to choose which calculation to do (a "Case" or an "If" I already know the part numbers to make it do the different calculation, or the local path for the entire family of screws). The name of the series will have the description of the added component.
4) I remove the visibility of all the inserted series
5) (I don't know if this is possible) I move the series into a folder in the browser called "Additional_Screws"
6) I write everything in the logger to have a clear idea of the calculation that has been done and what has been added. This way when I have big projects I can quickly check
Can't find what you're looking for? Ask the community or share your knowledge.