by Dennis Collin
AutoCAD has had the functionality of fields for many years. Fields are a way of automatically reading information automatically from either the operating system or the AutoCAD document itself. In the image below 2 fields have been defined to automatically show the plot scale and the plot date when the drawing is issued. If fields are not used this must be entered manually by the user!
Fig 1. Title sheet with field attributes shown with a grey background. (Scale, Save Date and Edited By)
Common examples are using fields to obtain areas from hatch objects or polylines or coordinates from setting out points. Refer to some links below to previous articles on the subject.
To be able to extract data out to tables or Excel, then it is best practice to create AutoCAD attributes within a block and then use the built in Data Extraction tool. In the image below fields have been added to the plotted scale and date plotted attribute. Not only will that show consistent information on the plot file, but the same data can be extracted out to a report at any time.
Fig 2. Fields can be defined when attributes are created, or they can be altered later!
To make an attribute relate to a field simply right click and choose the insert field option in the default value entry of the attribute definition command. The field type can then be selected, and the format can be configured.
Fig 3. Defining a Plotted date field. This information will be obtained from the Operating System Clock.
The scale field definition process is a little more involved as a Viewport object needs to be created prior to the title sheet and then linked to an object related field using the custom viewport scale format.
Fig 4. Linking the plot scale to a field-based attribute.
Once all the fields have been set and configured, make the title sheet block as normal. Change scales and issue plots, the fields will update after the file is saved or the command Regen is executed.
Blocks, attributes, and fields along with many other more advanced AutoCAD concepts are covered on our Bespoke and follow-on AutoCAD courses. For more details on a range of our courses these please visit https://arkance.world/gb-en/training/
Comentários (0 comentários)