Skip to main content

Demos

How to run demos?

The CAD VCL package contains a number of demo applications. You can find the demos in these paths:

  • cadvcl_demo\Delphi\Demos for Delphi;
  • cadvcl_demo\C++ Builder\Demos for C++ Builder.

Also, you can find the exe files of these demos in cadvcl_demo\Delphi\Exe and cadvcl_demo\C++ Builder\Exe.

Note

The path to CAD VCL is already defined in these demo projects.

CAD VCL demos

AddEntities

This demo shows how to create new drawings and add entities to it. These entities can also be export to DXF. So, this is the main demo for creating DXF and other CAD files.

AutoExportToCAD

This demo shows export to DWG, DXF and other CAD formats either automatically (via a metafile) or directly. Export via a metafile allows creating DWG, DXF and other CAD files automatically. This is a quick and convenient method for adding CAD (DWG, DXF, SVG, CGM, PLT, PDF) export functionality to your application.

DB Blob + LoadFromStream

This demo shows how to work with database and stream.

EditorLite

This demo shows the following features:

  • Selection of entities
  • Changing properties in the properties inspector
  • Selection of all entities
  • Viewing selected entities in an additional window (lines and circles only)
  • Panning of the selected entities
  • Copying a block to the clipboard and pasting to another drawing

GettingStarted

This demo contains basic functionality of CAD VCL. Each button refers to small number of code lines in one function, so it is easy to copy and paste the code to your application.

OpenGL

The OpenGL demo draws 3DFace entities using OpenGL functions.

Features:

  • Zooming
  • Padding by left mouse button (when 3D Rotating is off)
  • 3D Rotating
  • Wireframe option allows showing items as a flooded or framed surface
  • Black background option allows drawing the background in black or grey colors
  • Lighting option switches shading of the surface on/off
  • Material1 and Material2 options allows showing surfaces as different kinds of material

SimpleImport

SimpleImport is the most important demo for import purposes. It demonstrates access to the properties of entities, opening a CAD file and saving a TXT file.

TextChange + Color2LineWeight + MergeFiles

  • Scripts to change special text to give values
  • Assigns line weight using color
  • Merges files
  • Changes LineType scale
  • Shows/Hides lineweight

TImage + SaveBMP

The TImage + SaveBMP demo application demonstrates how to import the CAD image to the TImage component and then export from it to BMP or JPEG.

Viewer

The Viewer demo application is an example of using CAD VCL library for viewing purposes.

3D

The application demonstrates how to import and display 3D formats (STEP, IGES, STL, 3D-DWG, ASIS SAT and BREP) using the Tsg3DDrawingNavigator component.

CAD VCL Multiplatform demos

FMViewer

The FMViewer demo application is an example of using CAD VCL Multiplatform with FireMonkey framework for viewing purposes in Android OS.

FMViewer3D

The FMViewer demo application is an example of using CAD VCL Multiplatform with FireMonkey framework for viewing 3D objects in Android OS.