Jump to content
harilalmn

Updating Attribute Value based On a Linear Constraint Parameter

Recommended Posts

harilalmn

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

Share this post


Link to post
Share on other sites
JPlanera

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

Share this post


Link to post
Share on other sites
irneb

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:

Share this post


Link to post
Share on other sites
harilalmn

JPlanera and irneb,

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

Share this post


Link to post
Share on other sites
Grant

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

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...