Page 1 of 1

3d DXF import

Posted: 31 Dec 2009, 15:46
by zrudic
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) ?

Re: 3d DXF import

Posted: 05 Jan 2010, 14:36
by support
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.

Re: 3d DXF import

Posted: 11 Jan 2010, 13:00
by zrudic
Thanks, raw coordinates is just what I need.

Re: 3d DXF import

Posted: 12 Jan 2010, 16:41
by support
Thank you for the forum participation.

Alexander.