Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic/API: Provide an API for exporting a face to DXF (with options)

iLogic/API: Provide an API for exporting a face to DXF (with options)

Currently, the only way to export a face to DXF via the API is by using the API to select the face, and then executing the "GeomToDXFCommand" command definition. This is not a "pure API" solution, which is not ideal and can cause problems (particularly if errors occur). However, even worse than that, it also provides no control over the important export options (file version and layers) that we get when exporting a face manually.

 

Please provide a true API mechanism for exporting a particular Face object to DXF, with control over export options such as file version and layers.

1 Comment
DRoam
Mentor

For Flat Patterns, we have the FlatPattern.DataIO.WriteDataToFile method, which accepts a Format string argument that can be used to control the file version and layers. Adding a "DataIO.WriteDataToFile" method to the "Face" class would be an acceptable implementation.

 

That is, as long as it actually supports specifying the version and layers in the Format string like Flat Pattern does. We already have Sketch.DataIO.WriteDataToFile and SurfaceBody.DataIO.WriteDataToFile methods, but the file version and layer-control string arguments don't seem to work for these. This would need to be fixed in order to use DataIO.WriteDataToFile as the implementation for this idea.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report