3d DXF import

If you have any comments or questions about our DLL's SDKs, please do not hesitate to contact us at this forum

Moderators: admin, SDS, support

3d DXF import

Postby zrudic » 31 Dec 2009, 13: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) ?
zrudic
 
Posts: 6
Joined: 09 Dec 2008, 12:21

Re: 3d DXF import

Postby support » 05 Jan 2010, 12: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.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: 3d DXF import

Postby zrudic » 11 Jan 2010, 11:00

Thanks, raw coordinates is just what I need.
zrudic
 
Posts: 6
Joined: 09 Dec 2008, 12:21

Re: 3d DXF import

Postby support » 12 Jan 2010, 14:41

Thank you for the forum participation.

Alexander.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia


Return to CADImageDLL + CADImporterDLL + DXFExporterDLL

Who is online

Users browsing this forum: No registered users and 0 guests

cron