dynamic block distance lisp adjustment

dynamic block distance lisp adjustment

sadefa
Observer Observer
944 Views
4 Replies
Message 1 of 5

dynamic block distance lisp adjustment

sadefa
Observer
Observer

Hello to all.

I am complete lame about lisp programing. I need some help for automation of process I do manually and it’s driving me crazy.

I have a dynamic block, which has multiple custom properties – distances, which can be adjusted. Two of them are to adjust the distance from already present marks. The present marks are placed every 5 meters. The first one starts at 0 coordinate on X axis, so that they are placed on 0, 5, 10, 15, etc.

What I am looking for is a way to select multiple blocks and ask them to adjust the distances so that they end at the already known marks.

Thanks in advance.

0 Likes
945 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

Don't follow. Elaborate. And post some bigger picture to see what and how should be automated. What is the initial state and what the result.

0 Likes
Message 3 of 5

sadefa
Observer
Observer

All details are in the attached DWG file.

0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant

Hmm, I saw that but did not help much. 😞

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

@sadefa wrote:

....The first one starts at 0 coordinate on X axis, so that they are placed on 0, 5, 10, 15, etc. .....


That's not true in your sample drawing.  The X coordinates are things like 516740.728 and 516757.561.  [Why so far from the origin?]  If they really were at whole multiples of 5 in the X direction, maybe something could be worked out that would round the Distance1 and Distance2 settings relative to a Block's insertion point, to put their ends at the closest multiple of 5, and all the User would need to do is select a Block.  As it is, it would at least be necessary to select not only the Block but also one of the vertical grid lines.  [Why those are Polylines, I can't imagine.]

 

Also, are the numbers in the Attributes supposed to be changed accordingly?  To whole numbers only?  Should the position of a Block be forced to where those are whole-number distances?  Etc., etc.

Kent Cooper, AIA
0 Likes