Jump to content
Guest Beadin Sabovic

convert Spline to Polyline

Recommended Posts

Guest Beadin Sabovic

Hi everyone,

 

How can I convert Spline to Polyline.

 

Thank you :lol:

Share this post


Link to post
Share on other sites
David Bethel

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

Share this post


Link to post
Share on other sites
Guest Beadin Sabovic

Thank you David for replay,

 

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

Share this post


Link to post
Share on other sites
tlyall

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....

Share this post


Link to post
Share on other sites
David Bethel

Ot you could use:


(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

Share this post


Link to post
Share on other sites
BEKA

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.

Share this post


Link to post
Share on other sites
giskumar

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.

Share this post


Link to post
Share on other sites
Cad64

FYI: this thread is 6 years old. :wink:

Share this post


Link to post
Share on other sites
cncpatriot

You can try out the new SPLINECAM app in Autodesk AppStore or download it from autocam2d.com/download link.

 

It converts splines to polylines/polyarcs with optimal number of vertices and smoothness.

 

regards

cncpatriot

 

Thank you David for replay,

 

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

Share this post


Link to post
Share on other sites
JD Mather
You can try out the new SPLINECAM app ....

 

In general, I think it is OK to post commercial solutions when a current question is asked, but I do not think it is proper to search and drag up old posts for the purpose of making advertisment of new products. (especially when you do it in multiple (very old) threads)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...