Break pline into pieces or pline array?

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

  1. Example: I have a polyline that is made up of several lines and arcs. It's total length is ~3000 feet. I'd like to break that pline into 16 equal length pieces.

    - I've done that manually with a few different polylines already today. Now it seems as though I may have to do it a few more times and it's time consuming.

    - Is there a feature already built in to AutoCAD 2002 or is this a situation that needs a lisp routine?

    - Another possible solution would be to create an array of blocks along that polyline. It seems as though the built in array options are only straight line and circle arrays. But it seems as though a lisp routine is likely available for a polyline array.
     
    scott_walowsky, May 5, 2004
    #1
  2. AutoCAD can't do this, but Visual LISP code can.

    It's a bit tricky because each time you break the existing entity,
    it creates a new one, and you must then go find it, to pass it
    to the next iteration of the BREAK command. To complicate
    matters more, the direction which you traverse the curve will
    determine whether you need to break the new entity created
    by the last break, or the existing one.

    Of course, AcadX makes this a no-brainer, using the Break(),
    and Divide() or Measure() methods of AcadXCurve.




    break that pline into 16 equal length pieces.
    few more times and it's time consuming.
    in array options are only straight line and circle arrays. But it seems as though a lisp routine is likely available
    for a polyline array.
     
    Tony Tanzillo, May 5, 2004
    #2
  3. scott_walowsky

    C Witt Guest

    and using the divide command won't work for you?
     
    C Witt, May 5, 2004
    #3
  4. scott_walowsky

    C Witt Guest

    ignore that.

     
    C Witt, May 5, 2004
    #4
  5. scott_walowsky

    Jürg Menzi Guest

    scott_walowsky

    Check the vlax-curve-xxx functions...

    Cheers
     
    Jürg Menzi, May 5, 2004
    #5
  6. "divide" and "measure" are pretty much what I was looking for. Thank you everybody.
     
    scott_walowsky, 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.