DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

DC jumbles group parts during mirror operation

Started by MarkX, April 24, 2012, 07:59:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

This is the kind of infuriating problem that makes me want to throw in the towel.

All I'm trying to do is simply to mirror a group of slats that makes up a roof line. The problem is, every time DC completes the operation, it moves things around inside of  the group. I've attached images to show the problem. There's just no rhyme or reason. The process goes perfectly until the last snap. Then, instead of creating a true mirror, it shifts one set of slats away from the other. Since the parts are grouped, how can it be re-arranging them? Shouldn't it respect the groupings?

If I explode the group first (keeping it selected) it still does this bad, stupid, thing. There's 240 slats altogether -- I don't want to mirror them one by one!

Can't attach the drawing -- I saved and ... for the second time today ... the saved file was corrupt! I'll have to re-create.


Mark

Dr PR

#1
Mark,

Interesting. A bug was introduced into the Mirror function several versions ago. I have reported problems but until now no one else seems to have noticed.

What I have seen was just screwed up rendering where one end of a surface facet would be the correct color and the other end would be a different color - apparently the shaded back side. It looked like the surface was twisted front to back.

What you have posted looks like the "slats" are being mirrored twice - once on the X axis and then again on the Z axis. I haven't seen that before. However, it might explain why shading gets screwed up if part of an object is mirrored in two axes and the rest is not.

In any case, Mirror has at least one bug that needs to be fixed!

What version were you using when this bug occurred?

****

For an interim fix just mirror one slat and move it into the correct position. Then use the Array function to replicate it 240 times.

Phil
DesignCAD user since 1987

cavelamb

This is not a mirror issue (though it might could be related?)
And it might not be a "bug", but it sure doesn't act like Id expect it to...

I'm "extruding" longerons (from extruded aluminum angle stock?).

The top two work as expected, but the bottom ones never have.

The "angles" used for the extrusion were all drawn using point relative coordinates
(not copied, mirrored, or turned)

So, what's with that?

I made the drawing work by copying the "angles" to the defining points along
the curves and using surface connect.  But that's not exactly handy.


MarkX

Quote from: Dr PR on April 24, 2012, 10:17:48 PM

What version were you using when this bug occurred?

****

For an interim fix just mirror one slat and move it into the correct position. Then use the Array function to replicate it 240 times.

Phil
Hi Phil,

This is v21. The fix you suggest is how  I made it in the first place. Essentially I would be doing the same work twice -- the thing CAD is supposed to help you with. In this case doing the work twice isn't so bad, but imagine if I had a series of colonnades of diminishing sizes. Having just one column out of position would ruin the entire thing. Mirroring is a fundamental tool in any CAD program. Its not complicated like corkscrew stairways. It should just work.

Mark

Lar

Mark, I've never seen a straight X, Y or Z mirror not work as intended (I be shooting in the dark with the other 2), except with 3d blocks. I'm not too sure about symbols but if you attempt to mirror a 3d block the result is a rotated rather than mirrored block. You can successfully mirror a 2d block (in 2d or 3d mode) but I suspect the block is rotated "under" the plane it's laying on. Eg, if you have a 2d door group (3d mode) that swings right and you want it to swing right, instead of mirroring, then deleting the original, you can rotate it 180 deg. under itself (ie, if the 2d group lays in the XZ plane and you want to X-mirror it, rotate it along the Z axis)... a trick I wish I had thought of before we had 'pack group IDs'.

Lar

Rob S

QuoteCan't attach the drawing -- I saved and ... for the second time today ... the saved file was corrupt! I'll have to re-create.

I wonder if the two effects are related?

If you are having corruption problems, have you enabled saving of .bak files in options, general?

If so you can rename the .bak files, and open those, so less chnace to lose your work.  Alternatively until you track down the corruption problem, try save-as to filenae1 and filename2 alternately.

DCAD raely corrupts files unless there is something wrong with the system, so a check-disk for errors may be in order.

If that turns up nothing, it might be an idea to uninstall and re-install the program itself.

As to the mirror problem itself, I have not experienced that, so if you can post the file, it would certainly be helpful.
User since forever

DrollTroll

#6
Mark, I tried a quick-and-dirty simplified version of your drawing, and it works fine. If you can attach a repeatable example, that would be most helpful. I've attached the drawing I was playing with (first half created and grouped).


