insert leaders at the coordinate use the text and coordinates from an excel file

insert leaders at the coordinate use the text and coordinates from an excel file

Inspection2.resolution
Observer Observer
339 Views
4 Replies
Message 1 of 5

insert leaders at the coordinate use the text and coordinates from an excel file

Inspection2.resolution
Observer
Observer

I'm trying to insert a bunch of leaders with text using easting and northings as x an y. I've tried the following formula:

 

Inspection2resolution_0-1666829792829.png

 

 

=CONCATENATE("(command ",CHAR(34),"_MLEADER",CHAR(34)," ",CHAR(34),B4,",",C4,CHAR(34)," ",CHAR(34),D4,",",E4,CHAR(34)," ",CHAR(34),A4,CHAR(34),")")

 

but I keep getting 

Command: (command LISP command is not available.
Command: "_MLEADER" Unknown command ""_MLEADER"". Press F1 for help.
Command: "2.1,3.4" Unknown command "1,3.4"". Press F1 for help.
Command: "3.6,3.9" Unknown command "6,3.9"". Press F1 for help.
Command: "ID1")
Unknown command ""ID1")". Press F1 for help.

 

I'm not to experienced with AutoCAD so appreciate any help. Thanks. 

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

Sea-Haven
Mentor
Mentor

Worked for me.

 

You can do this direct from excel reading the cells. Yes requires code, happy to discuss further. This is Autocad controlling the excel range input and returns a list of cells.

SeaHaven_0-1666833085419.png

 

0 Likes
Message 3 of 5

hosneyalaa
Advisor
Advisor
0 Likes
Message 4 of 5

Inspection2.resolution
Observer
Observer

Unfortunately I was using autocad lite at work, it worked perfectly on 2022 version. All sorted now and have just saved so much time!! 

0 Likes
Message 5 of 5

ВeekeeCZ
Consultant
Consultant

In LT, you should be able to use a script. The syntax could look something like this

 

MLEADER 2.1,2.4 3.6,3.9 "ID1";

MLEADER 2.1,5.4 3.6,3.8 "ID2";

 

... but I don't know how to end the text editor... try to ask in LT forum.

0 Likes