create MLeader in LISP

create MLeader in LISP

Anonymous
Not applicable
5,179 Views
5 Replies
Message 1 of 6

create MLeader in LISP

Anonymous
Not applicable

Hello!

 

I am trying to solve the following task in lisp:
In my code I can calculate a Text, the position of the Text and the end-point of a MLeader line I would like to have.
How can I now create this MLeader object (if I go for (command "_mleader" pointA pointB) I get code 0xC0000005)?

 

Greetings

0 Likes
Accepted solutions (2)
5,180 Views
5 Replies
Replies (5)
Message 2 of 6

ВeekeeCZ
Consultant
Consultant

Certainly you can use what you suggest. Not sure what's your question.

  

(command "_mleader" pause pause "note")

 

if you need an ename of the mleader just created, use

(setq ent (entlast))

0 Likes
Message 3 of 6

devitg
Advisor
Advisor

Show your LISP ..  ant a sample.dw , as you need the mleader to be 

0 Likes
Message 4 of 6

Anonymous
Not applicable

So what I am basically trying to do is:
(setq pointA (list 0 0 0))

(setq pointB (list 5 5 0))

(command "_mleader" pointA pointB _Y "test")

This already throws my exception in an empty drawing.

0 Likes
Message 5 of 6

dlanorh
Advisor
Advisor
Accepted solution

@Anonymous wrote:

So what I am basically trying to do is:
(setq pointA (list 0 0 0))

(setq pointB (list 5 5 0))

(command "_mleader" pointA pointB _Y "test")

This already throws my exception in an empty drawing.


I'm not suprised check the item highlighted red above.

 

1. What is it for?

2. Why is it not in quotes "_Y"?

I am not one of the robots you're looking for

0 Likes
Message 6 of 6

devitg
Advisor
Advisor
Accepted solution

From it 

 

(command "_mleader" pause pause "note")
(command "_mleader" pause pause text )
0 Likes