Dynamic block with parameters and a text with attributes

Dynamic block with parameters and a text with attributes

Delinear
Advocate Advocate
2,658 Views
2 Replies
Message 1 of 3

Dynamic block with parameters and a text with attributes

Delinear
Advocate
Advocate

Good morning, I have created this dynamic block with parameters and a text with attributes that reads the value of the parameter and divides it by 1/3, the problem is that I do not round the value and I do not know if there is any system variable to solve this problem.

I would like to know if there is any variable or some other method to make this block.

I attach the block

1.jpgthank you.

0 Likes
2,659 Views
2 Replies
Replies (2)
Message 2 of 3

guar571225
Contributor
Contributor

If I got your question right what you may be looking for is at http://help.autodesk.com/view/ACD/2017/ENU/?guid=GUID-DBFA3E85-2055-4698-85FD-6B30D39F3FA4 

 

The function round is very primitive because it does not allows for the selection of N decimals, so you must use the Trunc one, as in Trunc(1000 * L_DCHA*1/3) / 1000 to get 3 decimals.

 

Here are some snaps of the page.

 

 

Controling geometry 2.JPGControling geometry 1.JPG

0 Likes
Message 3 of 3

h_s_walker
Mentor
Mentor

ROUND (984/25)*25

 

This rounds 984 to the nearest 25. So your field would be ROUND(YOUR VALUE/3)

 

See the image below. The distance you're looking for is the one labelled L.

Capture.JPG

 

 

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