CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2185 

CAD tip CAD tip # 8718:

Question CAD 
 %  platform  category 
Q - question

How to show COG of subassemblies in an Inventor drawing?

A - answer How to display and dimension/annotate center of gravity of the individual subassemblies and parts in an Inventor assembly drawing?

You can use the following simple iLogic macro - when run, it creates/updates the location of the MyCOG workpoint in the model document:

Dim cogName As String = "MyCOG"

Dim doc As Document = ThisDoc.Document

Dim cog As WorkPoint
Try
cog = doc.ComponentDefinition.WorkPoints(cogName)
cog.SetFixed(doc.ComponentDefinition.MassProperties.CenterOfMass)
Catch
cog = doc.ComponentDefinition.WorkPoints.AddFixed(doc.ComponentDefinition.MassProperties.CenterOfMass)
cog.Name = cogName
End Try
Inventor
100% *  CAD 
20.7.2012    3766x  
Comments   Tell a friend
applies to: Inventor ·

See also:
Tip 9842:Interactive cloud viewer for 3D CAD data in Autodesk 360.
Tip 8927:How to exclude parts of the Inventor assembly from total mass?
Tip 8528:Import AutoCAD 3D DWG files into Inventor.
Tip 8286:How to display COG in Inventor drawing views?
Tip 7963:Direct editing of any 3D model in AutoCAD or Inventor.


Back   All CAD Tips All CAD tips&tricks

Change the order of drawings in an AutoCAD Plant 3D project. « | » How to increase capacity of your SSD disk by several gigabytes?

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   



Featuring:
Generate hatch patterns automatically from your DWG drawings with
HGEN 2006 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.
TOPlist