View Issue Details

IDProjectCategoryView StatusLast Update
0032500CommunityPRODUCTS:DXF Exportpublic2021-07-29 17:57
Reporterlucas_morona_164500 Assigned Togka 
PrioritynormalSeveritymajor 
Status newResolutionopen 
PlatformWindows OSWindows 10 
Product Version7.3.0 
Summary0032500: Is not possible export MESH object from DXF
DescriptionI tried to export a mesh object to DXF format but open cascade export null object.
Steps To Reproducetry 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());
}
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

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