TsgDWGImage

Hierarchy                Properties                Methods                Events

  Classes Reference > Reading from file >

TsgDWGImage

Hierarchy                Properties                Methods                Events

Previous pageReturn to chapter overviewNext page

DWG files TGraphic class

TsgDWGImage = class(TsgCADImage)

Unit

DWG

Description

Main class TsgDWGImage is a descendant of TsgCADImage (which is a descendant of TGraphic) and overrides it methods. TsgDWGImage can be used in TImage control for displaying and navigation AutoCAD™ DWG drawings.

DWG is a widely used file format for exchanging 2D and 3D CAD data. It's not an open format but owned by AutoDesk Inc. who used it for their program AutoCAD™. With every new version of AutoCAD the definition of DWG is changed but nevertheless there are many of programs which are capable of reading and writing some form of DWG.

After loading a DWG file, its separate DWG/DXF entities are accessible through the Converter property and its indexed properties Blocks and Entities. All entities are descendants of TsgDXFEntity. For example, the TEXT entity has TsgDXFText type, etc. In other words, the entities are common for both DXF and DWG.

 

 

Go to CAD VCL Enterprise