CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 1236 

CAD tip CAD tip # 9516:

Question CAD 
 %  platform  category 
Q - question

Automating properties in DWG drawings - hidden gem in Express Tools.

A - answer A less known Express Tools function PROPULATE can be a powerful weapon for mass updates of properties in DWG files, or for automatic fill-in of DWG properties to predefined values ​​or to contents of the given AutoCAD drawing.

The PROPULATE command works on top of a template file, a text file with the .PRP extension. You can preset this template using the option "Active template":

You can edit your templates directly in the PROPULATE command, or using a text editor - see a sample PRP template with this contents:

(download this file and save it e.g. to Documents)

The PRP file contains predefined fields and examples of their preset values. You can use fixed literal texts, or a couple of reserved commands - e.g. @[XREFLIST] lists all attached xrefs, or you can - more useful - add references to values of specific attributes in specific drawing blocks, typically the title block. This reference looks like:


So you can fill the drawing properties from the values set in the drawing title block. You can use PROPULATE to set fields in the Summary tab but also the fields "Last Saved By" and "Revision Number", plus up to 10 custom fields in the "Custom" tab (always a pair field/value).

How does PROPULATE work? Its option "Update" (the default, just press Enter) will update the drawing properties according to the current template. You can update either the properties of the current drawing, or batch-update all drawings (specified by a mask) in a given folder or also in subfolders.

The resulting properties (see DWGPROPS) of a drawing, when the above mentioned template is used, look like this:

You can use a trick to fill DWG properties also from properties of drawing objects or from values of system variables (see fields)

100% *  CAD 
23.10.2013    7646x  
Comments   Tell a friend

See also:
Tip 9514:Automatically set the Author property in DWG files.
Tip 8494:How to show who saved the DWG drawing last?
Tip 6342:The hidden commands in Autodesk DWG TrueView.
Tip 5628:Automatic drawing labels with barcodes.

Back   All CAD Tips All CAD tips&tricks

How to model a true 3D thread in Fusion 360? « | » Automatically set the Author property in DWG files.

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   

Export 3D VRML scenes from AutoCAD and Inventor 2015
VRMLout 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.