Click here to Skip to main content
15,920,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have project in windows c# applications.. In that section,i want to open and edit a dxf file in a picture box .....is there any code to open that dxf file?.....Free software
Posted
Updated 24-Apr-11 22:06pm
v2

With a little time invested you could easily write your own class, to create ARCs, Cirles, Lines, etc which could make up your DXF file. You can even short cut this task if you like because all that is required for the drawing profile is just the Entities section for the DXF file.

for example if you were to copy and paste the following text into you your favotie text editor and save it as Filename.DXF you could open it with AutoCAD and you will see a circle.

VB
0
SECTION
  2
ENTITIES
  0
CIRCLE
  8
0
 10
2.0
 20
2.5
 30
0.0
 40
12.0
  0
ENDSEC
  0
EOF



Here is a link to help you with the DXF code and formating you can download some files from here.

http://www.wotsit.org/list.asp?fc=19
 
Share this answer
 
There are some tools that can do this - however you need to install them and they may not be free for commerical use. It may be possible to edit ASCII versions of a DXF file with a text-editor.
 
Share this answer
 
v2
Comments
Member 7806233 25-Apr-11 4:07am    
Is there any code to open the dxf file? or free tools for that
Abhinav S 25-Apr-11 7:16am    
Search on the internet. You might find something.

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