Linetype Definition Error

Discussion in 'AutoCAD' started by Allen Johnson, Oct 7, 2004.

  1. Any clue why I get the error

    Bad Definition of Slab_Rebar2 at line xxx of file ...\acad.lin

    when I try to load this linetype? The linetype Slab_Rebar loads just fine.
    The only difference is the name of the shape definition DCIRC instead of
    CIRC1 in the shape file. When I load the shape file, the shapes both appear
    properly.

    From ltypeshp.shp:

    *133,4,CIRC1
    10,1,-040,0

    *135,8,DCIRC
    10,(1,-040),018,10,(2,-040),0

    From acad.lin:

    *Slab_Rebar,Slab - Rebar
    A,0.5,[CIRC1,ltypeshp.shx,y=-0.015,S=0.015],0.001

    *Slab_Rebar2,Slab - Rebar
    A,0.5,[DCIRC,ltypeshp.shx,y=-0.015,S=0.015],0.001
     
    Allen Johnson, Oct 7, 2004
    #1
  2. Allen Johnson

    Paul Turvill Guest

    Is Slab_Rebar2 the last definition in your *.lin file, and if so, is there
    at least one blank line at the end of your *.lin file?
    ___
     
    Paul Turvill, Oct 7, 2004
    #2
  3. It was the last entry, but there were blank and comment lines after it.
    I moved it up in the file and still get the error.
     
    Allen Johnson, Oct 7, 2004
    #3
  4. Allen Johnson

    Paul Turvill Guest

    You apparently added DCIRC to ltypeshp.shp; did you COMPILE it afterwards? I
    did, and it works fine for me.
    ___
     
    Paul Turvill, Oct 7, 2004
    #4
  5. You apparently added DCIRC to ltypeshp.shp; did you COMPILE it afterwards?
    I
    Yes, I did. You have to compile in order to display the shapes.
    "When I load the shape file, the shapes both appear properly."

    Did you successfully load the linetype or just the shapes?
     
    Allen Johnson, Oct 7, 2004
    #5
  6. Allen Johnson

    Paul Turvill Guest

    Both. And both of your linetypes work just fine with no errors reported.

    However, without the compiled *.shx file, I got the same error you reported.
    Just speculating here, but the problem could perhaps be that you have more
    than one copy of ltypeshp.shx on your system and acad.lin is finding the
    wrong one.
    ___
     
    Paul Turvill, Oct 7, 2004
    #6
  7. Yep, that was it!
    Thanks.
     
    Allen Johnson, Oct 7, 2004
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.