This is quick “how to” create a block with an area field which value adjust automatically when the polyline attached to that field is amended.
- Create a polyline.
- Open Attribute Definition window and set up typical attribute parameters.
- Click Insert Field button.
- From a list with field names choose Object.
- Click the button on the left of the Object type field and choose your polyline.
- Choose property Area (if it’s not chosen automatically) and choose desired precision.
- Click on the button called Additional Format… A new window will pop up.
- Enter desired conversion factor. E.g. If your drawing is in mm and you want area to be expressed in meters enter 0.0001
- Enter desired suffix if you wish. E.g. For square meters you can enter m\U+00B2. \U+00B2 will be replaced with ². You can also copy that symbol from Windows Character Map.
- Confirm hitting OK to close all windows.
- Choose a position for your new field.
- Create a block with any additional elements you wish for.
Now a field in your block is connected with a polyline.
After you amended a polyline you need to regenerate to see the changes in the area field.
To create another block connected to another polyline you need to:
- Copy the block.
- Create or copy a polyline.
- Double clicking on the block. Enhanced Attribute Editor window will pop up.
- Choose area field.
- Double click the value (it should have gray background) A Field window will open.
- Click the button on the left of the Object type field and choose your NEW polyline.
- Set up fields in the Additional Format again (it’s a little irritating)
- Accept the changes by pressing OK.
- Select a block and a connected to it polyline.
- Amend the shape of the copied polyline.
- Regenerate to see the change in the area field.
Tell me if you know the faster way.
Data from attributes in blocks can be extracted and use in Excel.
A Table inside AutoCAD (2013) can be created with data extracted from attributes from blocks. Data in the Table can be updated after any amendments to polylines.