Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to locate which part inside an assembly has had its weight manually ouverrid

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
281 Views, 2 Replies

How to locate which part inside an assembly has had its weight manually ouverrid

Anonymous
Not applicable

I have an issue that occurs quite often. When reviewing assemblies, some are very large, I find that the assembly weight (in iProperties) has a hand indicating that either it's mass was overridden, or a part inside the assembly has had it's weight manually overridden. Is there a way to locate which part inside the assembly was overridden? I ask this after 1.5 hours of opening each part trying to locate which one was altered.

Has anyone else won this battle? I thought I have watched all the relevant tutorials pertaining to this subject, but I have been known to be wrong many times a day. Any help would be much appreciated.

0 Likes

How to locate which part inside an assembly has had its weight manually ouverrid

I have an issue that occurs quite often. When reviewing assemblies, some are very large, I find that the assembly weight (in iProperties) has a hand indicating that either it's mass was overridden, or a part inside the assembly has had it's weight manually overridden. Is there a way to locate which part inside the assembly was overridden? I ask this after 1.5 hours of opening each part trying to locate which one was altered.

Has anyone else won this battle? I thought I have watched all the relevant tutorials pertaining to this subject, but I have been known to be wrong many times a day. Any help would be much appreciated.

2 REPLIES 2
Message 2 of 3
Curtis_Waguespack
in reply to: Anonymous

Curtis_Waguespack
Consultant
Consultant

Hi nostopin,

 

Here's a quick iLogic rule to look through the assembly and find the components with mass overrides. If found it asks you if you want to clear them.

 

Post back if you have issues with it.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

Edit: I left some remnants of my strip color overrides rule in the code the first time around, updated now.

 

Dim oAssyDoc As AssemblyDocument
oAssyDoc = ThisApplication.ActiveDocument
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = oAssyDoc.ComponentDefinition
Dim oOcc As ComponentOccurrence
 
oCounter = 0

For Each oOcc In oAsmCompDef.Occurrences
    oDef = oOcc.Definition.Document 
	
	'Set a reference To the mass properties Object.
	Dim oMassProps As MassProperties
	oMassProps = oDef.ComponentDefinition.MassProperties
	
	If oMassProps.MassOverridden = True Then
		oQuestion = MessageBox.Show("Mass override in: " & _
		oOcc.Name & "Do you want to clear the override?","iLogic",MessageBoxButtons.YesNo)
		oCounter = oCounter +1
	End If
	

	If oQuestion = vbYes Then
		oMassProps.MassOverridden = False
	End If
Next

If oCounter = 0 Then
	MessageBox.Show("No mass overrides found.", "iLogic")
End If

 

0 Likes

Hi nostopin,

 

Here's a quick iLogic rule to look through the assembly and find the components with mass overrides. If found it asks you if you want to clear them.

 

Post back if you have issues with it.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

Edit: I left some remnants of my strip color overrides rule in the code the first time around, updated now.

 

Dim oAssyDoc As AssemblyDocument
oAssyDoc = ThisApplication.ActiveDocument
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = oAssyDoc.ComponentDefinition
Dim oOcc As ComponentOccurrence
 
oCounter = 0

For Each oOcc In oAsmCompDef.Occurrences
    oDef = oOcc.Definition.Document 
	
	'Set a reference To the mass properties Object.
	Dim oMassProps As MassProperties
	oMassProps = oDef.ComponentDefinition.MassProperties
	
	If oMassProps.MassOverridden = True Then
		oQuestion = MessageBox.Show("Mass override in: " & _
		oOcc.Name & "Do you want to clear the override?","iLogic",MessageBoxButtons.YesNo)
		oCounter = oCounter +1
	End If
	

	If oQuestion = vbYes Then
		oMassProps.MassOverridden = False
	End If
Next

If oCounter = 0 Then
	MessageBox.Show("No mass overrides found.", "iLogic")
End If

 

Message 3 of 3
Anonymous
in reply to: Curtis_Waguespack

Anonymous
Not applicable
Thank you Curtis, I will check this out Monday.
0 Likes

Thank you Curtis, I will check this out Monday.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report