Sample code

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: SDS, support, admin

Post Reply
b.p
Posts: 2
Joined: 11 Nov 2011, 14:06

Sample code

Post by b.p » 09 Jan 2012, 12:38

Is there any simple sample code (C++) where I can simply load a dwg-File and display it, maybe scale? I have CADImporterDLL..
Thanks,
bp

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Sample code

Post by support » 11 Jan 2012, 18:11

Hello.
CAD Importer includes demo projects for VC++ and C++ Builder. Unfortunately we can't provide you with an alternative C++ demo.
CADCreate function used to import a drawing from an existed file. The library allows access to properties of entities from imported drawing. An entity can be drawn based on provided properties that shown in demo project. Visualization realized via CADEnum that calls drawing procedure for each entity. There is the CADDraw function within library API that visualize CAD drawing object. Using this function allows simplify demo project significantly.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

b.p
Posts: 2
Joined: 11 Nov 2011, 14:06

Re: Sample code

Post by b.p » 11 Jan 2012, 18:29

Hello,
I do have VC++, I'm just struggling with the program, it's just too complex, because I don't need all those functions.
Thanks,
bp

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Sample code

Post by support » 12 Jan 2012, 18:07

Hello.
You can exclude sg and sgSpline units from project to simplify it, as well as most of MainWindow optional functions (such as ArcsAsCurves or Circle) within CADWindow module.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply