CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 8986:

Question

CAD 
 %  platform  category 
A
Density for parts containing a single material type can be calculated from their mass and volume.

To add a custom iProperty containing the density value in your IPT file you can use the following simple iLogic macro:

  
density = iProperties.Mass/iProperties.Volume  
iProperties.Value("Custom", "Density") = Round(density*1000*1000, 4) & " g/cm^3"  
(omit the units suffix to use Density as a number)
Inventor2013Inventor2012
100% *CAD
20.12.2012   13836×  
   
this tip shared by ARKANCE experts applies to: Inventor 2013 · Inventor 2012 ·

See also:
Tip 14975:iLogic Codeblocks - visual programming in Inventor 2027
Tip 14641:Automatic naming of Inventor drawing sheets according to the first model (iLogic).
Tip 14634:Physical units conversion tool in an Inventor palette.
Tip 14611:Contribution of individual features to the total mass of an Inventor part (iLogic).
Tip 14527:Search/Replace texts in Inventor drawings - iLogic.


Back    All CAD Tips



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
  





Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist