Results 1 to 4 of 4

Thread: Grrr ~ Joining Polylines, splines, and lines OHMY!

  1. #1
    Active Member
    Join Date
    2008-02
    Location
    Vancouver, BC
    Posts
    57
    Login to Give a bone
    0

    Default Grrr ~ Joining Polylines, splines, and lines OHMY!

    Ok, I'll be brief...

    Background: Client has sent us a converted Microstaiton file with alignment control lines.

    Goal: Connect all control lines to create connected polylines that can be used as construction lines for street lightinging. This is essential as we use them to divide / measure the poles and then break to create conduit segments.

    Problem: Cannot join certain segments of polylines / arcs together. It just will not work. Most prevalent where a single arc segment meets a converted spline.

    Troubleshooting already done:
    - All lines are coplanar - no effect
    - no fuzz difference / add / extend / both options - no effect, except if the fuzz goes above 0.5 with the jointype set to "add" it goes nutters and joins all lines in weird odd angles
    - splines have been optimized with different value no effect
    - have run 'FLATTEN' with no effect
    - have weeded out the extra segments in the converted splines - no effect
    - tried pasting objects into a new drawing - no effect
    - tried blocking / inserting objects - no effect
    - have tried some third party LISP routines for joining polylines - no effect
    - used overkill with various tolerance settings - nothing...
    - used join as well nada
    - redrawing an arc still does not work, the only way I can get this to work is to delete the offending object and use blend to create the new object. Then pedit the new blend / spline into the other segments..


    Any ideas I'm all ears. I have attached an example file. Its no biggie to redraw some of this, but there are 5 other drawings with changes coming, there is no time in the future to redraw this. I am thinking I am going to have to relent and just do it (or appoint someone else to grind it out). My opinion is Microstation and how it converts certain objects is the problem in the end.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Grrr ~ Joining Polylines, splines, and lines OHMY!

    The Extrusion Direction is wrong after some of those conversions. Don't know why, but if you say yes to removing hidden lines in Flatten it will fix them. I was able to join them afterwards.

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Grrr ~ Joining Polylines, splines, and lines OHMY!

    As it turns out I had to take a few steps to do that. This routine will fix the polylines in one step:
    Code:
     (defun C:try ( / ss count)
      (load "flattensup.lsp")
      (setq ss (ssget "X" '((0 . "LWPOLYLINE")(210 0.0 0.0 -1.0)))
      )
      (vl-cmdf "_.explode" (ssname ss 0))
      (setq count 0)
      (while (< count (sslength ss))
        (setq count (+ count 1))
        (vl-cmdf "_.explode" (ssname ss count))
      )
      (command "explode" "")
      (setq ss (ssget "X" '((0 . "ARC")(210 0.0 0.0 -1.0))))
      (acet-flatn-arc (ssname ss 0))
      (setq count 0)
      (while (< count (sslength ss))
        (setq count (+ count 1))
        (acet-flatn-arc (ssname ss count))
      )
      (princ)
    );end defun

  4. #4
    Active Member
    Join Date
    2008-02
    Location
    Vancouver, BC
    Posts
    57
    Login to Give a bone
    0

    Default Re: Grrr ~ Joining Polylines, splines, and lines OHMY!

    Appreciate it, sorry for the late reply. haven't had a chance (usual deadlines).

    LISP works great, now I know some of the issues with MS - AutoCAD conversions. I contacted the civil we are working for, they don't know of a workaround to export the files with the polylines behaving. With the LISP and some more monkeying, I was able to work with them. Still some goofy quirks, but still a massive timesaver.

    Appreciate it.

Similar Threads

  1. Converting splines to polylines?
    By matt.143284 in forum AutoCAD LT - General
    Replies: 4
    Last Post: 2007-08-31, 12:47 AM
  2. 3D Polylines and splines
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2007-01-16, 04:33 PM
  3. Replies: 14
    Last Post: 2006-06-13, 05:03 PM
  4. Convert Splines to Polylines
    By juliefrancoeur109665 in forum AutoCAD General
    Replies: 7
    Last Post: 2006-04-03, 09:14 AM
  5. splines to polylines
    By tflaherty in forum AutoLISP
    Replies: 2
    Last Post: 2005-09-13, 09:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •