PDA

View Full Version : Convert Spline to Polyline



daveland
2006-04-25, 01:46 PM
Sorry to be asking such a rudimentary question. But I am a recent convert to AutoDesk 2004 with Carlson SurvCadd (from MicoStation V7).

All I want to do is to join a spline to a polyline so I can make it one continuous contour line. There does not seem to be any provision for converting splines into polylines. Is there some other answer for joining these lines together?

david-k
2006-04-25, 04:06 PM
Cadalyst has a lisp on their site to convert spline to pline.
Search the archives for December 2003 and Spline-to-Pline.lsp.
After converting spline to pline you should be able to join the plines if they have the same elevation.

daveland
2006-04-25, 04:32 PM
Thanks for the lead. I actually had to go to http://new.cadalyst.com/code/ under December 2003 to find this. But I did find it.
Unfortunately I don't have a clue what to do with a .LSP file. I will do some research and see what I can do.
Thanks again.

D.L.

david-k
2006-04-25, 04:37 PM
Save the lisp file to your a file in your support path.
Load with appload command.
Start lisp with the command specified in the lisp file.

daveland
2006-04-26, 12:07 PM
Thanks. I actually figured that out myself since that last post.
There was one very odd problem. Some of the splines that I converted shot way out into space and straightened themselves out. The only theory I could come up with was that those splines were the only splines that didn't have a Parametric range that started at 0.00 like all the other ones did (these wacky lines had a parametric range above 0.00). Otherwise they had pretty much all the same features.

Is there a way to change the parametric range of spline before converting it to a pline?

One of my coworkers offered the following solution:
"...it involves acquiring red wine, a sacrificial lamb, a virgin, and a lengthy ritualistic ceremony..."

By the way this lisp program worked beautifully on the lines that did convert properly.

rkmcswain
2006-04-26, 12:15 PM
By the way this program worked beautifully on the lines that did convert properly.

You might also take a look at SPL2PL.VLX found at http://www.dotsoft.com/freestuff.htm

WMFOUT and WMFIN will also convert splines to polylines. If you try this method, use the upper left of the viewport at the insertion point, and set the scale to 2 during the WMFIN operation.

daveland
2006-04-26, 12:28 PM
Hey thanks. i don't know if you read my last post but the other lisp program caused some of my splines to go wacky and fly way out into space. Your .vlx program did not cause this to happen. Thanks again.

Mike.Perry
2006-04-26, 12:29 PM
Hi

Trying plugging the following search criteria into the forum search (http://forums.augi.com/search.php?) facility...

Key Word(s): Spline + Polyline

Should get back lots of useful and relevant information on this topic.

Have a good one, Mike

rkmcswain
2006-04-26, 12:36 PM
Hey thanks. i don't know if you read my last post but the other lisp program caused some of my splines to go wacky and fly way out into space. Your .vlx program did not cause this to happen. Thanks again.

No problem, but just to clarify, It's not *my* program... ;)
Send Terry (http://www.dotsoft.com/contact.htm) some props...

Glad it worked for you.

daveland
2006-04-26, 01:14 PM
Thanks Mike. I got a two really good solutions to my problem and they are better than anything from any previous threads. By the way the solution suggested by rkmcswain worked a little better than the one from david-k

daveland
2006-04-26, 01:18 PM
Understood and props duly given.

Mike.Perry
2006-04-26, 01:35 PM
Thanks Mike. I got a two really good solutions to my problem and they are better than anything from any previous threads. By the way the solution suggested by rkmcswain worked a little better than the one from david-kHi

Good to hear you now have two really good solutions that meet your requirements.

:shock: Really... I am a little surprised as the following search criteria returns appropriate and relevant threads...

Key Word(s): *SPL2PL*

*Spline-to-Pline*

Have a good one, Mike