Export / Import
To import a CAD model using Data Flow sample, 3D Debugger, or other DG Kernel application select File > Open and select the
correspondent option in the list of filters. To export make similar selection in File > Save As dialogue.
List of supported formats:
- DG Kernel Models (*.mdg)
- Kernel CAD Models (*.glm)
- STEP (*.stp,*step)
- IGES (*.iges,*igs)
- BREP (*.brep,*rle)
- Wavefront (*.obj)
- STL (*.stl)
- VRML (*.wrl,*vrml)
- CSV (*.csv)
- XYZ (*.xyz)
AutoCAD and related formats:
- AutoCAD DXF(*.dxf)
- AutoCAD DWG(*.dwg)
- CSFDB Files (*.csf,*.csfdb)
- ACIS Files (*.sat)
Support for AutoCAD group of formats may not be available in the standard version. Contact us to request evaluation
File specified in ModelPath property can have either of the above extensions.
Import/export operations can be performed programmatically using Load* and Save* methods of IModel_DG interface or by changing ModelPath pro property of the control or using its SaveAs method. The format in which the model is persisted is identified by the file extension.
For STL file format DG Kernel offers a way to store structured models in a file folder, called STL
Directory Tree. See STL Tree for details
All objects of STL format and most of the objects in VRML format are imported
as Mesh Geometries. Standard VRML objects like Box,
Sphere and Cone are imported as parametric (Generic 3D Object
or Surface Of Revolution) objects.
Data Context
Data context is an internal DG Kernel structure used during import/export operations which defines different options
like performing extra validity check on load
Details: Data Exchange API,
IDataContext_DG,
ISTLDataContext_DG
|