How to read a Length-Stretch parameter into an attribute or tag

How to read a Length-Stretch parameter into an attribute or tag

Anonymous
Not applicable
661 Views
6 Replies
Message 1 of 7

How to read a Length-Stretch parameter into an attribute or tag

Anonymous
Not applicable

I am attempting to modify the attached block. It contains several visibility states.

The end goal is to have the attribute, "SL_DH_SIZE" read the distance of "SLIDER-DH WIDTH/HEIGHT", so that when the block is inserted and either the slider or double hung window visibility state is selected and I then stretch the length of the window to fit the opening, the attribute updates (after regen) and I can see what size that window is on the drawing.

I have tried everything I can think of or find on the web. All I am getting is "#######"

 

Suggestions or solution are much appreciated. The file is uploaded for anyone who wants to play around.

0 Likes
Accepted solutions (2)
662 Views
6 Replies
Replies (6)
Message 2 of 7

Libbya
Mentor
Mentor
Accepted solution

Your issue is that the attribute property constant=YES.  If an attribute has a constant value it cannot ever update and the field fails.

Message 3 of 7

Libbya
Mentor
Mentor
Accepted solution

 

 

 

Message 4 of 7

TiStars
Advisor
Advisor

Can't it be updated automatically without Regen?

Thanks

 


天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes
Message 5 of 7

Anonymous
Not applicable

Awesome. Thank you. Another tutorial called for Constant to be set. Shrug.

 

Thank you very much!!!

0 Likes
Message 6 of 7

Libbya
Mentor
Mentor

@TiStars wrote:

Can't it be updated automatically without Regen?

Thanks

 


No.  Fields do not ever automatically and immediately update.  You can set the fieldeval system variable to its highest setting (31) and it will update on open, save, plot, etransmit, and regen but not immediately without one of those triggers.  

Message 7 of 7

TiStars
Advisor
Advisor

Thank you very much !

 


天涯海角的山姆


您认为此帖子是否有用?欢迎为此帖点赞。

您的问题是否已得到解答?请点击“接受解答”按钮。


EESignature



0 Likes