I am trying to design and develop a DXF importer using C++. I have gone through the DXF references starting from version 2000 onwards. There are four things which have put the development on hold for me right now.
1) Handles for each entity. Are they really important? If so, then how are they related to other entities?
2) Entities such as ARC, POLYLINE, TEXT etc occurs in BLOCKS section and in ENTITIES section. What difference does these two sections make? Why not all the entities are placed in ENTITIES section?
3) What is INSERT entity? How does this work? Does it have any visualization (as it contains insertion point, scale and rotation factors)? If so, how is it represented graphically? As a point (as it contains only one point )?
4) I see that some points are in OCS and some are in WCS. How do I convert OCS to WCS? For this point I did some google research and didn't get much help, as most of them use auto-lisp for this and I am using C++.
Kindly learned people guide me, by clarifying these doubts.
Thanks in advance
DXF format querries..!!!
Moderator: andrew
Re: DXF format querries..!!!
Are you using dxflib to parse the DXF input?
Re: DXF format querries..!!!
Hi Andrew,
Thanks for your reply. Yes I did use it. But I found the POLYLINE entity wasn't getting read properly.. So I thought I might not be organizing the read information properly. Because, the AcDbPolyline2D type objects were displaying double polylines, as if one polyline is made up of control points and another made up of points generated from these control points. So I came to know that my knowledge of dxf format is not clear and so I started reading the dxf references and I came across these points.
I guess I posted the question in wrong category. Today morning I just saw that there exist category "Creating DXF/DWG itmes". Is it possible to shift this post in that section?
Thanks
Thanks for your reply. Yes I did use it. But I found the POLYLINE entity wasn't getting read properly.. So I thought I might not be organizing the read information properly. Because, the AcDbPolyline2D type objects were displaying double polylines, as if one polyline is made up of control points and another made up of points generated from these control points. So I came to know that my knowledge of dxf format is not clear and so I started reading the dxf references and I came across these points.
I guess I posted the question in wrong category. Today morning I just saw that there exist category "Creating DXF/DWG itmes". Is it possible to shift this post in that section?
Thanks
Re: DXF format querries..!!!
I am not getting the correct result. Does dxflib takes care of OCS to WCS conversion?
Re: DXF format querries..!!!
No. This would have to be handled by the caller at this point.rakeshthp wrote:I am not getting the correct result. Does dxflib takes care of OCS to WCS conversion?