Note: The reason you can't mirror blocks and symbols is, the only "points" that DesignCAD has access to for the mirror operation are the symbol handles. It can't "reach into" the symbol geometry and rearrange the points of all the objects therein, as that would require creating an all-new symbol with altered geometry.
25 years with DesignCAD

MarkX

Quote from: Rob S on April 25, 2012, 07:31:27 AM
QuoteCan't attach the drawing -- I saved and ... for the second time today ... the saved file was corrupt! I'll have to re-create.
If you are having corruption problems, have you enabled saving of .bak files in options, general?

If so you can rename the .bak files, and open those, so less chnace to lose your work.  Alternatively until you track down the corruption problem, try save-as to filenae1 and filename2 alternately.

DCAD raely corrupts files unless there is something wrong with the system, so a check-disk for errors may be in order.

Hi Rob,

I had .bak on. I'll have to check if there is a way to save more than one copy. I still lost about 45 minutes worth work ... but it was really tedious work.

I shouldn't have said "corrupted". What I should have said was "DC was no longer able to open the file".  I do enough other stuff on my system with much larger files that I'm sure if there was an actual disk problem I'd know about it by now.

Thanks,
Mark

MarkX

Quote from: DrollTroll on April 25, 2012, 08:09:19 AM
Mark, I tried a quick-and-dirty simplified version of your drawing, and it works fine. If you can attach a repeatable example, that would be most helpful. I've attached the drawing I was playing with (first half created and grouped).


Note: The reason you can't mirror blocks and symbols is, the only "points" that DesignCAD has access to for the mirror operation are the symbol handles. It can't "reach into" the symbol geometry and rearrange the points of all the objects therein, as that would require creating an all-new symbol with altered geometry.
Hi DT,

Are you saying that groups that contain blocks can't be mirrored?

If so, it should pop up a box warning "You are attempting to mirror symbol or block entities. This operation is known to be unreliable".  At least I would know immediately what the problem is.  During the drag/drop part of the process, the image unscreen was perfect. But when the operation finished, the interior components of the group had been re-arranged.

I was hoping that if I needed to change the spar design, I would be able just to change the one copy in a block rather than having to re-construct the entire roof. It sounds like that approach won't work ??

Thanks,
Mark

DrollTroll

Blocks and symbols are essentially fixed geometry in "black boxes". They can be scaled and rotated, but mirroring requires a more sophisticated touch.

I'll ask Egor to look into possible methods of handling that situation, but as of right now they can't be mirrored.
25 years with DesignCAD

Lar

#10
Quote from: MarkX on April 25, 2012, 09:28:50 AM
Are you saying that groups that contain blocks can't be mirrored?
[/quote]

Explode the block, do the mirror and select it (maybe turn on 'select when created'), copy to clipboard, undo to the explosion to get the block back, paste in the mirror, either define the entire mirror or the block part only as 'mirror of block', or 'block_mirror' so they list together.

Lar

MarkX

Quote from: Lar on April 25, 2012, 11:33:44 AM
Quote from: MarkX on April 25, 2012, 09:28:50 AM
Are you saying that groups that contain blocks can't be mirrored?
Explode the block, do the mirror and select it (maybe turn on 'select when created'), copy to clipboard, undo to the explosion to get the block back, paste in the mirror, either define the entire mirror or the block part only as 'mirror of block', or 'block_mirror' so they list together.
Hi Lar,

The complication this time is that there isn't just one block. There's 62 copies of one block, all inside of one group. There's actually even more, but this is the simple version. Exploding the block and then mirroring means that I've lost one of the benefits of blocks. In the future, if I modify, say, the spar widths, I will have to essentially start over, exploding the roof, deleting the parts, re-copying the array of 62.  If I could keep the blocks intact, then I would just have to change the block definition for the spar, and all the spars would change too.

I'll probably just rotate and move for this time. I already re-built the roof once, thinking that the shifting  blocks were my error. On the second go-around, I discovered the mirror problem. Would have been better if DC had prevented me from mirroring the group in the first place.

Thanks,
Mark

Dr PR

cavelamb,

You have encountered the "wrong point order" problem. You just weren't puckering your lips the right way when you drew the lines and the point order got screwed up.

