View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0032500 | Community | PRODUCTS:DXF Export | public | 2021-07-29 17:57 | 2021-07-29 17:57 |
Reporter | lucas_morona_164500 | Assigned To | |||
Priority | normal | Severity | major | ||
Status | new | Resolution | open | ||
Platform | Windows | OS | Windows 10 | ||
Product Version | 7.3.0 | ||||
Summary | 0032500: Is not possible export MESH object from DXF | ||||
Description | I tried to export a mesh object to DXF format but open cascade export null object. | ||||
Steps To Reproduce | try to create Mesh object and export to DXF. DXFCAFControl_Writer writer; // Set the layer mode to create layers Standard_Boolean layerMode = true; writer.SetLayerMode(layerMode); Standard_Boolean writerMode = true; writer.SetNameMode(writerMode); Handle(TDocStd_Document) document; Handle(XCAFApp_Application) application = XCAFApp_Application::GetApplication(); // Is necessary create a new document application->NewDocument("DXF-CAF", document); TDF_Label rootLabel = document->Main(); // This object is important to extract layer from DXF Handle(XCAFDoc_LayerTool) layerTool = XCAFDoc_DocumentTool::LayerTool(rootLabel); insertEmptyLayer(layerTool, shapeTool); for (ShapeObjectMap shape : m_shapesOCCList) { shapeTool->AddShape(shape.shape); } writer.Transfer(document); writer.WriteFile((Standard_CString)m_filePath.toLatin1().constData()); } | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2021-07-29 17:57 | lucas_morona_164500 | New Issue | |
2021-07-29 17:57 | lucas_morona_164500 | Assigned To | => gka |