Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frozen Layer in DXF Format

Status
Not open for further replies.

plopez

Technical User
Apr 2, 2002
66
CL
Hi,I need to know how can I freeze a Layer using DXF Format.

In the MyDXFCode that I wrote,I need to freeze the Layer
"Blue_Line" for example.

999
VISION3D DXF
0
SECTION
2
HEADER
9
$ACADVER
1
AC1006
9
$INSBASE
10
0.0
20
0.0
30
0.0
9
$EXTMIN
10
0.0
20
0.0
9
$EXTMAX
10
1000.0
20
1000.0
9
$LINMIN
10
0.0
20
0.0
9
$LINMAX
10
1000.0
20
1000.0
0
ENDSEC

0
SECTION
2
TABLES
0
TABLE
2
LTYPE
70
1
0
LTYPE
2
CONTINUOUS
70
64
3
Solid line
72
65
73
0
40
0.000000
0
ENDTAB
0
TABLE
2
LAYER
70
6
0
LAYER
2
1
70
64
62
7
6
CONTINUOUS
0
ENDTAB
0
TABLE
2
STYLE
70
0
0
ENDTAB
0
ENDSEC
0
SECTION
2
BLOCKS
0
ENDSEC
0
SECTION
2
ENTITIES

0
3DFACE
8
Red_Square
62
1
10
-0.5
20
-0.5
30
-0.5
11
-0.5
21
0.5
31
-0.5
12
0.5
22
0.5
32
-0.5
13
0.5
23
-0.5
33
-0.5
0
3DFACE
8
Green_Triangle
62
3
10
-0.5
20
-0.5
30
-0.5
11
0.5
21
-0.5
31
-0.5
12
0
22
-0.5
32
0.5
13
0
23
-0.5
33
0.5
0
LINE
8
Blue_Line
62
5
10
0
20
-0.5
30
0.5
11
0
21
0.5
31
-0.5
0
ENDSEC
0
EOF

I appreciate your help...
 
DXF guide says this about dxf codes in the Layer table:

----------------------------------

LAYER group codes
Group code Description
100 Subclass marker (AcDbLayerTableRecord)
2 Layer name
70 Standard flags (bit-coded values):
1 = Layer is frozen; otherwise layer is thawed
2 = Layer is frozen by default in new viewports
4 = Layer is locked
16 = If set, table entry is externally dependent on an xref
32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved
64 = If set, the table entry was referenced by at least one entity in the drawing the last time the
drawing was edited. (This flag is for the benefit of AutoCAD commands. It can be ignored by
most programs that read DXF files and need not be set by programs that write DXF files)
62 Color number (if negative, layer is off)
6 Linetype name
290 Plotting flag. If set to 0, do not plot this layer
370 Lineweight enum value
390 Hard-pointer ID/handle of PlotStyleName object
347 Hard-pointer ID/handle to Material object
---------------------------

Other than that I don't know exactly where you need to replace what you have...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top