Drawings SDK Developer Guide > Getting Started with Drawings SDK > Using Sample Applications
Using Sample Code

Sample code illustrates how to use Drawings features when developing custom applications with different programming languages on different platforms supported by the Drawings SDK.

The following table describes which areas are featured in the sample code.

Please use filters to find sample applications matching criteria you are interested in.

Filters:

Programming Language

Developer Level

Drawings SDK Functionality

Platform Specific


All Samples

Current Filter: Beginner/.dwg/Windows/C++
 Name  Location Description
OdCopyEx Drawing/Examples Reading a drawing file and saving it as a new .dwg, .dxf, or .dxb file.
OdReadEx Drawing/Examples Reading a drawing file and displaying all information about the entities and object types located in the file.
OdWriteEx Drawing/Examples Creating a new drawing, populating it with various entities, and saving to a file.
IncrementalSaveEx Drawing/Examples Opening a drawing, populating it with additional entities, and incrementally saving it in two different streams.
OdVectorizeEx Drawing/Examples Dumping geometry of the active layout to the console.
OdExtractTextEx Drawing/Examples Extracting text content from a drawing file to the command prompt window (or redirects to a file).
OdGetGeomEx Drawing/Examples Dumping an entity's geometry using vectorization.
OdMaterialViewEx Drawing/Examples Dumping triangles and texture coordinates for 3dSolid entities.
OdOpenGL Drawing/Examples Module that provides a GLWidget to render drawing context.
ExCommands Drawing/Examples Module implementing a number of commands.
ExCustObjs Drawing/Examples Custom entities implementation with testing and debugging commands.
Smiley Drawing/Examples/win Sample implementation of a custom entity.
ExCustObjCOM Drawing/Examples/win Sample of a COM wrapper for a custom entity from the ExCustObjs sample.
OdaHoopsDemo Drawing/Examples/win Converting a .dwg file to HOOPS and using the HOOPS library for rendering.
OdaMDIApp Drawing/Examples/win Simple MFC viewer application with a multi-document user interface.
OdaMfcApp Drawing/Examples/win MFC application convenient for debugging various functionality. Can display drawing structure, render, run commands, etc.
OpenCAD Drawing/Examples/win MFC CAD-like application.
SingleDoc Drawing/Examples/win Simple MFC application with a single-document user interface (SDI).
OdaMfcAppCE Drawing/Examples/WinCE Sample MFC application for WinCE.
OdaWinRTApp Drawing/Examples/WinRT Sample MFC application for WinRT.
X11 Drawing/Examples/X11 Sample application fox X Window System.
jni Dgn/Examples/Android C++ native JNI shared library (.so). It is used in OdaAndroidDgnApp to provide Drawings SDK functionality.
OdaAndroidDgnApp Dgn/Examples/Android Android specific application illustrating reading and rendering of .dgn files.
ExDgnCellTransform Dgn/Examples Creating a .dgn file with transformed cells.
ExDgnCloning Dgn/Examples Sample commands to test deep clone and wblock clone functionality.
ExDgnColladaExport Dgn/Examples Reading a .dgn file and exports its contents to a Collada (.dae) file.
ExDgnCopy Dgn/Examples Simplest cross-platform console application that converts a .dgn file to a specified format and version.
ExDgnCreate Dgn/Examples Creating a new drawing, populating it with various elements and saving it to V8 .dgn file.
ExDgnDump Dgn/Examples Reading a .dgn file and dumping database contents to the console.
ExDgnDwgProject Dgn/Examples Simple console application for working with .dwg and .dgn files.
ExDgnGripPoints Dgn/Examples Sample implementation of the OdDgGripPointsPE interface for .dgn files.
ExDgnMaterials Dgn/Examples Creating a new .dgn file with internal materials.
ExDgnOverruling Dgn/Examples Sample overruling implementation for .dgn files.
ExDgnReadWrite Dgn/Examples Reading and modifying a .dgn file.
ExDgnTextFormat Dgn/Examples OdDgV7FontMapper class usage for .dgn files.
ExDgnToBmp Dgn/Examples Converting a .dgn file to a .bmp file.
ExDgnVectorize Dgn/Examples Dumping the active layout geometry for .dgn files.
ExDgnViewCreate Dgn/Examples Creating a new V8 .dgn file.
ExDgnXRefDump Dgn/Examples Working with reference attachment elements.
ExDimensioning Dgn/Examples Creating a new .dgn file with dimension type elements.
ExDwgXData Dgn/Examples Dumping XData linkages.
ExReactors Dgn/Examples Database reactors usage sample for .dgn files.
ExSimpleProject Dgn/Examples Creating a new V8 .dgn file.
ExSplines Dgn/Examples Creating a new V8 .dgn file with splines.
ExTags Dgn/Examples Creating a new V8 .dgn file with tags.
OdSignEx Drawing/Examples Signing a .dwg file with a digital security certificate. Validating the signature of a .dwg file.
OdDwgSignEx Drawing/Examples/win Signing a .dwg file with a digital security certificate. Validating the signature of a .dwg file.
ExDeepCloning Drawing/Examples Deep clone sample.
ExDimAssoc Drawing/Examples Recomputing associative dimensions.
ExDynamicBlocks Drawing/Examples Creating and editing dynamic blocks.
ExEntityIntersection Drawing/Examples OdDbEntityIntersectionPE interface implementation.
ExEvalWatchers Drawing/Examples Hatches and dimensions evaluation notification functions.
ExFieldEvaluator Drawing/Examples Text fields evaluator.
ExPointCloudHost Drawing/Examples OdDbPointCloudHostPE interface implementation.
GeolocationObj Drawing/Examples Working with geo-map objects.
GripPoints Drawing/Examples OdDbGripPointsPE interface implementation.
iOdaApp Drawing/Examples/iOS iOS sample application.
iOdWriteEx Drawing/Examples/iOS Deprecated, since iOS 4.0.
Cocoa Drawing/Examples/macOS Sample macOS application built as a bundle.
ModelerCommands Drawing/Examples Working with 3D solids.
OdAveEx Drawing/Examples Working with AVE sample.
OdBagFiler Drawing/Examples Using the oddbEntGet() function sample.
OdBrEx Drawing/Examples Traversing curves in a drawing file.
OdCurveFunctions Drawing/Examples OdDbCurvePE interface implementation sample.
OdDbGeoMapPE Drawing/Examples Geo-map object protocol extension sample.
OdPC3Read Drawing/Examples Dumping a .pc3 file to an .xml file.
OdSheetSet Drawing/Examples Reading, dumping and writing a .dst file.
Overruling Drawing/Examples Illustrating the overruling feature.
DgnDb Drawing/Examples/Qt Module that allows .dgn files to be read and rendered in the ODADrawingsExplorer sample application.
OdaQtApp Drawing/Examples/Qt Cross-platform CAD visualization application.
OdaQtConsole Drawing/Examples/Qt Command line commands module for the ODADrawingsExplorer.
OdaQtOpenGL Drawing/Examples/Qt Rendering drawing context using OpenGL functionality.
OdaQtPlotSettingsValidator Drawing/Examples/Qt Module containing widgets for plotting a model.
OdaQtPropSystem Drawing/Examples/Qt Widgets for displaying drawing properties.
OdaQtViewSystem Drawing/Examples/Qt Qt widgets used for rendering drawings.
ODAFileConverter Drawing/Examples/Qt GUI application for converting drawings between .dwg and .dxf formats.
OdColladaExportEx Drawing/Examples Exporting a drawing file to a Collada (.dae) file.
OdDwfExportEx Drawing/Examples Exporting a drawing file to a .dwf file.
OdPdfExportEx Drawing/Examples Exporting a drawing file to a .pdf file.
OdSvgExportEx Drawing/Examples Exporting a drawing file to a .svg file.
OdWmfExport Drawing/Examples Exporting a drawing file to a .wmf file.
ExDgnImport Drawing/Examples Importing a .dgn file to a .dwg file.
OdColladaImportEx Drawing/Examples Importing a Collada (.dae) file to a .dwg/.dxf file.
OdDwfImportEx Drawing/Examples Importing a .dwf file to a .dwg/.dxf file.
jni Drawing/Examples/Android C++ native JNI shared library used to provide ODA Drawings SDK functionality for Android applications.
OdaAndroidApp Drawing/Examples/Android An Android specific sample application illustrating reading and rendering .dwg, .dxf, .jpg, .dae and .dwf files.
iCommon Drawing/Examples/iOS iOS application reusable files.
Copyright © 2002 – 2021. Open Design Alliance. All rights reserved.