Custom Linetypes

Discussion in 'AutoCAD' started by mlmahan, May 5, 2004.

  1. mlmahan

    mlmahan Guest

    I am wanting to make a line type that has three spaces and 2 dashes that is always in the center of line and does not repeat no matter how long the line. On a scale of 12 to 1.
    The spaces and the dashes wold be 6".

    Ex.
    _______________ __ __ _______________

    Any help would be great!

    Michelle
     
    mlmahan, May 5, 2004
    #1
  2. mlmahan

    liftedaxis Guest

    i believe your only way to do that would be by setting the LTSCALE accordingly, which would throw off any other linetypes on the drawing. but if this is the only linetype in your drawing, you would just set LTSCALE to dimscale * 6.

    --Jeremiah
     
    liftedaxis, May 5, 2004
    #2
  3. mlmahan

    R.K. McSwain Guest

    You can set the LTSCALE of an individual object, which would not 'throw off other linetypes in the drawing'.
     
    R.K. McSwain, May 5, 2004
    #3
  4. But that wouldn't get what was wanted (the dashes-and-spaces arrangement in
    the middle of the line, no matter how long it is), unless the line length is
    within a certain range relative to the linetype definition's dash-space
    cycle.

    But you could pretty easily make a lisp routine that would ask you to draw
    the line, then BREAK a few pieces out of it, centered around the midpoint of
    the line. The size of the dashes and spaces could be made a multiple of
    some drawing-scale-related system variable like LTSCALE or DIMSCALE, so it
    would look the same in any scale drawing. But the end result wouldn't be
    one line, so the pieces could be changed relative to each other.

    Or can you have a piece of text with no content (or content of just one
    space, or something)? You could put several of them on the line, and use
    text masking to just HIDE pieces of the line. But they wouldn't remain
    centered if you changed the length of the line, or even remain on it if you
    moved the line.

    No perfect solutions here....(yet).

    Kent Cooper, AIA


    ...

    You can set the LTSCALE of an individual object, which would not 'throw off
    other linetypes in the drawing'.
     
    Kent Cooper, AIA, May 5, 2004
    #4
  5. mlmahan

    liftedaxis Guest

    Kent,

    actually, i think you're on to the solution.
    why not a Lisp routine that sets the LTSCALE large, to get the desired effect; breaks the line, then anonymously blocks the broken pieces; it finally sets LTSCALE back to normal, with his "line" the appropriate look and still acting like a single object.

    --Jeremiah
     
    liftedaxis, May 6, 2004
    #5
  6. If you're going to do it by breaking a line and blocking the pieces, I don't
    see any need to change LTSCALE for the purpose -- just use a continuous
    line. This approach would probably do what you want, as long as you don't
    expect you'll want to change the length of the line later. That would
    require exploding it and changing the lengths of each end equally, and
    re-blocking it if you want it to be a single object again.

    Kent Cooper, AIA

    effect; breaks the line, then anonymously blocks the broken pieces; it
    finally sets LTSCALE back to normal, with his "line" the appropriate look
    and still acting like a single object.
     
    Kent Cooper, AIA, May 6, 2004
    #6
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.