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.

Why does this subtract destroy my solid?

Started by MarkX, May 07, 2013, 10:05:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

In the attached, I want to subtract the orange block from the black solid. When I do, DC removes the sides of my black solid!

Thanks,
Mark
P.S. If you try this, be sure to use shading to see the effect.

JJG

MarkX,

It's not only missing the two side faces, but you can not select anything in this drawing after having subtracted the part ...

Hum, hum, a flick of "Unlock all layers" and "Show all layers", poof, everything is put in order again.
It lacks nothing, and everything is selected again.

It was a trap?    ;)

prl

Quote from: JJG on May 07, 2013, 10:58:54 PM
It was a trap?    ;)

Your solid isn't destroyed, matter a fact it is fine and intact , just confused.  After your solid subtraction, the two sides are on layer 0 and that layer it is turned off.  Hence it (the new solid)  is "unselectable" unless you use the unlockall.exe or equivalent.

MarkX

Thanks for the answer, PRL & JJG.

But this is just stupid. I didn't do any work on layer 0.  Nothing should have ended up on layer 0.

I don't like wasting time on "gotcha" puzzles. There shouldn't be magic workarounds, and trips to the forum to beg for help for something as simple and direct as a solid subtract. I don't think this behavior would be tolerated in SketchUp or any other software.

Thanks again,
Mark



Lar

It's the bug that Dr. PR often talks about. It's a pain for me too but I've learned to live with it.

Lar

DrollTroll

#5
This generally happens because for some reason DesignCAD can't decide which original solid (or solid component) should control the layer/color/material of one or more pieces of the resulting solid. Some of this is because we try to be "clever" and color some pieces according to the color of the original solid or component (so for example if you subtract a red sphere from the corner of a black box, you get a red "bite" out of the black box).
In this particular case, both solids are on layer zero one, and are of the default material, so there should be no ambiguity. I'll see if we can revisit this and provide more "sane" results, at least for simple cases like this. We may simply have to stop trying to be "clever" with colors and materials.
For more complex cases, like solids created out of objects on multiple layers and of multiple colors or materials, there could still be potential problems, and we may not be able to please everyone no matter what we do.
25 years with DesignCAD

samdavo

#6
Gents
Herewith your problem ( as if you need to see it again lol) - but after exploding and also Dempsey's pushapart.d3m.  those pieces are in multiple layers as you well know.

And I am now pretty familiar with layer 0 as well - I've labelled them ALements (because they are coloured /material Aluminium).

HOWEVER, I will also post a zip file of a full set of ten macros, designed to set layer and colour
0 = dark grey (almost Aluminium, but not quite)
1 = white , layer 1
2 = red, layer 2
3 = brown, layer 3 (PS prints better than yellow)
4 = lime green, layer 4
5 = aqua / cyan, layer 5
6 = fuchia / magenta, layer 6
7 = dark blue, layer 7
8 = light grey, layer 8 ( used for checking sketches , hidden layers etc)
9 = dark purple, layer 9 (rarely lused, being the same as the selection colour)

also
a = all layers visible and editable.

Basically this is the same as I have discussed a few times, but I have had to add layer 0.
ONCE you control layer 0 (only) you can easily paste it into another layer (2 cents) - all pretty obvious.

PS (I might also post these macros on the "other thread" that is relevant).

PS as I said on the "hammer and cycle " thread, and also the "surface connect and surface patch" thread, I personally think that layer 0 can be quite convenient, even advantageous, when you want to depict a complex curving surface (2 cents)   


prl

#7
Quote from: DrollTroll on May 08, 2013, 08:43:23 AM
I'll see if we can revisit this and provide more "sane" results, at least for simple cases like this. We may simply have to stop trying to be "clever" with colors and materials.

Dt, before things actually get re-coded, I would suggest a brief discussion here on the forum.  This is a complex topic and we need to find a reasonable and simple "expectations" consensus.   Personally I like that the "bite" takes on the subtracting solid colors.  I also like the "bite" colors using the current active color when using section trim.  And the "bite" facets ending up on the currently active layer.

 

prl

Quote from: MarkX on May 08, 2013, 06:04:04 AM
I don't think this behavior would be tolerated in SketchUp or any other software.

Mark, this may surprise you but in SketchUP Pro 8, when I do solid additions and subtractions, the resulting solid is placed on layer 0.  It is hard for me to explain since I'm old school and pretty well set in concrete with respect to layers.  The layer 0 concept is apparently heavily used when making components.  The component itself ends up on the proper layer, but all the primitives that make up the component are on layer 0.

Try googling sketchup and layer 0.  You'll see a similar discussion and debate (as to being totally logically or completely insane).

minstrel

Quote from: prl on May 08, 2013, 10:03:55 AM
...before things actually get re-coded, I would suggest a brief discussion here on the forum.

I agree. 

It's going to be difficult to cater to everyone's needs without the ability to either 'opt-in' or 'opt-out' to any and all changes that might be made.

Minstrel

MarkX

A reasonable expectation is that if you subtract one item on layer 1 from another also on layer 1, the resulting product will be 100% on layer 1. And it should certainly never end up on a hidden layer! Keeping the color is nice, but not as important as keeping the layers together. When the resulting product is appears to be full of holes, its natural to think that DC has deleted part of your structure.

I don't know about primitives. Layer one was swept free of anything except solids. What primitives are left over?

Mark

JJG

Quote from: MarkX on May 08, 2013, 10:40:01 AM
A reasonable expectation is that if you subtract one item on layer 1 from another also on layer 1, the resulting product will be 100% on layer 1.
...
Mark

Of course !!!  100 % agreed : it's just a matter of common sense!

prl

Quote from: MarkX on May 08, 2013, 10:40:01 AM
A reasonable expectation is that if you subtract one item on layer 1 from another also on layer 1, the resulting product will be 100% on layer 1.

Sounds reasonable. What if your current active layer is layer 12?  When DesignCAD builds the resultant solid, where should it go?  All of it, only affected parts of it?

MarkX

Quote from: prl on May 08, 2013, 11:36:48 AM
Quote from: MarkX on May 08, 2013, 10:40:01 AM
A reasonable expectation is that if you subtract one item on layer 1 from another also on layer 1, the resulting product will be 100% on layer 1.

Sounds reasonable. What if your current active layer is layer 12?  When DesignCAD builds the resultant solid, where should it go?  All of it, only affected parts of it?
Current layer should apply to NEW things. New lines. New shapes. New solids.

Manipulation of objects should not touch the layers.

Mark

prl

Quote from: MarkX on May 08, 2013, 11:43:31 AM
Current layer should apply to NEW things. New lines. New shapes. New solids.
Manipulation of objects should not touch the layers.

OK. Not arguing but this does highlight the definition of NEW.  When you subtracted your orange solid from the black solid, the resulting solid was NEW.  It receives a new solid ID etc.

Also had you taken a rectangular "bite" out of the black solid using section trim rather than subtracting the orange solid, all the facets affected by the "bite" would be on the current active layer and again DesignCAD will build a NEW solid.