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.
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.
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
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
Can't find what you're looking for? Ask the community or share your knowledge.