CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Modeling

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-21-2018, 11:07 AM
sonat.elmaci sonat.elmaci is offline
Registered User
 
Join Date: May 2014
Posts: 9
export point coordinates

Dear all,
I would like to export point coordinates as text format for cam software. how can I do this? Please find below example file.

-39.0280 19.9090 -1.0720 #0 255 0
-0.1290 46.1730 2.4260 #0 255 0
39.0820 19.8260 0.0000 #0 255 0
41.1190 -22.8030 0.0000 #0 255 0
-0.3080 -47.4540 0.0000 #0 255 0
-41.2460 -22.9500 0.0000 #0 255 0

Thanks.
Sonat
Reply With Quote
  #2  
Old 03-22-2018, 12:54 AM
Marten Marten is offline
Registered User
 
Join Date: Feb 2006
Location: Tilburg, The Netherlands
Posts: 139
Re: export point coordinates

Hi Sonat,

Something like this should work:

(with-open-file (stream PATHTOFILE :direction utput :if-exists :supersede :external-format :system)
(dolist (coordinate coordinateslist)
(write-line (format nil "~A ~A ~A #0 255 0" (gpnt3d_x coordinate) (gpnt3d_y coordinate) (gpnt3d_z coordinate)) stream)
);end dolist
)

Regards,

Marten Verhoeven
Reply With Quote
  #3  
Old 03-31-2018, 08:53 AM
sonat.elmaci sonat.elmaci is offline
Registered User
 
Join Date: May 2014
Posts: 9
Re: export point coordinates

Quote:
Originally Posted by Marten View Post
Hi Sonat,

Something like this should work:

(with-open-file (stream PATHTOFILE :direction utput :if-exists :supersede :external-format :system)
(dolist (coordinate coordinateslist)
(write-line (format nil "~A ~A ~A #0 255 0" (gpnt3d_x coordinate) (gpnt3d_y coordinate) (gpnt3d_z coordinate)) stream)
);end dolist
)

Regards,

Marten Verhoeven
Thanks Marten. I will try!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:11 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.