Lisp to conver Mleader arrow angle to zero

Lisp to conver Mleader arrow angle to zero

atawk
Enthusiast Enthusiast
5,172 Views
25 Replies
Message 1 of 26

Lisp to conver Mleader arrow angle to zero

atawk
Enthusiast
Enthusiast

Do you have a lisp that convert the Mleader arrow's "angle" to 180 degree?

0 Likes
Accepted solutions (1)
5,173 Views
25 Replies
Replies (25)
Message 21 of 26

komondormrex
Mentor
Mentor

check update in message #14

0 Likes
Message 22 of 26

s05103_jr
Explorer
Explorer

Sir, your function is great.

Unluckily, most of my drawings require to work in custom UCS.

I try to get it works with trans function.

(trans pt from to [disp])

However, I always get an error message.

error: bad argument type: 2D/3D point: (172.197 -33.8445 0.0 163.987 -13.5696 0.0)

 

Can you help?

0 Likes
Message 23 of 26

Sea-Haven
Mentor
Mentor

Thats 2 points, (172.197 -33.8445 0.0) (163.987 -13.5696 0.0) did you use VL-get-coordinates ? If so need to make back into a single XYZ point, car cadr caddr.

0 Likes
Message 24 of 26

s05103_jr
Explorer
Explorer
No, I don't think I have.
0 Likes
Message 25 of 26

Sea-Haven
Mentor
Mentor

You should post code that is definitely 2 points. 

0 Likes
Message 26 of 26

komondormrex
Mentor
Mentor

that is the list of coordinates of two points. if you want to apply trans  to  first point you need to extract that point coordinates from the list like

(trans (list (car '(172.197 -33.8445 0.0 163.987 -13.5696 0.0)) (cadr '(172.197 -33.8445 0.0 163.987 -13.5696 0.0))) ...)

0 Likes