+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
  1. #1
    Junior Member
    Using
    AutoCAD 2005
    Join Date
    Jan 2007
    Location
    Curitiba city, ParanĂ¡, Brasil
    Posts
    15

    Default It's possible to turn a SPLine in an PolyLine?

    Registered forum members do not see this ad.

    Hi!

    It's possible to turn a SPLine in an PolyLine?
    Or I have to create direct the Polyline?

    Because create an SPline (in my case) looks muth more easy (many curves), but i need to turn then in a Polyline.

    Thanks!

  2. #2
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,497

    Default

    Try this. i don't know who made it but i got it off here somewhere. it works pretty well.

    Code:
    (defun C:SPLINE2PLINE (/ SPLINES PLINETYPE OSMODE I SPL ED CODEPAIR)
      (if
        (setq SPLINES (ssget (list (cons 0 "spline"))))
         (progn
           (if
             (zerop (setq PLINETYPE (getvar "plinetype")))
              (setvar "plinetype" 1)
              ) ;if
           (setq OSMODE (getvar "osmode"))
           (setvar "osmode" 0)
           (setq I 0)
           (while
             (setq SPL (ssname SPLINES I))
              (setq    I  (1+ I)
                    ED (entget SPL)
                    ) ;setq
              (command ".pline")
              (foreach
                   CODEPAIR
                           ED
                (if
                  (= 10 (car CODEPAIR))
                   (command (cdr CODEPAIR))
                   ) ;if
                ) ;foreach
              (command "")
              (command ".pedit" "l" "s" "")
              ) ;while
           (if PLINETYPE
             (setvar "plinetype" PLINETYPE)
             )
           (setvar "osmode" OSMODE)
           ) ;progn
         ) ;if
      (princ)
      ) ;defun
    Tannar Frampton | Facilities Engineering | Revit 2013
    Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio

  3. #3
    Junior Member
    Using
    AutoCAD 2005
    Join Date
    Jan 2007
    Location
    Curitiba city, ParanĂ¡, Brasil
    Posts
    15

    Default

    Thanks!!!!

    I'll try it this saturday!!!

    Bye!!!

  4. #4
    Full Member
    Computer Details
    Designer's Computer Details
    Operating System:
    Mac
    Computer:
    MacBook Pro
    CPU:
    i7 2.9
    RAM:
    8 Gb
    Primary Storage:
    750Gb
    Discipline
    Architectural
    Designer's Discipline Details
    Occupation
    Drafter
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    96

    Default

    Quote Originally Posted by StykFacE View Post
    Try this. i don't know who made it but i got it off here somewhere. it works pretty well.

    Code:
    (defun C:SPLINE2PLINE (/ SPLINES PLINETYPE OSMODE I SPL ED CODEPAIR)
      (if
        (setq SPLINES (ssget (list (cons 0 "spline"))))
         (progn
           (if
             (zerop (setq PLINETYPE (getvar "plinetype")))
              (setvar "plinetype" 1)
              ) ;if
           (setq OSMODE (getvar "osmode"))
           (setvar "osmode" 0)
           (setq I 0)
           (while
             (setq SPL (ssname SPLINES I))
              (setq    I  (1+ I)
                    ED (entget SPL)
                    ) ;setq
              (command ".pline")
              (foreach
                   CODEPAIR
                           ED
                (if
                  (= 10 (car CODEPAIR))
                   (command (cdr CODEPAIR))
                   ) ;if
                ) ;foreach
              (command "")
              (command ".pedit" "l" "s" "")
              ) ;while
           (if PLINETYPE
             (setvar "plinetype" PLINETYPE)
             )
           (setvar "osmode" OSMODE)
           ) ;progn
         ) ;if
      (princ)
      ) ;defun
    How do you use that? i never used .lsp or anything like that, i use the regular comands.

  5. #5
    Senior Member zars's Avatar
    Computer Details
    zars's Computer Details
    Operating System:
    Windows Xp Profesional Service Pack 3
    Computer:
    Dell Optiplex 755
    Motherboard:
    Intel D946GZIS
    CPU:
    Intel Core2Duo 2.13 GHz
    RAM:
    1 GB Kingston DDR2 333 Mhz
    Primary Storage:
    Sata 300 Gb Western Digital
    Monitor:
    Dell 17''
    Using
    AutoCAD 2007
    Join Date
    May 2006
    Location
    LZC, Michoacan, Mexico.
    Posts
    464

    Default

    Well, first you have to copy this into a notepad and save it as "spline2pline.lsp" then just open your ACAD and go to the tools menu and "Load Application..." and there you'll have to search for the file and that's it.

    To use it, you'll only have to type in "spline2pline" or the function name (it's the one after C in the command line.

    Greets, Alex.

    PD: I must say that if you're using a LT version it won't work, because Lisp only works with Full versions unless you have the LTextender or something like that.
    Last edited by zars; 13th Jan 2007 at 12:56 am. Reason: I forgot to say something.
    There are only 2 things which are infinite... the universe and the human stupidity.
    "Life is not the amount of breath you take, it's the moments that take your breath away"

  6. #6
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,497

    Default

    Quote Originally Posted by Designer View Post
    How do you use that? i never used .lsp or anything like that, i use the regular comands.
    check out This Thread about using Lisp files.
    Tannar Frampton | Facilities Engineering | Revit 2013
    Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio

  7. #7
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,633

    Default

    Two more options

    1. use WMFOUT and WMFIN on the splines.

    2. Grab SPL2PL.VLX from http://www.dotsoft.com (look in the Free Stuff). Download it and drag and drop in the ACAD editor.

  8. #8
    Full Member
    Computer Details
    Designer's Computer Details
    Operating System:
    Mac
    Computer:
    MacBook Pro
    CPU:
    i7 2.9
    RAM:
    8 Gb
    Primary Storage:
    750Gb
    Discipline
    Architectural
    Designer's Discipline Details
    Occupation
    Drafter
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    96

    Default

    Tks for the anwsers

  9. #9
    Forum Deity
    Using
    not specified
    Join Date
    Jul 2004
    Location
    Anchorage, Alaska
    Posts
    2,074

    Default

    ....and FLATTEN

  10. #10
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,497

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by CarlB View Post
    ....and FLATTEN
    hmm, never thought of using that. good tip.
    Tannar Frampton | Facilities Engineering | Revit 2013
    Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio

Similar Threads

  1. Can I turn a spline into a ployline (acad2002)
    By andyboy in forum AutoCAD Drawing Management & Output
    Replies: 10
    Last Post: 22nd Aug 2011, 02:21 pm
  2. convert Spline to Polyline
    By Beadin Sabovic in forum AutoCAD 3D Modelling & Rendering
    Replies: 9
    Last Post: 13th Jan 2011, 03:46 am
  3. Best way, to turn DWG into JPG
    By James in forum AutoCAD General
    Replies: 14
    Last Post: 24th Nov 2006, 04:08 pm
  4. transform a Spline in a polyline.....
    By mfalcaof in forum AutoCAD General
    Replies: 3
    Last Post: 12th Jul 2006, 12:38 am
  5. how do I join a spline to a polyline
    By rlackey in forum AutoCAD General
    Replies: 3
    Last Post: 15th Nov 2005, 07:37 pm

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