Issue:
How to create a field to dynamically display the length of a stretchable Flexiblock.
Solution:
A dynamic field can be added to display the current length of a stretchable Flexiblock using the following two reliable methods.
Method 1: Link to Object (For a Single Stretchable Object)
- Type BEDIT command to enter the block editor.
- Type the ATTDEF command to create a new attribute.
- In the Define Attribute dialog box, define the Tag/Text height and other necessary values.
- Click on the Link button in the Default to open the Field dialog box.
Field category: ObjectsField names: Object
Click the Select object button → pick the stretchable object
Property: Choose Length → OK
Click the Define and Exit button to define the insertion point of the attribute. - Click Save Block Definition button and click on the Close Block Editor to exit block editing status.
- Type ATTSYNC command and pick the block to synchronize the newly added attribute.
- Stretch the block and type the REGENALL command; the length value updates.
Method 2: Link to Aligned Dimension (For Multiple or Complex Objects)
- Type BEDIT command to enter the block editor.
- Type DIMALIGNED command to create an aligned dimension.
- Type the ATTDEF command to create a new attribute.
- In the Define Attribute dialog box, define the Tag/Text height and other necessary values.
- Click on the Link button in the Default to open the Field dialog box.
Field category: Objects
Field names: Object
Object type: Pick the aligned dimension
Property: Choose Measurement → OK
Click the Define and Exit button of the field dialog box to define the insertion point of the attribute. - Save the block with the Save Block Definition button and click Close Block Editor to exit block editing.
- Type ATTSYNC command and pick the block to synchronize its newly added attribute.
- Stretch the block and type the REGENALL command. The length value should update.
Note:
(1) Only aligned dimensions take effect. Linear dimensions or other types of dimensions may sometimes fail to update.
(2) The aligned dimension cannot be hidden directly. Alternatively, we can create a new Visibility status to hide the aligned dimension. The method of how to create a visibility status and hide an object is as below:★How to use flexi block visibility in ZWCAD.
| CN Solution | |
|---|---|
| JP Solution |
★How to create a dynamic length field for a stretchable Flexiblock in ZWCAD?:https://confluence.zwcad.com/pages/viewpage.action?pageId=323750781






