diesel expression in dynamic block for levels

diesel expression in dynamic block for levels

Anonymous
Not applicable
531 Views
3 Replies
Message 1 of 4

diesel expression in dynamic block for levels

Anonymous
Not applicable
Good morning everyone,
 
I am currently working on a dynamic block to show the level of a point in a sectional drawing. As you see on the picture, the base of the block is placed on the zero level and the triangle with the value can be moved to any point of the drawing and retrieves the Y-Value of this little yellow circle object representing the level of this point.
 
What I am trying to do now, is to use a diesel expression to add a "+" for a positive value and a "%%P" for a value of zero. What I have now appears to be working, but does not update dynamically when I move the level-mark. Any ideas on what I have to change or if this is possible at all? Any help appreciated.
 
Here is the expression I am using now:
 
$(if,$(EQ,$(=,%<\AcObjProp Object(%<\_ObjId 140687803008144>%).Center \f "%lu2%pt2%pr2">%,0),1),"%%p",$(if,$(EQ,$(>,%<\AcObjProp Object(%<\_ObjId 140687803008144>%).Center \f "%lu2%pt2%pr2">%,0),1),"+"," "))%<\AcObjProp Object(%<\_ObjId 140687803008144>%).Center \f "%lu2%pt2%pr2">%
0 Likes
532 Views
3 Replies
Replies (3)
Message 2 of 4

Libbya
Mentor
Mentor

Fields always require regen or one of the other triggers (open, save, plot, etransmit) in order to update.  

Message 3 of 4

ScottHodges
Advocate
Advocate

You know you can achieve a similar result using ordinate dimensions and ucs. Might be simpler than a dynamic block. Just a suggestion

0 Likes
Message 4 of 4

h_s_walker
Mentor
Mentor

Is this what you wanted. A double lookup and a couple of visibility states are what I used

 

 

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes