CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2909 

CAD tip CAD tip # 8271:

Question CAD 
 %  platform  category 
Q - question

Always print Inventor drawings with updated Mass values.

A - answer Autodesk Inventor assembly drawings often contains references to iProperties and physical properties of the model (parts). But the "mass" property may be not always updated and the printed drawing may contain inaccurate assembly mass information.

The following VBA macro ensures that printing is invoked after the mass properties are updated:

Sub PrintWithUpdateMass() 'Update mass in all referenced documents Dim drw As DrawingDocument Set drw = ThisApplication.ActiveDocument Dim doc As Document Dim mass As Double For Each doc In drw.AllReferencedDocuments mass = doc.ComponentDefinition.MassProperties.mass Next Call drw.Update 'Invoke print or other command Call ThisApplication.CommandManager.ControlDefinitions("AppFilePrintCmd").Execute End Sub

No error checking included for simplicity

You can assign this macro to a new "Print" icon on your ribbon - see the Tip 8267.

100% *  CAD 
18.10.2011    5842x  
Comments   Tell a friend
applies to: Inventor 2012 ·

See also:
Tip 11054:Difference volume (3D solid) between two TIN surfaces (sets of coordinates)
Tip 11034:Mass property depending on the current LOD in an Inventor assembly.
Tip 10532:Is it possible to edit BIM projects from Revit Extensions also in plain Revit or LT?
Tip 10161:Automatic checking of design limits in Inventor.
Tip 9952:iLogic rule - check whether iProperties are overridden.

Back   All CAD Tips All CAD tips&tricks

Excel 2010 compatibility with Inventor 2011/2012. « | » Connecting polylines by fillet - change in version 2012.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.