3d DXF import

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

Moderators: SDS, support, admin

Post Reply
zrudic
Posts: 6
Joined: 09 Dec 2008, 14:21

3d DXF import

Post by zrudic » 31 Dec 2009, 15:46

Hello !

I created polyline in 3d space consisting of 7 points in ACAD2008 and I tried to import resulting DXF file with CADImporterDLL. CADImporterDLL returned points as seen from perspective I left it in ACAD. When I simply rotated polyline (View->Orbit->Free Orbit) withouth changing any point and saved it into new DXF file, CADImporterDLL read completely different points of polyline. Points had X, Y and Z coordinates that I couldn't correlate with points shown in ACAD. All that I caught for Data->Tag in void CALLBACK ProcessCADObjects( LPCADDATA Data, LPARAM Param ) was CAD_POLYLINE (no CAD_BEGIN_VIEWPORT nor CAD_END_VIEWPORT that maybe could give connection between points in CADImporterDLL and ACAD). I tried calling CADIs3D(...), but didn't help.
What am I doing wrong ? How can I get exactly coordinates of points that ACAD stores in DXF file (I found them there, but CADImporterDLL somehow gives me different coordinates) ?

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

Re: 3d DXF import

Post by support » 05 Jan 2010, 14:36

Hello.
Viewing from different angles doesn't realized in CAD Importer DLL. The coordinates of entities will be recalculated for current viewport angle or won't be recalculated if displaying basic viewport when you import drawing. This can be set from CADEnum function. Use flag nEnumAll = 2 if you don't want recalculate coordinates of your polyline.

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

zrudic
Posts: 6
Joined: 09 Dec 2008, 14:21

Re: 3d DXF import

Post by zrudic » 11 Jan 2010, 13:00

Thanks, raw coordinates is just what I need.

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

Re: 3d DXF import

Post by support » 12 Jan 2010, 16:41

Thank you for the forum participation.

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

Post Reply