CADImport Accuracy
Moderators: SDS, support, admin
CADImport Accuracy
Hello CAD Soft Tools,
I have been using this CADImport.DLL so that I could import .DWG vector files into my own Vector Format. When I scan through the entities to retrieve grouping, layer, and entity data, everything seems consistant. However when I render the image, there are a few issues with accuracy. I have been searching through the entity data for any clues as to what data I am missing during the conversion.
These accuracy errors are not consistant between CAD files, and these accuracy errors are not within my display methods.
In one incident, a handful of line entities are reproduced translated far away from everything else, and thus where they should be. When they are drawn through your methods or by AutoCAD, they are in their correct location, but the entity data, when plotted out, is considerably wrong.
In another incident there is a situation where some arc data is rotated by Pi (180 degrees). If I am given a start and stop angle, that should be accurate every time. I can not find any variables that would obviousely indicate some kind of arc rotation, such as the one in the Ellipse entity data.
In another incident, every layer appears to be drawn at an offset. The Entity data reports a coordinate, I use that coordinate, but when you look at the result, it is visually incorrect. Where is this rogue translation coming from?
I have a feeling that this problem in it's many forms all comes down to a single translation value that I can not find. Something that influences the end result on how it is located and rotated, outside of the Entity data itself.
I have searched through the Layer, Group, and Entity data, and nothing stands out as applying some kind of conversion to the reported Entity data. The raw Entity values are "sometimes" wrong, and I need to know what is missing, before I can move forward.
Has anyone else encountered this problem? I know that my use of the .DLL is somewhat unique.
I have been using this CADImport.DLL so that I could import .DWG vector files into my own Vector Format. When I scan through the entities to retrieve grouping, layer, and entity data, everything seems consistant. However when I render the image, there are a few issues with accuracy. I have been searching through the entity data for any clues as to what data I am missing during the conversion.
These accuracy errors are not consistant between CAD files, and these accuracy errors are not within my display methods.
In one incident, a handful of line entities are reproduced translated far away from everything else, and thus where they should be. When they are drawn through your methods or by AutoCAD, they are in their correct location, but the entity data, when plotted out, is considerably wrong.
In another incident there is a situation where some arc data is rotated by Pi (180 degrees). If I am given a start and stop angle, that should be accurate every time. I can not find any variables that would obviousely indicate some kind of arc rotation, such as the one in the Ellipse entity data.
In another incident, every layer appears to be drawn at an offset. The Entity data reports a coordinate, I use that coordinate, but when you look at the result, it is visually incorrect. Where is this rogue translation coming from?
I have a feeling that this problem in it's many forms all comes down to a single translation value that I can not find. Something that influences the end result on how it is located and rotated, outside of the Entity data itself.
I have searched through the Layer, Group, and Entity data, and nothing stands out as applying some kind of conversion to the reported Entity data. The raw Entity values are "sometimes" wrong, and I need to know what is missing, before I can move forward.
Has anyone else encountered this problem? I know that my use of the .DLL is somewhat unique.
Hello!
Can you please send us your files to support@cadsofttools.com with a description of problems?
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
Can you please send us your files to support@cadsofttools.com with a description of problems?
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
During the last AutoCAD operation, some accidental changes were applied to include offsetting a few of the layers, so to my relief as the programmer, the unwanted offset ended up not being a code issue. We are still however, unable to figure out why an occasional line or arc is drawn incorrectly, and I will be sending an email regarding my entity data collection method, once I get approval to share that code snippet.