• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Express Tools

    Reply
    Member
    lbabic
    Posts: 5
    Registered: ‎02-21-2012
    Accepted Solution

    Linetypes with specific parameters

    1118 Views, 5 Replies
    02-21-2012 06:02 AM

    Hi all,

     

    I have a problem I haven't found an answer to in any CAD documents, books of forums. I would like to create:

    a) a continuous line that begins and ends with space or a shape

    b) a line (of any type) that has text (i.e. shape) imbedded exactly in the middle (no matter how long a line is) or at equal intervals (e.g. each 1/3 of the line)

    Is there any chance linetypes like that can be created or will I need to resort to lisp and trimming/breaking the lines once drawn?

    The problem is related to cartographic symbols defined by the State Geodetic Administration.

    I'm attaching examples of what I would like to achieve.

     

    Best regards.

     

     

     

     

    Please use plain text.
    *Expert Elite*
    pendean
    Posts: 15,039
    Registered: ‎11-06-2003

    Re: Linetypes with specific parameters

    02-21-2012 06:05 AM in reply to: lbabic

    Both are not options in AutoCAD with Linetypes definitions.


    Dean Saadallah Blog | Facebook | RSS | Twitter | PINS
    Please use plain text.
    Member
    lbabic
    Posts: 5
    Registered: ‎02-21-2012

    Re: Linetypes with specific parameters

    02-21-2012 06:07 AM in reply to: pendean

    Thought so.

     

    Thx anyway.

     

    Please use plain text.
    *Expert Elite*
    JGerth
    Posts: 1,134
    Registered: ‎12-05-2005

    Re: Linetypes with specific parameters

    03-06-2012 06:58 AM in reply to: lbabic

    Linetypes won't do what you want, but it would be possible to approach the problem in a couple of different ways:

     

    One would be a custom LISP command for each specific line 'style' you want, using annotative blocks and text.

     

    Another would be using a Dynamic block for the different lines.

     

    Can you post blocks of the symbols you want to use? and a verbal description of how the lines need to appear on the final product?

    Please use plain text.
    Member
    lbabic
    Posts: 5
    Registered: ‎02-21-2012

    Re: Linetypes with specific parameters

    03-07-2012 02:06 AM in reply to: JGerth

    As for LISPs, I already thought of that but the problem is that if I wanted text in the middle of the line, the text than has to be inserted in the middle after which the line has to be trimmed to the text which would create two separate lines, and that in itself makes a drawing more complex, not to mention it causes extra problems in case of subsequent alterations or editing of geometry.

    As for dynamic blocks, I haven’t had any experience working with those but wouldn’t my text (if I chose that kind of linetype) become stretched in a longer (and vice versa) line? The same goes for the initial space of a continuous line as I mentioned above.

    I've already posted linetype examples in my first post if that's what you're referring to.

    Please use plain text.
    *Expert Elite*
    JGerth
    Posts: 1,134
    Registered: ‎12-05-2005

    Re: Linetypes with specific parameters

    03-07-2012 05:22 AM in reply to: lbabic

    well, you posted a 'picture' of what you want to see -- if I try to work with that I'd be making a lot of assumptions, and you know what they say about assuming....  Posting a dwg with sample lines that include the block, and a description oif what rules apply to which line would be helpful:

     

    for example:

    @-------------------- COT ----------------------------@

    Block "A" at each end, with text (font & style) centered, plotted height 1/8"

     

    %----------DD----------------------------DD------------%

    Block "P" at each end, with text (font & style) centered if line length less than X" , else evenly distributed at x/3, plotted height 1/8"

     

    A LISP routine would not necessarily end up with multiple unrelated entities, they could be grouped, or defined as an anonymous block.  Text could be masked, or enclosed

     

    Other questions that would come up would be ARCs, and plines with multiple vertices -- how should they be handled graphically?

     

    Please use plain text.