Create a polyline from existing arcs-lines

Discussion in 'AutoCAD' started by Bill Barrows, Sep 17, 2003.

  1. Bill Barrows

    Bill Barrows Guest

    I have a lisp routine to read a file and create a series of connected lines
    and arcs in my drawing. (i.e. read Gcode file for a cnc machine)
    I am processing each line of the file as I read it, and drawing the line or
    arc as specified.

    How can I create a polyline from an existing series of connected lines and
    arcs ? (with the same Z values).

    I am thinking I can count the number of entities that I created while the Z
    value has not changed. Then when the Z changes, convert that number of
    entities into a polyline.

    What commands can be used to do this?

    Any suggestions appreciated.

    Bill B.
     
    Bill Barrows, Sep 17, 2003
    #1
  2. Bill Barrows

    Bill Barrows Guest

    Thanks Bill Z



    Just what I needed.



    Bill B



    "BillZ" <> wrote in message news:...

    You can put the lines/arcs into a selection set as you create them.
    First create an empty set:
    (setq ss1 (ssadd))
    Then after the creation of each entity during the loop.
    (ssadd (entlast) ss1)
    When finished with the set just use the command function with pedit and join all the ents.

    Bill
     
    Bill Barrows, Sep 17, 2003
    #2
  3. Bill Barrows

    BillZ Guest

    Glad I could help.

    Bill
     
    BillZ, Sep 17, 2003
    #3
  4. If you have Express Tools installed try PLJOIN command to create a polyline
    from selection set of lines, plines or arcs. It support also the fuzz
    distance.

    WBR,
    Eugene
     
    Eugene Kluzhev, Sep 17, 2003
    #4
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.