• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

create text on one point and then extract its coordinates

  • Thread starter Thread starter scracciolo
  • Start date Start date

scracciolo

Guest
I would like to know if there is a lisp that allows me to create the "text" directly on a "point". I do not need that in the text you can write something in particular, it would be good also for example the only letter "a" I just need the created text to be perfectly on the coordinates of the point. I would like to create a text that is perfectly on the coordinates of a previously created point. and by point I mean the autocad point command.
 
Last edited:
Maybe the points are hundreds.. .
That didn't specify it. No one here has a crystal ball. that better explain the problem then, even because I don't find the way to automatically insert the text on the points (which is one, 100 or a thousand) and then edit the content by hand one at a time. boh.
 
That didn't specify it. No one here has a crystal ball. that better explain the problem then, even because I don't find the way to automatically insert the text on the points (which is one, 100 or a thousand) and then edit the content by hand one at a time. boh.
Good morning. Yes, it is about topographic reliefs. I need to insert the text to the point because I need to extract later the coordinates not of the "point" but of the text. You will ask why not extract the coordinates directly from the point ? no, I need to extract the text coordinates.
 
...and can you tell us why or is it classified information?
because with the tools with which I extract the coordinates, if I extract the coordinates directly from the point I do not have the "point name" in excel instead if I extract the coordinates of the text, in excell I have both the coordinates and the name of the text from which I extract the coordinates. Is there a lisp to do what I asked? thank you in advance
 
Is there a lisp to do what I asked?
I have no idea... and, my personal opinion, it is absurd. extract the coordinates of the points in csv or xls format with the extinguished command of autocad and in excel add the name of the points. I just don't understand what the function you're looking for. .
 
I have no idea... and, my personal opinion, it is absurd. extract the coordinates of the points in csv or xls format with the extinguished command of autocad and in excel add the name of the points. I just don't understand what the function you're looking for. .
when the points are so many, it doesn't seem smart to "turn the excel sheet by hand". And then you tell me how you know where the extra coordinates match? I said that I solved. The lisp is this.

(defun c:rp()
(setq obj (car (entsel "\nsel select block: ")
(prompt "\n\nselect points")
(setq ss (ssget (cons 0 "point"))))
(setq inc 0)
(setq orgpnt (cdr))
(while (setq node (ssname ss inc))
(progn)
(setq topnt (cdr (assoc '10)))
(command "_copy" obj " orgpnt topnt)
(command "_explode" "_l"")
(setq inc (1+ inc))
)

Thank you.
 
That didn't specify it. No one here has a crystal ball.
I didn't know I had a ball all my own. .
In all cases, if one asks for a lisp to do a certain operation, it is intuitionable that he has a repetitive action in a massive way. If you have to do it three times, I miss to load a lisp, let alone look for it.
to deduce this does not take either the crystal ball, nor the ball of tristan:tongue:
I said that I solved. The lisp is this.
Did you write it with your hands?
 
It's the same problem you have with the lisp, and that's what I can't understand. but happy you...
I'll explain. with the lisp I put the text on each point, then selecting all the newly created texts I will edit them with a tool that automatically numera them e.g. 1-2-3-4 etc... after I extract the coordinates of the texts in excell and I will have the name of the point (es 1-2-3) and the coordinates. I hope I've been clear. If I extract the coordinates directly from the point I do not have the same name then in excell. Hi.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top