PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > Export3DDXF
Export3DDXF

Description:

Export the currently loaded project as a 3D DXF file.

Syntax:

"Export3DDXF fileName points ids lines edges curves surfaces surfaceDraw cylinders cylLines cylTri decPlaces asMesh visibleEdges clockWise offsetPoints, pointMeshesAsPoints pointMeshesAsTriangles contours smartPoints"

where:

filename is the full path and name of the export file (no spaces are allowed), points, ids, lines, edges, curves, surfaces, surfaceDraw and cylinders are set to “1” if that type should be included in the export or “0” if they should not. cylLines should be set to ”1” to export cylinders as center lines, cylTri should be set to “1” to export cylinders as triangles, decPlaces should be the number of decimal places to include in the file, asMesh should be “1” to export surfaces as a mesh, visibleEdges should be “1” turn on the visible triangle edges option, clockwise should be “1” for the surface vertex order to be clockwise or “0” for it to be counter clockwise, offsetPoints “1” for the 3D offset points to be visible and “0” for not, pointMeshesAsPoints “1” to export non-triangulated pointmeshes as a series of points, pointMeshesAsTriangles “1” to export triangulated pointmeshes as a series of triangles, contours "1" to export contours in the project (as a series of lines), smartPoints "1" to export 3D smartPoint data.

Return:

"1" if export is successful or "0" if this command failed. 

Failure returns

- incorrect number of parameters (including spaces in file name)

- the directory/folder where file is to go, does not exist

- no project is open

- the export file could not be created

- the export failed

Example:

"Export3DDXF c:\output\House.dxf 1 0 1 1 0 1 0 0 0 0 6 1 1 1 0"

or

"Export3DDXF c:\output\House.dxf 1 0 1 1 0 1 0 0 0 0 6 1 1 1 0 1"  (adds optional offset points)

or

"Export3DDXF c:\output\House.dxf 1 0 1 1 0 1 0 0 0 0 6 1 1 1 0 1 1 1 1 1" (adds optional offset points, pointmeshes as points, pointmeshes as triangles, contours and smartpoints)

 

return "1"