How to change the Drawing Parts-list Level.

How to change the Drawing Parts-list Level.

bradeneuropeArthur
Mentor Mentor
268 Views
2 Replies
Message 1 of 3

How to change the Drawing Parts-list Level.

bradeneuropeArthur
Mentor
Mentor

How can/do I change the Partslist level of an existing Partslist from on level to another without removing it form the drawing.

 

bradeneuropeArthur_0-1684923759189.png

Regard,

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
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:
My 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 !


 


EESignature

0 Likes
269 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @bradeneuropeArthur.  I don't recall if I have tried doing that by code before, but I think it might be possible, with a lot of digging.  I believe you have to climb the 'Parent' ladder up to the assembly BOM object itself, then I would think that you could change the value of its StructuredViewFirstLevelOnly property, if your PartsList was based on the Structured BOMView.  I highly doubt you would be able to switch from Structured to Parts Only, or something like that though, without having to delete it then recreate it specifying that other 'Level'.

 

To get from the PartsList object to the assembly BOM, you could have to start from a PartsListRow object.  Then use its ReferencedRows property (returns ObjectsEnumerator) to get a reference to the DrawingBOMRow object that it represents (Item(1) in the ReferencedRows).  The DrawingBOM also has the 'Level' property, but it is still ReadOnly, so we have to go further up.  Then use the DrawingBOMRow.BOMRow property to a reference to that BOMRow object.  Then use its Parent property would get us a reference to the BOMView object.  You may or may not need to check its BOMView.ViewType to see which type you are dealing with at this point, but you can not change its level from there.  Then use the BOMRow.Parent property to finally get the BOM object.  Then, as mentioned before, if its referencing the Structured view, you may be able to switch its level by changing the value of the BOM.StructuredViewFirstLevelOnly property.  Just a thought path for now.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

bradeneuropeArthur
Mentor
Mentor

I see what you mean.

I will have that a go.

Thanks for the idea...

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
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:
My 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 !


 


EESignature

0 Likes