harilalmn Posted January 24, 2011 Posted January 24, 2011 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. Quote
JPlanera Posted January 24, 2011 Posted January 24, 2011 You may wasnt to investigate the FIELD function. In this case, i believe the Object option is what you need Quote
irneb Posted January 24, 2011 Posted January 24, 2011 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: Quote
harilalmn Posted January 25, 2011 Author Posted January 25, 2011 JPlanera and irneb, Thanks a lot... That works fine for me... Quote
Grant Posted January 25, 2011 Posted January 25, 2011 Last option is Vlisp by extracting the info of the block when you update the attribute Quote
Recommended Posts
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.