Message 1 of 4
diesel expression in dynamic block for levels

Not applicable
06-05-2018
11:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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">%