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

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    1400×  
applies to: Inventor ·

See also:
Tip 12644:How to identify parts and assemblies imported from STEP/IGES?
Tip 12432:Parse/replace Inventor iProperties using regular expressions.
Tip 12024:How to create a custom iProperty or Parameter with iLogic?
Tip 11983:How to use iLogic code to fill username into iProperties?
Tip 10852:iLogic - how to get part material and path from a drawing?

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   

Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info

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