- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hello,
I have data like below
Coordinates X, Y value and some remarks
X Y TEXT
100 150 TRENCH START
150 150 DUCT BANK START
200 150 DUCT BANK END
300 150 TRENCH END
I want to Import above text value in respective coordinates in AutoCAD.
Please suggest me some good lisp or idea to finish my work.
I have more than 1000 data to enter like above.
please help me out.
Thanks
MK
¡Resuelto! Ir a solución.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi Jonathan Norton,
Thanks for for your reply.
Actually in my company script file is locked.
like I cannot save file extn as *.scr
![]()
Please give some other option if any
Thanks
MK
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
>> Actually in my company script file is locked. like I cannot save file extn as *.scr
Ask them to let you save it, just not execute it (execute from operating system).
As alternative: when you have the file created, you can also copy & paste the content of the script into the command-line of AutoCAD. It's the same as starting the SCR with command _SCRIPT.
- alfred -
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------
(not an Autodesk consultant)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi Alfred ,
Thanks for your reply.
I already tried the same , IT could not help me in this.
As you said I tried this,
copied the content and pasted but text did not placed, instead it was asking to enter text - SEE ATTACHED FILE
Thanks
MK
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
ohh, you are right, didn't think about TEXT, sorry!
Do you have AutoCAD or AutOCAD LT? In first case you can use LISP to place the text instead of direct input as command, sample:
(command "_TEXT" "1,1" "2" "0" "This is my Text")
- alfred -
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------
(not an Autodesk consultant)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi Alfred,
I am using Autocad 2015 (full version)
Can you write and give sample LISP?
I do not know how to write lisp program
Thanks
MK
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
>> Can you write and give sample LISP?
I wrote you one line as sample in my previous message, you just need to use this line with your text, textsize, position and rotation:
(command "_TEXT" "1,1" "2" "0" "This is my Text")
whereas;
- "_TEXT" is the command you call from lisp (so it does not wait with the cursor in the screenarea)
- "1,1" is the position
- "2" is the textsize
- "0" is the rotation
- "this is my text" is the content you want to write
So the first two text objects from your sample then looks like that (well, not nowing text height and rotation):
(command "_TEXT" "100,150" "2" "0" "TRENCH START")
(command "_TEXT" "150,150" "2" "0" "DUCT BANK START")
HTH, alfred -
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------
(not an Autodesk consultant)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi alfred
that worked...!!!!
![]()
![]()
![]()
![]()
Thanks lot, 1000 data in one go...
Regards,
MK
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Prefect!
I have been looking a method like this for quite some time ![]()
Do you know if similar approach is possible for multi line text as well?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
As advised the lisp file has been created.
What should be the command to run the lisp in auto cad?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Dear Karthik
May I have the LISP file you created or some sample lisp in this regards? Please send it to kbg1973@gmail.com
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
>> What should be the command to run the lisp in auto cad?
You can simply copy & paste these lines into the command-line area of AutoCAD.
- alfred -
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------
(not an Autodesk consultant)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hey there,
I just saw this problem and i wonder if this would be possible for in- and output?
I want to extract coordinates from lines and re-enter some text at these positions.
Could this be done with excel as well?
example Ouput: Line1, x=10,y=20,z=0 [via Dataextract]
Input: Text"Line1" at x,y,z
Would this be possible through Lisp, without the in-between command elements?
The whole idea would be to output Data > manipulate in excel and input back again into plan drawings as text.
Thanks for any help in advance.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi,
>> Would this be possible through Lisp,
Hi yes, if you want it using LISP then >>>this forum<<< would be the best to ask.
- alfred -
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------
(not an Autodesk consultant)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar