DXF Editing Manually


#1

Hi guys I am trying to understand how to edit DXF files. I don’t really understand all the code. Can someone please comment this code for me. I have tried to comment it myself and failed badly. I don’t understand things like 3C,3D,3E.

0
SECTION
2
ENTITIES
0
CIRCLE
5
3C
8
DEFAULT
10
10.00000000000000 <<<10.04623298785229>>>
20
5.000000000000000 <<<4.933389635645361>>>
30
0.0
40
3.000000000000000 <<<2.139923001385519>>>
0
LINE
5
3D
8
DEFAULT
10
0.0
20
10.0
30
0.0
11
0.0
21
0.0
31
0.0
0
LINE
5
3E
8
DEFAULT
10
20.0
20
10.0
30
0.0
11
0.0
21
10.0
31
0.0
0
LINE
5
3F
8
DEFAULT
10
20.00000000000000 <<<20.06689026236908>>>
20
0.0
30
0.0
11
20.0
21
10.0
31
0.0
0
LINE
5
40
8
DEFAULT
10
0.0 <<<0.0>>>
20
0.0
30
0.0
11
20.0
21
0.0
31
0.0
0
VIEWPORT
5
50 <<<45>>>
70 <<<67>>>
1
8
0
10
6.0
20
4.5
30
0.0
40
12.000
41
9.000
68
1
69
1
1001
ACAD
1000
MVIEW
1002
{
1070
16
1010
0.0
1020
0.0
1030
0.0
1020
0.0
1030
0.0
1010
0.0
1020
0.0
1030
1.0
1020
0.0
1030
1.0
1040
0.0
1040
10.000 <<<9.522>>>
1040
6.0
1040
4.5
1040
50.0
1040
0.0
1040
0.0
1070
0
1070
100
1070
0
1070
3
1070
0
1070
0
1070
0
1070
0
1040
0.0 <<<0.0>>>
1040
0.0
1040
0.0
1040
0.5 <<<0.5>>>
1040
0.5 <<<0.5>>>
1040
0.5 <<<0.5>>>
1040
0.5 <<<0.5>>>
1070
0
1002
<<<{>>>
1002
<<<}>>>
1002
<<<}>>>
0
ENDSEC
0
EOF


#2

Can you explain why you need to edit the DXF manually via text editing?

–Mitch


#3

text editing? I use manually editing (DXF) to get the file corrected to the near absolute value. I am starting a project involved with CNC milling machine. I want it to be referenced as closely as possible. I edit the values so I can believe the CAD/CAM conversion is totally corrected. I like to see the file before arriving at the cutting area. I don’t have limit switches to stop the job cutting outside its boundaries at the moment.


(Barry Mair) #4

I haven’t had to manually edit a DXF for 20 years, working under DOS, but I would say that is the assigned entity ‘handle’ following the group code 5.
If you are doing as you say, I would highly recommend a good DXF reference manual.
It is very rare to find software that will not do as you say you are doing manually.

Barry.


#5

Yes, if I understand what you’re proposing you want to manually edit the DXF file - which is just text. I still don’t understand why you need to do this, it’s far easier and more reliable to import the DXF into Rhino and do whatever editing you need, then export it again as DXF.

–Mitch


#6

DXF File is in Rhino. I edit it so I can throw the job out from X,Y axis on the mill. I usually give 20 millimeters in the X axis and Y axis. I disable Z so I don’t damage tool bit.


#7

OK, I don’t get it…


#8

Ok, Rhino makes the file. I save it as DXF. I edit the DXF file manually. I check the DXF in Rhino to make sure its corrected on planes and Origin. My problem is that I don’t really understand the DXF output file.


#9

I really need help with the output file created. I don’t understand it all


(Pascal Golay) #10

Still, though, what are you editing in text that you cannot edit in Rhino by manipulating the objects? By ‘disable Z’ do you mean you set all Z coordinates to zero?

-Pascal


#11

I removed Z to setup the mill. I haven’t used Rhino very much in the past, so I am still learning. My Mill is 1000 millimeters in X axis and 800 millimeters in the Y axis with a Z throw of 380 millimeters.

Thanks guys I will start doing some tutorials on Rhino in the new year.