CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 722

CAD tip CAD tip # 12451:

Question CAD 
 %  platform  category 
Q - question

How to fill a material or appearance name into part's iProperties?

A - answer You can directly use appearance and material name also in the BOM. But if you need to fill in these properties as custom iProperties, you can use the following simple iLogic macro:

iProperties.Value("Custom","myMaterial") = ThisDoc.Document.ActiveMaterial.DisplayName
iProperties.Value("Custom", "myAppearance") = ThisDoc.Document.ActiveAppearance.DisplayName
100% *  CAD 
27.12.2019    7666×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
Tip 13884:How to send e-mails with an iLogic macro?
Tip 13611:BOM with multi-line items in Inventor.
Tip 13536:iLogic: How to find if a document is a sheet metal part and if it contains holes?
Tip 13211:Automatic numbering/renaming of multi-volume bodies in a part.
Tip 13197:How to transfer a model or sketch parameter to iProperties?

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 glossary   

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

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