Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want to convert .DXF file to image format like .BMP or .jpg.
Please let me know any library or open source for that.

Thanks In Advance

[edit]
Want hints for (AutoCAD 2011) DXF file version v.u.25.1.01
[/edit]
Posted
Updated 15-Jan-11 23:29pm
v2
Comments
OriginalGriff 16-Jan-11 5:10am    
Please do not use the "Add an Answer" button to reply to people.
If you use the "Add comment" link in the bottom of each reply, then an email is sent to the person concerned. No such email is sent on adding an answer - except to you.
Using Comments should speed up responses.
I have moved your answers to comments, and deleted them.
GAJERA 16-Jan-11 5:13am    
Ok,I will

Try the following search on SourceForge[^]

Best guess is that you have some work to do, but you'll find code to load, parse and even render dxf files ...

The dxf specification is available at:
http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12272454&linkID=10809853[^]

Leadtools might also be of interest
http://www.leadtools.com/sdk/formats/vector-formats.htm[^]

Regards
Espen Harlinn
 
Share this answer
 
v3
Comments
OriginalGriff 16-Jan-11 5:08am    
The OP wrote:
"Thanks your reply.

I came across with this link ,They support old version of AutoCad.
I needs support with AutoCad 2011 and wants to convert in .BMP or .jpg."
GAJERA 16-Jan-11 5:24am    
I done lots of work to solve this issue.Again same probelm
Have you tried Google? It should always be your first choice for questions like this.
 
Share this answer
 
Comments
OriginalGriff 16-Jan-11 5:07am    
The OP wrote:
"Yes,I spent lots of hour,Then i decided to post here.
I found lots of software but i need library or open source."
Googling[^] took me about a minute and the first result[^] seems to be exactly what you need.
 
Share this answer
 
v2
Comments
OriginalGriff 16-Jan-11 5:08am    
The OP wrote:
"Thanks your reply.

I came across with this link ,They support old version of AutoCad.
I needs support with AutoCad 2011 and wants to convert in .BMP or .jpg."
I cannot give you any code samples right now. But i have parsed DXF for rendering 3d models.What i knows is DXF file describes a CAD model. Which are basically build using polygons,triangles and lines etc.So in order to covert them in to image, first you need to do following
1.Parse the DXF file(most of the time you don't have to support all tags,Parse just what you need)
2.Render it using opengl or Directx or whatever
3.capture from screen , so now u got the 2d image.

hopes this may help to understand the overall idea. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900