Diesel expressions in field inside dynamic block

Diesel expressions in field inside dynamic block

S_S_SS
Advocate Advocate
1,111 Views
8 Replies
Message 1 of 9

Diesel expressions in field inside dynamic block

S_S_SS
Advocate
Advocate

Hello every one 
I need to make field that appear value if the dimensional constraint have a value bigger than 2000 
$(if, $(>, $(getvar, Telescope_Height), 2000), "XB 1.20 m", "")

i try to make it with the diesel as the above
Telescope_Height is the dimensional constraint value 
XB 1.20 m   is the field that i need it to appear 
but it don't work 
can someone help me in this ??
i've made a simple example in the attached DWG 
thanks in advance 

0 Likes
Accepted solutions (1)
1,112 Views
8 Replies
Replies (8)
Message 2 of 9

h_s_walker
Mentor
Mentor

Use a double lookup to change visibility states depending on the length of the parameter. See the attached drawing. The number automatically changes because it's a dimension which is associated with the line.

 

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
Message 3 of 9

S_S_SS
Advocate
Advocate

Thanks sir for your reply 
but it's necessary to make it dimensional constraint not linear parameter because i need it to make specific calculations
also I've more and more visibilities and then i must double all these visibilities to make what i need ....
so i see that it's necessary to use the diesel expression ....

0 Likes
Message 4 of 9

h_s_walker
Mentor
Mentor

Are these multiple visibilities in one block or multiple blocks? If it's one block you only need one visibility state for the > value.

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
Message 5 of 9

S_S_SS
Advocate
Advocate

these all the visibilities in one dynamic block 

M_H_G_M_G_0-1718015624969.png

i should make all of them to if the value bigger than 2000 
and if it's less than 2000 ?? 

you can see the attached DWG 
THE DIMENSION CONSTRIANT NAME IS Telescope_Height
AND SEE THE FOLLOWIMG FIELD PLACE IN EACH VISIBILITY 

M_H_G_M_G_1-1718015844945.png

 

CAN HELP ME HOW TO MAKE THIS ?? 

 

0 Likes
Message 6 of 9

Libbya
Mentor
Mentor

How do you make the telescope_height greater than 2000?  It looks like the largest increment is 1433.

0 Likes
Message 7 of 9

S_S_SS
Advocate
Advocate

Yes you are right it was an example to understand what i can do

Make it 833 instead of 2000

0 Likes
Message 8 of 9

Libbya
Mentor
Mentor
Accepted solution

If all of the specific values are increments, then you can write the attribute value directly using a block properties table or for ranges you could use a lookup not for a visibility state, but just to define the lookup value for the specific range and then use a blockplaceholder field referencing the lookup value.  

Message 9 of 9

S_S_SS
Advocate
Advocate
okay thanks sir for that
0 Likes