CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3760 

CAD tip CAD tip # 9477:

Question CAD 
 %  platform  category 
Q - question

Saving a DWG copy of an IDW drawing named by revision number.

A - answer With the following iLogic macro you can save a copy of your Inventor IDW drawing to a DWG-format file named by the current revision number as set in iProperties - e.g. MyPart-A.dwg:

altName = "-" & iProperties.Value("Project","Revision Number") & ".dwg"  
ThisDoc.Document.SaveAs(ThisDoc.PathAndFileName(False) & altName,True)  
MessageBox.Show(ThisDoc.FileName(False) & altName & " saved!!" & vbCrLf & vbCrLf & ThisDoc.Path , "Save As")  
Inventor
100% *  CAD 
3.10.2013    3228x  
Comments   Tell a friend
applies to: Inventor ·

See also:
Tip 10426:How to display any web page in Inventor?
Tip 10114:iLogic tip: returning a value on the True and False conditions.
Tip 9952:iLogic rule - check whether iProperties are overridden.
Tip 9935:How to distinguish between an assembly and weldment in VBA or iLogic?
Tip 9812:How to switch a drawing sheet from portrait to landscape orientation?


Back   All CAD Tips All CAD tips&tricks

Dynamically display any object property as a field. « | » Rooms from Revit projects into Navisworks.

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:
Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info


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