Jump to content


XY coordinates export


8 replies to this topic

#1 Igor200019

    Newbie

  • Members
  • Pip
  • 1 posts
  • LocationMilan, Italy

Posted 08 September 2019 - 07:37 PM

Hi there!
I spent several days to find the solution so probably somebody here can help because I installed NanoCad as well...

My task is to get the XY coordinates from DXF or DWG drawing with the correct following of lines. Mainly I need to import it to the machine as tool library.
It should be something like
514.997411,704.507486
514.997411,605.507486
506.417411,605.007486
506.297129,604.988973

Before I used DraftSight so my story is that I didn't find any info how to extract coordinates from Draftsight. To import throught the drawing - not the problem, but to get... I found the separate program DX2XYZ which deals with only 2000 version files.
With this converting finally I have the coordinates with the all connection points mixed (check the attachment - left the real drawing, right is after the converting).

So I'm looking about NanoCad possibility just to get XY points with normal connection one by one. Is something possible? If not what do you recommend?

It's really strange - XY coordinates should be used widely but there is very poor information about the export and possibilities for every CAD program. Really simple problem but gettting me mad...

Attached Thumbnails

  • Attached Image: Screenshot_2.jpg


#2 Nefryt

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 May 2020 - 01:33 PM

Hello!
You handled this problem because I need to insert points on the project and then export points and X, Y coordinates but I don't know how supposedly it is possible in NanoCad 2020?

#3 karmi

    Advanced Member

  • Members
  • PipPipPip
  • 49 posts

Posted 19 May 2020 - 07:43 AM

View PostIgor200019, on 08 September 2019 - 07:37 PM, said:

Hi there!
I spent several days to find the solution so probably somebody here can help because I installed NanoCad as well...

My task is to get the XY coordinates from DXF or DWG drawing with the correct following of lines. Mainly I need to import it to the machine as tool library.
It should be something like
514.997411,704.507486
514.997411,605.507486
506.417411,605.007486
506.297129,604.988973

Before I used DraftSight so my story is that I didn't find any info how to extract coordinates from Draftsight. To import throught the drawing - not the problem, but to get... I found the separate program DX2XYZ which deals with only 2000 version files.
With this converting finally I have the coordinates with the all connection points mixed (check the attachment - left the real drawing, right is after the converting).

So I'm looking about NanoCad possibility just to get XY points with normal connection one by one. Is something possible? If not what do you recommend?

It's really strange - XY coordinates should be used widely but there is very poor information about the export and possibilities for every CAD program. Really simple problem but gettting me mad...
Ciao, ti rispondo in italiano dato che sei di Milano.
Prova a dare un'occhiata a questi lisp, in particolare il n. 5 e 10 http://www.sepram.it/lisp.html
Non so se esportano in modo ordinato come cerchi tu ma potrebbero essere utili lo stesso...
Ciao

#4 pguimber

    Advanced Member

  • Members
  • PipPipPip
  • 387 posts
  • LocationFrance - Maine et Loire

Posted 19 May 2020 - 02:30 PM

Hello,
load file Ptexport.lsp with appload command.
It's a file TXT with LSP extension.

Spoiler

Command : ptexport
click on point 1, 2, .... finish with Enter.
Export in text with csv or txt extension

You can see this (x, y, z):

15.2237065 111.775004 0 (it's the point 1)
102.947381 142.10658 0 ( the point 2....
191.265792 128.130265 0

Best regards
Patrick

#5 Thanh Duong

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 June 2022 - 09:55 AM

View Postpguimber, on 19 May 2020 - 02:30 PM, said:

Hello,
load file Ptexport.lsp with appload command.
It's a file TXT with LSP extension.

Spoiler

Command : ptexport
click on point 1, 2, .... finish with Enter.
Export in text with csv or txt extension

You can see this (x, y, z):

15.2237065 111.775004 0 (it's the point 1)
102.947381 142.10658 0 ( the point 2....
191.265792 128.130265 0

Best regards
Patrick

Sorry, but no work. After appload, I received "Invalid Keyword or Command" for input "PTexport"

#6 pguimber

    Advanced Member

  • Members
  • PipPipPip
  • 387 posts
  • LocationFrance - Maine et Loire

Posted 15 June 2022 - 02:06 PM

View PostThanh Duong, on 15 June 2022 - 09:55 AM, said:

Sorry, but no work. After appload, I received "Invalid Keyword or Command" for input "PTexport"

Hello,
this script in LISP is correct with Auocad.
But with NC5 ... some modifications may be necessary.
which ones, I don't know
Best regards
Patrick

#7 pguimber

    Advanced Member

  • Members
  • PipPipPip
  • 387 posts
  • LocationFrance - Maine et Loire

Posted 15 June 2022 - 02:12 PM

I have a message :
error: extra cdrs in dotted pair on input

But where ? i don't know!

Precision: I cleaned the file of its header to keep only the code

#8 pguimber

    Advanced Member

  • Members
  • PipPipPip
  • 387 posts
  • LocationFrance - Maine et Loire

Posted 15 June 2022 - 03:00 PM

Maybe a begining answer :
https://forums.autod...3362627#M302769

#9 Thanh Duong

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 16 June 2022 - 09:52 AM

Thank you for your feedback.
Yesterday, I copied the said script and load into Nanocad but it doesnt works.

I found another way to do it (list the coordinates of some points).

Have a great day.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users