PDA

View Full Version : Exploding non-uniformly scaled blocks


scwegner
2005-05-12, 04:23 PM
Does anyone know of a way to explode a non-uniformly scaled block without exploding the polylines inside it? I've got a lisp that scales along a single axis by making a block, scaling that, and then exploding and purging. When it's finished though, all my nice pretty polylines are kaput. Suggestions? Alternatives?

miff
2005-05-12, 08:16 PM
Post the code you are using? I just tried this manually by:
Draw pline
Pedit/Spline
Draw Circle
Make Block, including both pline & circle
Insert block at scale of x=2, y=1
Explode
result was a pline & an ellipse

So I'm wondering if your code is expoding more than once......

scwegner
2005-05-12, 08:38 PM
Post the code you are using? I just tried this manually by:
Draw pline
Pedit/Spline
Draw Circle
Make Block, including both pline & circle
Insert block at scale of x=2, y=1
Explode
result was a pline & an ellipse

So I'm wondering if your code is expoding more than once...... The key is the spline. Try doing it manually to a regular polyline and it explodes. I guess I could do some convoluted thing taking advantage of that but that seems awkward.
Anyway, this is what I'm working on at the moment. It's a frankenstein blend of some older lisps I wrote and I haven't finished yet so it's pretty ugly.

Ammon
2005-06-10, 11:15 PM
Try splining the polyline before you convert to a block and then decurving it after. I created two identical polylines, splined one of them and then created a block, scaled it in one axis, exploded the block and then desplined the splined polyline. The original polyline was exploded into lines but the splined polyline was not and after decurving it, it was perfect.

It can get pretty hairy if you had some polylines in your block that you didn't want to decurve after and some you did, but that's getting deeper than you probably wanted to go.

Hope that helps.