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

precise sequence coordinated extraction points

  • Thread starter Thread starter crimas
  • Start date Start date

crimas

Guest
hi to all I am new to the forum, I expose you my problem in practice I have a dwg file where there are the coordinates of some points that will have to be placed in a machine and necessary for so long to have the list of these points following an order from me set. guest spots draw metal punches depicting the various numbers; If we take for example the one as attached the numbers will have the following order and have the origin of the axes on the top left where there is the red ball.
I have already tried to use extinct but does not give me the points in order gives me the right coordinates though I set the usc on the point 0.0 fixed by me.
I tried to use some lisp but they don't give me the points in order. the ideal would be to have a tool that allows me to select the point and to send and download the coordinates of the latter on a text document and then proceed with the second point and so on for all points.
I know it's a little complicated, but thanks to all those who will answer.
 

Attachments

  • punto1.webp
    punto1.webp
    5.3 KB · Views: 56
Last edited by a moderator:
without resorting to particular software:
1) Draw polylinea as a figure attached
2) extract the coordinates of the vertices in excel
3) recalculate the coordinates by subtracting the values of x and y of the 1° vertex.

bye
 

Attachments

  • punto1.webp
    punto1.webp
    6.6 KB · Views: 54
ready to use solution.
load the routine in lisp, command rppunti, select polylinea and thus create the .txt file with data.
via the .xls file (which is an example), amounts the .txt file, set the table as an example and get the ordered list of points.

bye
 

Attachments

Thanks for everything, I wanted to ask you why by putting the first point of polylinea on the origin of the axes the cordinates of the latter turn out different from 0.0
 
I have another problem practically when I go to copy the data from the txt in excell does not place the numbers in the right boxes put them all on the first box because there is something I'm wrong?
 
you do not have to copy them with the usual copy-paste but import the txt.
data -> import external data
 
thank you so much I solved the problem of insertion but I wanted to know how ever the summit of polylinea while being on the origin of the axes when I take the coordinates instead of giving me 0.0 me (x 1118,47 y 1173,33) forcing me to have to remove from all the other coordinates those of the first summit. the thing would be much easier if the first summit had 0.0 coordinates because all the other coordinates would already be in supply without having to take anything away.
I am now wondering why these high-rise coordinates come out while focusing on the first polylinea summit.
thanks to all for the precious advice you have given me so far.
 
coordinates are not high, they are only expressed in the global uct.

I modified the file so that the coordinates are expressed in the active uct at that time.
 

Attachments

thank you so much I managed to do all the work in a short time I would never have done it alone!!!!:biggrin:
 
I wanted to ask you something else about placing coordinates from a txt file to see if the points are created correctly only that the lisp that I downloaded puts the points wrong, i.e. on 10 points it resets 3 and the others are moved compared to where they should be. I had to change the lisp so that it recognized the space as a separator and not the comma point.
this is the model of the coordinates I have in the txt:
code x y z
0 4,92889 -1,99454 0.0
0 3,16573 -2,65557 0.0
0 2,12217 -4,22476 0.0
0 1.81368 -6,01612 0.0
generated by the lisp to extract the coordinates of the sin polyline that cannot enter the same coordinates on autocad; there must be a mistake in reading the txt.
I hope I've been clear enough to describe the problem.
 

Attachments

you are entering into excel that decides the coordinate separator, whether the space or the point and comma.
 
si ok ma forse non mi sono spiegato bene , in pratica io devo prendere il file txt che mi viene generato da autocad con le coordinate della polilinea e immetterlo nuovamente in autocad senza dover modificare niente per questo ho modificato la lisp riconoscendo il separatore nello spazio in modo che l'operazione fosse più immediata possibile ma ci deve essere qualche errore di lettura del txt. perchè l'immissione dei punti avviene in parte giusta e in parte sbagliata
 
neanche questa lisp sembra funzionare importa tutti i punti creando una linea come se non leggesse le coordinate y. allego il file txt di cui voglio fare l'inserimento in autocad sperando che qualcuno riesca nell impresa.
grazie a tutti
 

Attachments

Forum statistics

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

Members online

No members online now.
ciao
Back
Top