From: skipper
Hello,
I want to export the x,y,z coordinates of the points describing a foil section profile. I used to do it (Moi3d 3.0) using the SavePointFile script but after selecting the points and a click on Done, nothing happens.
I have attached an example and am looking for a way to export the coordinates of all the points in form of x,y,z coordinates file - actually, as the points are in a plane, x,y would be sufficient.
Any idea about how to fix the script or another way of doing it?
Skipper
Attachments:
ar_foil_test.3dm
From: Michael Gibson
Hi skipper, please try the updated version of the script from here:
http://moi3d.com/forum/messages.php?webtag=MOI&msg=5124.2
Use the one that says it was updated to run on OSX, that one will work on both Windows and Mac v4 because it was updated to use MoI's built in functions for working with text files rather than using an ActiveX control.
- Michael
From: skipper
Hello Michael,
I updated the commands with the proposed versions and tested both import and "export" (SavePointFile) but the latter doesn't work in the sense, that I am not prompted to provide any filename and I don't see any file created automatically using e.g. the current Moi3d file name with another extension?! Import works fine.
What could be the problem?
Skipper
From: Michael Gibson
Hi skipper, well looking in your .3dm file in the start of this thread, there aren't any "point objects" in the file which is what the SavePointFile command is looking for. It won't recognize edit points that you can turn on for curve editing which is probably what you are doing?
You can convert edit points into point objects by selecting all edit points (but not the curve itself) and using Ctrl+C copy and then Ctrl+V paste. A quick way to select all edit points is to select one and then do Ctrl+A for select all.
Once you have converted the edit points into individual point objects then SavePointFile should do what you need.
- Michael