Jump to content

Recommended Posts

Posted

Hi all,

I was creating a dynamic block. Is there any way to link the value of a linear constraint parameter to the value of an attribute?

 

Please see the attached image.

I want the value of attribute "DIST" to update when ever the value of linear constraint parameter "d1" changes.

001.jpg

Posted

You may wasnt to investigate the FIELD function. In this case, i believe the Object option is what you need

Posted

Or while inside the BEdit environment you can set the default value of the attribute to a field linking to a block placeholder object - which should have the d1 parameter as a property. That way a new insertion would also default to an "auto"-updating value linked to the d1 parameter.

 

Unfortunately if you have several blocks already done, you'll need to manually add a field to each. Or erase and redo them. Or write some lisp to obtain the ObjectID of these parameters and set the attribute's fieldcode to match.

 

...

 

Or, you could rename the AttDef inside BEdit. Then use AttSync to reset the attributes to the new default. :wink:

Posted

JPlanera and irneb,

Thanks a lot... That works fine for me...

Posted

Last option is Vlisp by extracting the info of the block when you update the attribute

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...