CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 4500

CAD tip CAD tip # 10852:

   
Question CAD 
 %  platform  category 
Q - question

iLogic - how to get part material and path from a drawing?

A - answer If you need - in Inventor drawing environment - to process (e.g. convert to uppercase) and display (e.g. in the title block) the material name and file name or path of the source IPT part, you can use the following fragment of an iLogic rule - it creates two custom iProperties with the requested values:

modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName) 'or GetFullPath  
iProperties.Value("Custom", "MyPartMaterial") = UCase(iProperties.Material(modelName))  
iProperties.Value("Custom", "MyPartFile") = UCase(modelName)
Inventor
100% *  CAD 
21.4.2016    5798×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
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 13040:iLogic - display information about complexity of an Inventor part.
Tip 12828:How to quickly delete 3rd party links to external objects in Inventor?


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   



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools 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.
TOPlist