Insert text at coordinates from excel

Insert text at coordinates from excel

Anonymous
Not applicable
4,643 Views
10 Replies
Message 1 of 11

Insert text at coordinates from excel

Anonymous
Not applicable

Hi 

 

I have an excel file that I have the X,Y,Z coordinates of a pipeline and I need to insert some text also contained in the excel file at these coordinates. Is there any way to insert a leader at the coordinate and use the text in the excel file as the leader text? I have over 1000 of these points to do. I'm not very familiar with LISP files so that may be too difficult for me. Even if i could just insert the text at the coordinates that would be better than having to insert each one individually. Any help appreciated

 

Thanks

0 Likes
Accepted solutions (1)
4,644 Views
10 Replies
Replies (10)
Message 2 of 11

dbhunia
Advisor
Advisor

can you send the excel

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes
Message 3 of 11

cadffm
Consultant
Consultant
Accepted solution

@Anonymous

without Lisp check out your steps in commandline to create an mleader,

then built an script und start the scriptfile.scr with command SCRIPT.

 

Sample attached, this works with a Standard dwg(no template or just  acad.dwt)

181002-2.JPG

Sebastian

Message 4 of 11

dbhunia
Advisor
Advisor

@Anonymous wrote:

Hi 

 

I have an excel file that I have the X,Y,Z coordinates of a pipeline and I need to insert some text also contained in the excel file at these coordinates. Is there any way to insert a leader at the coordinate and use the text in the excel file as the leader text? I have over 1000 of these points to do. I'm not very familiar with LISP files so that may be too difficult for me. Even if i could just insert the text at the coordinates that would be better than having to insert each one individually. Any help appreciated


 

Hi,

 

If your Excel is like this format

 

Capture.PNG

 

Then go through the attached code....

 

Another thing Keep the Excel file close.

 

And for Leader what should be its direction?


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
Message 5 of 11

dbhunia
Advisor
Advisor

@Anonymous wrote:

Hi 

 

I have an excel file that I have the X,Y,Z coordinates of a pipeline and I need to insert some text also contained in the excel file at these coordinates. Is there any way to insert a leader at the coordinate and use the text in the excel file as the leader text? I have over 1000 of these points to do. I'm not very familiar with LISP files so that may be too difficult for me. Even if i could just insert the text at the coordinates that would be better than having to insert each one individually. Any help appreciated

 

Thanks


 

Hi,

 

If your Excel is like this format

 

 Capture.PNG

 

Then go through the attached code....

 

Another things-

1. Keep the Excel file close.

2. If your Excel file contains any text in first row, like 

 

 Capture1.PNG

 

Then make change in the line, from - (setq address "A1:D50000")  To (setq address "A2:D50000")


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
Message 6 of 11

Anonymous
Not applicable

Thanks. This worked perfectly

Message 7 of 11

Anonymous
Not applicable

Hi. I'm looking for the same thing but in some cells I have a single line text and in some cells I have a multiline text. For example Screen Shot 04-02-19 002.PNG

 

Is there a way to insert multiline text? I'm trying to find it but I can't.

A long time ago I found somewhere you could copy a line from notepad to command line where you wrote

command, first corner, second corner, text

mtext 100,100 200,200 ......

but i forgot how to write the command for text. do you have to use quation marks or what. does anyone have an idea?

Message 8 of 11

Anonymous
Not applicable

Thank q very much . It help me lot i mean it.

0 Likes
Message 9 of 11

Anonymous
Not applicable

Can you explain how to use this?

0 Likes
Message 10 of 11

Anonymous
Not applicable

how to use this?

0 Likes
Message 11 of 11

ivoitiuk
Explorer
Explorer

How to insert multiline text the same way as in example?

0 Likes