DXF linetypes (set/change)

stevet at water.ca.gov stevet at water.ca.gov
Mon Mar 21 15:30:48 EST 1994


R. Lassche has asked the question about what to do if DXF files have unwanted
line types.
  There are two places in the DXF file that affect the linetype. 
   1) in in the header section under layers
   2) in the entities section in the element data
Let's address the layers section first:
If your file has 0
                 SECTION
                 2
                 HEADER
at the front, then look for 0
                            TABLE
                            2
                            LAYER
  and below this, a 0
(not a 0) a 6
            and_something_that_looks like_a_linetype
(maybe DOT or STREAM or DASHDOT or .....)
If you find one of these, and it is not CONTINUOUS and you wnt it to be so,
simply use a good ASCII TEXT EDITOR (not a word processor) and make the
subsitution.
However, if your DXF file does not have the first lines as noted above OR
the LAYER section is CONTINUOUS, then you will need to see/change the 
ENTITIES section.
Search for 0
           SECTION
           2
           ENTITIES
and look below this for LINE, 3DLINE, POLYLINE and such. Then look for
a line with a single numeric six (6) on it. The next line states the line
type. If it is not CONTINUOUS, make it so. And do the same for all following
entities you wish to "fix". Same goes for VERTICES element types.

Questions ?? : Contact Steven L. Turner LS
at:            Land Use Section, Div. of Planning
               Calif. Dept. Water Resources
               1416 9th Street, Rm 150
               Sacramento, CA 95814
               (916) 653-4041
               (916) 657-4796 (FAX)
               stevet at amargosa.water.ca.gov  (E-mail)



More information about the grass-user mailing list