Subscriber

News


Receive HTML?




CAD Importer DLL E-mail
Version6.1
Compatible withVC++
Possible to use withVC++ / VB / Delphi / C# / VB.NET / J#
DownloadDemo version (1.39 MB)
Technical support This e-mail address is being protected from spambots. You need JavaScript enabled to view it
License questions This e-mail address is being protected from spambots. You need JavaScript enabled to view it
OrderUser License

CAD Importer DLL is made for developers of the languages which support DLL technology.
Demos for MS Visual Basic, MS Visual C++, Borland Delphi and Borland C++Builder are available.
The DLL exports routines for import extensive DXF, DWG, HPGL, SVG and CGM entities by using the following structure.

News in version 6.1:

  • Double precision has been applied.
  • AutoCAD™ DWG (all versions including 2008) file format is supported.
  • AutoCAD™ PROXY (including AEC) entities are supported.
  • HPGL/HPGL2 file format - Bezier splines are supported.
  • DXF Loading has been optimized for files with big amount of blocks (layers and styles). In some cases speed is increased up to ten times.

CADDATA

The CADDATA structure contains information about DXF/DWG/HPG/SVG/CGM entity properties. If the entity is inside of block, the entity will be returned for each insert operation with properties recalculated for this particular insert.

typedef struct _CADDATA {
  WORD Tag;
  WORD Count;
  WORD TickCount;
  BYTE Flags;
  BYTE Style;
  int Dimension;
  LPFPOINT DashDots;
  int DashDotsCount;
  int Color;
  LPVOID Ticks;
  sgFloat Thickness;
  sgFloat Rotation;
  char* Layer;
  char* Text;
  char* FontName;
  unsigned long Handle;
  int Undefined1;
  sgFloat Undefined2;
  sgFloat Undefined3;
  LPCADEXTENDEDDATA CADExtendedData; 
  FPOINT Point1;
  FPOINT Point2;
  FPOINT Point3;
  FPOINT Point4;
  union {
    struct {
      sgFloat Radius;
      sgFloat StartAngle;
      sgFloat EndAngle;
      sgFloat Ratio;
      BYTE EntityType;
    } Arc;
    struct {
      HANDLE Block;
      FPOINT Scale;
    } Blocks;
    struct {
      sgFloat FHeight;
      sgFloat FScale;
      sgFloat RWidth;
      sgFloat RHeight;
      BYTE HAlign;
      BYTE VAlign;
    } Text;
    LPFPOINT *PolyPoints;
  } DATA;
} CADDATA, *LPCADDATA;

 
 ©2001-2009 Soft Gold Ltd. All rights reserved.