QTY = 0

QTY = 0

johan.degreef
Advisor Advisor
725 Views
2 Replies
Message 1 of 3

QTY = 0

johan.degreef
Advisor
Advisor

Again this happens - don't know why 

 

I know there are issues with QTY being 0 when using Model States (right?)

I did not use model states in whole my project but sill get this. Never had this before. Anyone suggestions?

 

I did suppress these parts.

 

Knipsel.JPG

 

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
726 Views
2 Replies
Replies (2)
Message 2 of 3

johnsonshiue
Community Manager
Community Manager

Hi Johan,

 

Though you did not create a new Model State, the default Master Model State is also a Model State. You can suppress components as you wish. Their quantity will become zero.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 3 of 3

bradeneuropeArthur
Mentor
Mentor

@johnsonshiue 

That we now can edit the Master Design State is confusing people since it was never possible over the years!

@johan.degreef 

I see this happen here also often enough. You need to go through old model files and take a quick look if everything is correct migrated.

 

Maybe it helps maybe not:

Dim p As PartsList = ThisDrawing.Document.ActiveSheet.PartsLists.item(1)

For Each r As PartsListRow In p.PartsListRows
	
	If r.Item("QTY").Value =0 Then
		r.Visible = False
	End If
	Next

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