DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > Models > Import/Export > Import/Export Overview Search Documentation


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 dialog.

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. See IModelEx for details. The format in which the model is persisted is identified by the file extension. Additional save/load options can be supplied via IModelEx with the help of  IDataContext and ISTLDataContext. 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 Sections. Standard VRML objects like Box, Sphere and Cone are imported as parametric (Generic 3D Object or Surface Of Revolution) objects.

Version information about a format (mostly related to AutoCAD formats) can be accessed via interfaces described at Data Exchange API

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, ISTLDataContext