hi guys,
I am trying to automate reference drawings appearing in my title block. (the level above the file I am doing the drawing for). in other words.. I want to show the part no. & description of the level above in the title block.
I think using the comments iproperty in the model would be the way to go as it has multiple lines.
I have next to no knowledge of coding so am stuck. I have searched google and cant find anything.
any help is greatly appreciated
Part or Assembly files don't store any info on higher level assemblies they are a part of, so there's no easy way to do this. It may be possible to run a rule from a top level assembly so you can push the assembly info down to each part as multi-list parameter, but there's no guarantee that will cover all possible assemblies that each part or assembly is a part of, and will be complex to make the code maintain the lists over time. If you have Autodesk Vault, you can use the Where Used tab to view a list of associated assemblies and then do manual entry.
it is possible.. the way you can accomplish it is to create addin (can be rule as well) which will be fired when file is saved and if it is assembly it will traverse thru all occurances (first level only) and get actual value of comment and then set with added fullfilename(with path) and description of that assembly (witch checking if property doesn't contain already such value) of course is necessary that all files are with save permissions.
one problem could be that if you use the component in different assemblies, the parrent (or above file) wil be different, so storing, and using this info in and from the component would be strange, so you need to run some code from the assembly, to create the drawing info...
@Anonymous
are you using Vault?
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 !
Can't find what you're looking for? Ask the community or share your knowledge.