DesignCAD has this totally wierd obsession with the order in which points were placed when generating lines. In most cases it doesn't matter. But there are some functions (Extrude Along  A Curve, Surface Connect, etc.) that will work correctly ONLY if you get the point order correct. It could be the extrusion object or the extrusion curve that is screwed up (or both). Unfortunately, there is no way to know what is the "correct" point order.

The Info Box has the odd button with blue and red horizontal arrows on it. This is the "Unscrewup" button for point order problems (tool tip = "Reverse the order of the points").

1. Select on of the lower "L" lines, open the Info Box and click the Unscrewup button.

2. Try to extrude the "L" along the curve. If it works correctly, you are finished.

3. If it doesn't, use "Undo" to eliminate the screwed up extrusion.

4. Select the extrusion curve and use Unscrewup on it.

5. Try the extrusion again. If it works correctly, you are finished.

6. If it doesn't, use "Undo" to eliminate the screwed up extrusion.

7. Select the "L" and use Unscrewup to reverse the first Unscrewup.

8. Try the extrusion again. If it works correctly, you are finished.

9. If it doesn't, you are screwed.

Phil

DesignCAD user since 1987

cavelamb

Quote from: Dr PR on April 25, 2012, 03:33:38 PM
cavelamb,

You have encountered the "wrong point order" problem. You just weren't puckering your lips the right way when you drew the lines and the point order got screwed up.

DesignCAD has this totally wierd obsession with the order in which points were placed when generating lines. In most cases it doesn't matter. But there are some functions (Extrude Along  A Curve, Surface Connect, etc.) that will work correctly ONLY if you get the point order correct. It could be the extrusion object or the extrusion curve that is screwed up (or both). Unfortunately, there is no way to know what is the "correct" point order.

The Info Box has the odd button with blue and red horizontal arrows on it. This is the "Unscrewup" button for point order problems (tool tip = "Reverse the order of the points").

1. Select on of the lower "L" lines, open the Info Box and click the Unscrewup button.

2. Try to extrude the "L" along the curve. If it works correctly, you are finished.

3. If it doesn't, use "Undo" to eliminate the screwed up extrusion.

4. Select the extrusion curve and use Unscrewup on it.

5. Try the extrusion again. If it works correctly, you are finished.

6. If it doesn't, use "Undo" to eliminate the screwed up extrusion.

7. Select the "L" and use Unscrewup to reverse the first Unscrewup.

8. Try the extrusion again. If it works correctly, you are finished.

9. If it doesn't, you are screwed.

Phil


:D Thanks Phil.

Not only did you offer a possible solution to a problem that has pestered me for a long time,
to also managed to start my day off ROTFLMAO!

Thanks buddy.
I'll give it a try.

Richard


cavelamb

Quote from: Dr PR on April 25, 2012, 03:33:38 PM
cavelamb,

You have encountered the "wrong point order" problem. You just weren't puckering your lips the right way when you drew the lines and the point order got screwed up.

DesignCAD has this totally wierd obsession with the order in which points were placed when generating lines. In most cases it doesn't matter. But there are some functions (Extrude Along  A Curve, Surface Connect, etc.) that will work correctly ONLY if you get the point order correct. It could be the extrusion object or the extrusion curve that is screwed up (or both). Unfortunately, there is no way to know what is the "correct" point order.

The Info Box has the odd button with blue and red horizontal arrows on it. This is the "Unscrewup" button for point order problems (tool tip = "Reverse the order of the points").

1. Select on of the lower "L" lines, open the Info Box and click the Unscrewup button.

2. Try to extrude the "L" along the curve. If it works correctly, you are finished.

3. If it doesn't, use "Undo" to eliminate the screwed up extrusion.

4. Select the extrusion curve and use Unscrewup on it.

5. Try the extrusion again. If it works correctly, you are finished.

6. If it doesn't, use "Undo" to eliminate the screwed up extrusion.

7. Select the "L" and use Unscrewup to reverse the first Unscrewup.

8. Try the extrusion again. If it works correctly, you are finished.

9. If it doesn't, you are screwed.

Phil



It worked on the first unscrewup...

Unfortunately, DC2K doesn't have that handy little button...
V20 doesn't like my video drivers.

But fixing the point order with V20 and saving the file fixed it for 2K as well.

Thanks again!