3d DXF import
Posted: 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) ?
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) ?