Link to home
Start Free TrialLog in
Avatar of asaon
asaon

asked on

Exploding SPLINE objects in AutoCAD

Is there a way to explode a SPLINE in AutoCAD like the drop curves tool in MicroStation v8?
Avatar of techn125
techn125

Can you explain what is this MS8 command is doing?

Explode in Autocad simply break an entity (blocks, polylines) into its line components.
Spline are not explodable in Autocad.

Probably there is another command similar to the 'drop curve tool' of MS8. From what i read it looks more like an editing feature, and those are plentyful about splines.
I just though about this, there is a way to 'explode' Splines in autocad. Kindof a workaround the limitations of the explode command on a spline. Use the Offset command with a rediculously low offset distance, erase original object. The remaining curves will be of a multitude of very short line segments. Redneck procedure lol but it achieve a spline explosion.

But again, i dont think that's what your looking for?
ASKER CERTIFIED SOLUTION
Avatar of techn125
techn125

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of asaon

ASKER

The drop curves tool is MS8 takes a curve, ie spline/arc and converts it to a 'line string' the autocad equivalent of a polyline. One its methods is to specify how many points you want along that line and it goes ahead and divides the curve up.

I'm after something similar in autocad that gives the same effect as when you explode a spline-fit poly.

One way I thought it could be done is to read the coordinates of a spline from its entity data and draw a polyline from those. Then polyedit it to a spline-fit poly and explode it from there.

Just wondering if autocad had something that does it before I go ahead and write the code for the above procedure.
Ok, i got it :o)

The way to do this in autocad is to draw a 'preliminairy' using the Polyline commands. This is going to be all straight lines for now.

Then convert it into a spline using the PEdit command. Once this done, you can you can use the grips or the coordinates entry data to re-shape it as required.

Now you can explode this Spline using Explode, breaking it into Lines objects

Then you can convert those lines into polylines and join them using the PEdit command again.

-------------------------------

For some reason, a Spline created directly from the spline command cannot be exploded, but a spline created from a Pline conversion can, explaining my confusion heh.
*continuation*

The end result of this is going to be a smooth curved *looking* polyline, made of straight segments. If you try to edit it at this point using grips, you'll only stretch straight line segments.

When you 1st draw your 'preliminairy' in straight polylines, before converting it into a spline, the number of grips(or editing points) will be determined by the number of line segments in your polyline (ie: one grip at each endpoint of each polyline segments) So the more points you create, the more flexible your spline is going to be before you explode it.
Avatar of asaon

ASKER

Yeah. Thats just what i said:
               "I'm after something similar in autocad that gives the same effect as when you explode a spline-fit poly"

A spline-fit poly is a spline converted from a polyline. I already can do this.

Just wondered if there was a way to explode a spline. Looks like there isn't.

Thanks for all you time and effort techn125, much appreciated.



Hehe sorry if i didnt got it at once, i have 0 Microstation knowledge.
All in all, if it helped you, that's what counts :o)