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

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:

@[BlockName.AttributeTag]

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)

ACADADTACADMCivilMapPlant
100% *  CAD 
23.10.2013    20735×  

See also:
Tip 13891:How to remove personal data from a document (Properties)?
Tip 13757:Bulk editing of drawing properties (DWGprops) from Excel.
Tip 13599:How to read iProperties from Inventor models and drawings in AutoCAD DWGs?
Tip 13056:How to copy DWG Properties from one drawing to another?
Tip 12796:How to reorder custom DWG properties?


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:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


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