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: 5673

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    10962×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
Tip 13965:Total length of sweeps in Inventor - wires, pipes, trusses, tubes, hoses (iLogic)
Tip 13920:Saving your Inventor model in the presentation color scheme (iLogic).
Tip 13884:How to send e-mails with an iLogic macro?
Tip 13836:How to reset view numbering in Inventor?
Tip 13744:Simple password protection of Inventor documents (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 glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D 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