+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Beadin Sabovic
    Guest

    Default convert Spline to Polyline

    Registered forum members do not see this ad.

    Hi everyone,

    How can I convert Spline to Polyline.

    Thank you

  2. #2
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    1 way is to DXFOUT in R12 format the selcted object, and then DXFIN the file. -David
    R12 (Dos) - A2K

  3. #3
    Beadin Sabovic
    Guest

    Default

    Thank you David for replay,

    I did dxfout and dxfin but I still can not convert my spline to polyline.

  4. #4
    Senior Member
    Using
    not specified
    Join Date
    Apr 2004
    Location
    Newfoundland, Canada
    Posts
    135

    Default

    QUOTE FROM THE DOTSOFT FAQ


    The new SPLINE objects introduced in R13 are nice, but there are limits on what you can do with them. So conversion to a polyline is necessary. Carefully erase all the geometry except for the splines, then save the drawing in R12 DWG (A2K users use R12 DXF) format. Then open the original drawing, erase the splines and insert the R12 file. The spline will now have become polylines. If the splines had differing elevations on the vertices, the resulting polyline will be a 3D polyline.

    Or you could try this link and scroll down til you see the program with this text description

    http://www.dotsoft.com/freestuff.htm

    Converts a selection set of splines to polylines inside the drawing. No more hoops with DXF files in R12 format.


    HTH....
    UNDO...UNDO...UNDO...UNDO...UNDO...UNDO...
    TOM...

  5. #5
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    Ot you could use:
    Code:
    (defun massoc (key alist / x nlist)
      (foreach x alist
        (if (eq key (car x))
            (setq nlist (cons (cdr x) nlist))))
      (reverse nlist))
    
    (defun c:spl2pol (/ en ed pl)
    
      (setq en (ssname (ssget '((0 . "SPLINE"))) 0)
            ed (entget en)
            pl (massoc 10 ed))
    
      (command "_.PLINE")
      (foreach p pl
         (command p))
      (command "")
      (command "_.CHPROP" (entlast) "" "_LA" (cdr (assoc 8 ed)) ""
               "_.PEDIT" (entlast) "_Spline" "_X")
      (entdel en)
      (redraw (entlast))
    
    (prin1))
    -David
    R12 (Dos) - A2K

  6. #6
    Beadin Sabovic
    Guest

    Default

    Thank you all.

  7. #7
    T@T
    Guest

    Default

    Thanks all, useful thread

  8. #8
    Junior Member
    Using
    not specified
    Join Date
    Oct 2004
    Location
    NY
    Posts
    21

    Default convert spline to polyline

    Hi,

    I apology that I am late.

    I downloaded SPL2PL.VLX
    My question is: What should I do with file SPL2PL.VLX.
    Where to place this file.

    Thank you very much.

  9. #9
    Senior Member
    Using
    AutoCAD 2006
    Join Date
    Aug 2009
    Posts
    109

    Default

    Hi,

    You just type the upload command in autocad command prompt.
    browse the sp2pl.vlx, hit load and close.

    Then type "spl2pl" command to run this command.


    Thanks,
    Kumar.

  10. #10
    Super Moderator Cad64's Avatar
    Computer Details
    Cad64's Computer Details
    Operating System:
    Windows 7 Profesional x64
    Computer:
    XI Computers
    Motherboard:
    Asus P8Z77-V Pro
    CPU:
    Intel Core I7 3770K 4.1 Ghz Quad Core 3rd Gen
    RAM:
    8GB DDR3 @ 1333MHz
    Graphics:
    Nvidia GeForce GTX 570 1280MB GDDR5
    Primary Storage:
    SATAII 500GB 7200 RPM
    Secondary Storage:
    Western Digital My Book Studio Edition II - 2TB capacity
    Monitor:
    HPf2105 21" LCD Widescreen & Cintiq 21ux
    Discipline
    Multi-disciplinary
    Cad64's Discipline Details
    Occupation
    Freelance Digital Artist
    Discipline
    Multi-disciplinary
    Details
    In a nutshell, I create 3D models from the client's CAD files or design sketches, which I then use to produce high quality rendered images. Click on the link in my signature to view my portfolio. I'm always looking for work, so let me know if you need any renders. :)
    Using
    3ds Max 2011
    Join Date
    Feb 2006
    Location
    Southern California
    Posts
    8,423

    Default

    Registered forum members do not see this ad.

    FYI: this thread is 6 years old.
    "Work Smart, Not Hard"

    Click to View My Portfolio ( Updated 05/21/2013 ) --->
    http://www.rdeweese.com/

Bookmarks

Posting Permissions

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