Hi All,
I wondered if anyone could help me out with an existing script to create a table in a drawing file where the script would look at all assemblies the part is used in then would return a table to be placed say in the top right corner. The table would be have a title of "Where Used" and two columns with rows to be determined by script. Column titles would be "ASSEMBLY" and "QTY".
Hoping this is something somebody has done already. Appreciate Design Assistant can tell me where used but it won't tell me the QTY.
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
Hi @matthew
Will the drawing reference the very assembly you need to pull the BOM qty from? If it does it sounds like you are recreation the partlist!
If it does not you will need to supply the root folder for the project workspace and then search for every assembly and then search it's reference documents for one thst matches the part. It will be a time consuming process to check all the files. Can you confirm what your criteria is?
If you have some logic to show the assemblies then it is easy to extract the qtys. Can you share this code as a starting point? Having to use inventor to find such items is resource heavy and you can't use inventor while this in going. You could of course use task scheduler to just run a rule while your not using inventor at a specific time.
Can't find what you're looking for? Ask the community or share your knowledge.