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)

  1. Type BEDIT command to enter the block editor.
  2. Type the ATTDEF command to create a new attribute.
  3. In the Define Attribute dialog box, define the Tag/Text height and other necessary values.
  4. Click on the Link button in the Default to open the Field dialog box.
    Field category: Objects

    Field 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.
  5. Click Save Block Definition button and click on the Close Block Editor to exit block editing status.
  6. Type ATTSYNC command and pick the block to synchronize the newly added attribute.
  7. Stretch the block and type the REGENALL command; the length value updates.


Method 2: Link to Aligned Dimension (For Multiple or Complex Objects)

  1. Type BEDIT command to enter the block editor.
  2. Type DIMALIGNED command to create an aligned dimension.
  3. Type the ATTDEF command to create a new attribute.
  4. In the Define Attribute dialog box, define the Tag/Text height and other necessary values.
  5. 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 MeasurementOK

    Click the Define and Exit button of the field dialog box to define the insertion point of the attribute.
  6. Save the block with the Save Block Definition button and click Close Block Editor to exit block editing.
  7. Type ATTSYNC command and pick the block to synchronize its newly added attribute.
  8. 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

  • No labels