6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
9 # Example of import/export file in DXF format
11 print "Test Export/Import DXF ..."
13 tmpDir = os.getenv("TEMP")
17 # File for Export/Import testing
18 fileExportImport = tmpDir + "/testExportImportDXF.dxf"
21 box = geompy.MakeBoxDXDYDZ(100,100,100)
24 geompy.ExportDXF(box,fileExportImport)
27 Shape1 = geompy.ImportDXF(fileExportImport)
28 geompy.addToStudy(Shape1, "ImportDXF_1")
30 # It is possible also to use next format of importing and publishing in study
32 Shape2 = geompy.ImportDXF(fileExportImport,"ImportDXF_2")