Sample code
Moderators: SDS, support, admin
Sample code
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
Thanks,
bp
Re: Sample code
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.
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
Chat support on Skype: cadsofttools.support
Re: Sample code
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
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
Re: Sample code
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.
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
Chat support on Skype: cadsofttools.support