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 can't interior objects be "cloaked" by their group?

Started by MarkX, May 01, 2012, 10:26:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: MarkX on May 02, 2012, 09:04:14 AM
Maybe after the user base for DC has matured away from 2D people will see the logic of being able to quickly hide objects.

Mark, there is huge value in having off/on visibility for objects, unfortunately, you are expecting too much from DesignCAD. DesignCAD was born at a time when layers were the visibility mechanism.  The more recent introductions of nested groups and blocks have caused DesignCAD trouble and none of these as implemented I trust.  The logic tree of how things are suppose to behave between a layer based CAD system and an object based CAD system are complex.

SketchUp (SU) which has entities, groups, components (blocks) and layers does a good job of defining the rules. You can control visibility of all of these which as you say is pretty handy.  Anything we achieve in DesignCAD that mimics some of those features are most often user tricks and accidental finds.   

Lar

Quote from: prl on May 02, 2012, 09:52:12 AM
SketchUp (SU) which has entities, groups, components (blocks) and layers does a good job of defining the rules.

I use Cinema 4D as a companion to dcad, which has the ability to turn off individual objects or entire hierarchies but I still like the concept of layers. Besides, digging through hierarchies can itself be a pita.

If I used multi layered groups I would put each different component on dedicated layers so I could turn any part on or off without affecting the rest of the drawing. Come to think of it, this is what I did back around version 14 or 15 with my multi-layered symbols (now there's some awesome power in that method) before the s--t hit the fan around version 17 and they hijacked m/l symbols (came back around eventually but I never got back into it fully). I would dedicate some higher up layers, like the whole 500 thru 800's (1000 layers total, back then), to symbols and each component of a symbol would have it's own layer. My doors and windows had about 10 layers, including one for the window screen, one for the attribute and one was just for the symbol entity itself. This way I could turn off the whole symbol or any part of it. My door and window symbols would have the 2d and 3d parts build in. Some have a 3d sliced version on it's own layer for windows that crossed the section line in a 3d cross section.

Now'a days with 2000 layers I can dedicate 1000 thru 1899 for symbols. I now dedicate 1900 to 1999 for random stuff, like junk layers, 'parametric' layers, double line layers, etc. 2000 is left empty and is used exclusively for a macro that I use for finding layers by name. With the higher up layers I work backward, since it's easier to scroll all the way down then up to find layer 1990 than it is to scroll down to find layer 300. The layer groups, sorts and filters make it easy to manage my layering. I also employ layer-ranges where, for example, I dedicate a range of 10 layers to kitchen floor tiles. All 10 of these layers would be turned on in the paper space view frames that would show the floor tiles but while in model space I could move those layers up and down the layer list (for easy of working), but not outside of it's layer-range. That way I don't have to worry about the moved layers not showing in the view frames, or worse, something unwanted showing.

To be honest, though, I would never attempt these tricks without my suite of about 25 macros for manipulating layers.

In CInema 4D every single aspect of every little thing can be animated. Here I have methods where I animate the changing state of objects. Eg, at one point in time a line can be solid and flat on the floor, and at another point in time that line can be dashed and raised above the roof. So, in the timeline, if I go to, say, frame 20, everything I need to show the 2d right-side elevation is activated and everything else is deactivated. This includes the camera being in parallel mode so no perspective is shown. At frame 25 the bools that slice away half of the house is activated and the camera is now angled and in perspective mode. If I render the animation, saving as individual images rather than a movie file, I can bring the images into dcad and add notes and print out a sheet.

I developed these methods when dcad's paper space was a mess. Now that it's been cleaned up I don't have to use these methods any more for architectural style presentations. I stick with dcad's paper space. I do use them for high quality renderings but this is not nearly as complex as construction drawings.

prl, I know sketch up has a similar presentation ability but c4d is insane with what it can do. I swear the program was written by alien beings. When it comes to snaps, zooming and accuracy, dcad can still beat it, though.

Lar


prl

Quote from: Lar on May 02, 2012, 11:03:58 AM
Now'a days with 2000 layers . . .

2000 layers, wow, that's new to me.  Lar, your layer management approach is amazing. From years ago,

QuoteFor example, I dedicated layers 700 to 899 as symbol layers. Layers 840 - 849 are dedicated to window and door symbols.

To explain further:
...Layers 1 - 99 are for 2d work (1 - 20 for the ground floor, etc).

...Layers 100 - 599 are reserved for 3d modeling, each floor of a building using 100 layers.

...Layer 140 is where I load the window and door symbols for the ground floor, layer 240 for the floor above that, etc.

Now, if I want to see just the 2d window on my 2d ground floor plan I turn on 140 (symbol's 'residential' layer) and since the 2d window plan is on dedicated-layer 849 I turn this on and all the other dedicated-layers off.

If I then want to see only 3d model of the ground floor I turn on the dedicated-layer with the 3d of the window and turn off the 2d layer.

If I don't want to see the ground floor windows at all I turn off the residental layer 140.

All this layer turning on and off you can do with Layer Groups but I do it with macros.

then my head exploded and I started wandering the earth (and riding a motorcycle).

JJG

Quote from: prl on May 02, 2012, 09:52:12 AM
Quote from: MarkX on May 02, 2012, 09:04:14 AM
Maybe after the user base for DC has matured away from 2D people will see the logic of being able to quickly hide objects.

Mark, there is huge value in having off/on visibility for objects, unfortunately, you are expecting too much from DesignCAD. DesignCAD was born at a time when layers were the visibility mechanism.  The more recent introductions of nested groups and blocks have caused DesignCAD trouble and none of these as implemented I trust.  The logic tree of how things are suppose to behave between a layer based CAD system and an object based CAD system are complex.

SketchUp (SU) which has entities, groups, components (blocks) and layers does a good job of defining the rules. You can control visibility of all of these which as you say is pretty handy.  Anything we achieve in DesignCAD that mimics some of those features are most often user tricks and accidental finds.   

prl, as french people, please give a look into Designcad pro 7000 and test the "visibility by host layer" for nested groups : you will see it is very pratical and very intuitive ; all the nuisances with nested groups are disappearing so.

Rick V.

Quote from: prl on May 02, 2012, 11:17:31 AM
then my head exploded and I started wandering the earth (and riding a motorcycle).

Thanks prl, I needed that. Made me LOL!

Lar

Quote from: prl on May 02, 2012, 11:17:31 AM
then my head exploded and I started wandering the earth (and riding a motorcycle).

Sounds like a movie deal in there somewhere.

Dr PR

Mark,

I certainly understand what you are asking for - to be able to make something disappear to get it out of the way so you can work on something else. In the huge drawings I work with there is no such thing as an uncrowded view.

Like others, I use layers to control visibility. This causes an extremely complex layer set in order to be able to disable any of the huge numbers of objects. If I put each object on its own layer I would spend more time fiddling with layers than creating the drawing!

My only concern is how you enable/disable visibility of individual objects. In DesignCAD there is a tremendous bug in the way nested groups are implemented. There is a logical "container" for all elements of the nested group. Unfortunately, the container itself behaves like an object - it exists on a single layer, but that layer may not contain any of the components of the nested group. The container is invisible and cannot be selected. The only way to keep track of these invisible containers is to keep a running list of whatever layer was current when the nested group was created. Obviously, no one wants to do this.

If the layer controls visibility of all parts of a nested group, you must turn on/off the layer containing the invisible container. But there is no way to inquire what layer the container is on, and no way to see it or select it. So, if you don't know the layer the invisible container is hiding in you can't control visibility of the nested group.

With simple groups it is less of a problem. Even so, if the group has multiple elements on multiple layers, there is no way to inquire what layer is controlling visibility.

****

Long ago I suggested an object tree display that would show all objects in a drawing and the layers they are on. For groups it would be a hierarchal display. With such a display it would be possible to locate all parts of a group or nested groups. With a little tweaking this could be used to control visibility. It could work very much like the current Layers Dialog to vontrol visibility, move objects between layers, etc.

Phil
DesignCAD user since 1987

MarkX

Quote from: Dr PR on May 02, 2012, 12:38:48 PM
My only concern is how you enable/disable visibility of individual objects. In DesignCAD there is a tremendous bug in the way nested groups are implemented. There is a logical "container" for all elements of the nested group. Unfortunately, the container itself behaves like an object - it exists on a single layer, but that layer may not contain any of the components of the nested group. The container is invisible and cannot be selected. The only way to keep track of these invisible containers is to keep a running list of whatever layer was current when the nested group was created. Obviously, no one wants to do this.

Hi Phil,

So far this doesn't sound like a bug at all. It sounds exactly how I would expect it to work.  If you "lose" a hidden group, you just make all layers visible, and then click on any component of the group to select the group. It just sounds like some operator didn't want to learn how the tool should be used. So ... just provide a toggle switch for people who don't want the responsibility that comes with great power. According to JJG, this is how it works in the French version. So why not DC English?

Thanks,
Mark

DrollTroll

As I said earlier, it did work this way for a while. *MANY* people railed against it, so we removed it in the US version. The French distributor opted to keep it in place.
25 years with DesignCAD

prl

Quote from: MarkX on May 02, 2012, 02:38:52 PM
If you "lose" a hidden group, you just make all layers visible, and then click on any component of the group to select the group.

Mark,

I went back and read your topic from the beginning.  I see you already discovered using a block as a container.  What you said about losing a hidden group also works for a lost hidden block.

Anyway, back in 2004 or so I used the hidden block approach too. I created three macros that quickly automated the process;  MHB.d3m (make hidden block), RHB.d3m (restore hidden block), and VHB.d3m (view hidden block).  I selected something, typed mhb and the routine automatically named it and dumped in on layer 198 which was turned off.  RHB.d3m would select layer 198 and explode all blocks restoring the saved items.  VHB would select layer 198 and copy it to a second temporary drawing so I could see what the blocks are.  

If you are a basiccad fan/user, you can have them.  A word of warning.  I've been out of the DesignCAD loop for a while and only use versions 15.3 and 17.2.  I have no idea if they are appropriate for all the new features since.

prl

Dr PR

Mark,

I never had a problem with the layer controlling visibility because I (almost) never split a group across layer boundaries. So the layer the group is on does control its visibility.

I have used nested groups in other programs where they work perfectly as they should. No invisible containers laying around in layers that have no parts of the nested groups, no problem with locked "empty" layers (except for the container) preventing operations on the groups, etc. In these programs it does not matter what layer is current when you create nested groups, the resultant nested group contains only the visble, editable objects that are parts of the original groups, on the original layers. That is how nested groups should work.

****

One other consideration for groups or nested groups that are spilt across layers - if you select a part of the group and move it to a different layer should all parts of all groups move to that layer, or should they retain their relative layer positions to the new layer the selected part moves to? Her is an example where A, B and C are parts of a group, or nested group:

Initial state
Layer  Part
1         A
2         B
3         C
4
5

Now select part B and move it to layer 4:

Layer  Part
1
2
3         A
4         B
5         C

OR

Layer  Part
1
2
3
4         ABC
5

?

Phil
DesignCAD user since 1987

MarkX

Quote from: Dr PR on May 02, 2012, 04:16:14 PM

One other consideration for groups or nested groups that are spilt across layers - if you select a part of the group and move it to a different layer should all parts of all groups move to that layer, or should they retain their relative layer positions to the new layer the selected part moves to? Her is an example where A, B and C are parts of a group, or nested group:

If you dive into a group and change the layer setting for one object, only that object would change. You would have to move the other parts one at a time. So, its up to you what happens.

Mark

MarkX

Quote from: DrollTroll on May 02, 2012, 03:36:04 PM
As I said earlier, it did work this way for a while. *MANY* people railed against it, so we removed it in the US version. The French distributor opted to keep it in place.
Was there a switch for this feature, or was  it always on? It doesn't seem like people should rally against a feature if they just throw a switch and turn it off.

Thanks!
Mark

MarkX

Quote from: prl on May 02, 2012, 04:01:11 PM
Quote from: MarkX on May 02, 2012, 02:38:52 PM
If you "lose" a hidden group, you just make all layers visible, and then click on any component of the group to select the group.

Mark,

I went back and read your topic from the beginning.  I see you already discovered using a block as a container.  What you said about losing a hidden group also works for a lost hidden block.

Anyway, back in 2004 or so I used the hidden block approach too. I created three macros that quickly automated the process;  MHB.d3m (make hidden block), RHB.d3m (restore hidden block), and VHB.d3m (view hidden block).  I selected something, typed mhb and the routine automatically named it and dumped in on layer 198 which was turned off.  RHB.d3m would select layer 198 and explode all blocks restoring the saved items.  VHB would select layer 198 and copy it to a second temporary drawing so I could see what the blocks are.  

If you are a basiccad fan/user, you can have them.  A word of warning.  I've been out of the DesignCAD loop for a while and only use versions 15.3 and 17.2.  I have no idea if they are appropriate for all the new features since.

prl
Hi PRL,

I'd like to try those macros. If they don't work ... nothing lost.

Thanks!
Mark


prl

Quote from: MarkX on May 02, 2012, 04:33:46 PM
I'd like to try those macros. If they don't work ... nothing lost.

Mark,

Here you go.  You may want to comment or uncomment some of the code if the behavior isn't what you want.  Also back then and still now, I only use the first 200 layers in DesignCAD.  I picked layer 198 for hidden blocks. Yours to change as you wish. Finally vhb.d3m in order to see the blocks, needs to turn on all the layers.  I have it turn on layers 1 to 200.  This too you can change to suit.

prl


Edit:  I forgot to mention how mhb.d3m works.   Example, you are working in 3d building a house.  Say you select all the 2x4 stud walls.  Type  "mhb walls" on the command line and the selection will be blocked with the name "walls" and dumped on layer 198 which is off.  If you don't name it and simply type "mhb", the routine makes up a name.  Most times I don't name things since I do this quickly on the fly simply to remove screen clutter.  Final note, rhb.d3m is simple and unblocks everything on layer 198. Had thought about having it unblock named things selectively but then I found I never used it that way.  I've attached a sample screen capture movie that demonstrates how to select something and invert the selection to isolate things.  Have fun.





***************************************************************************************************

'Program: mhb.d3m (make hidden block)

'Used to hide selected objects by blocking them and putting the block on an OFF layer
'      use rhb.d3m to restore hidden blocks
'      use vhb.d3m to view hidden blocks

hbl=198 'hidden block layer

if sys(80)=0 then
 Message "Nothing selected. . . press any key to continue"
 END
end if

>sethandle
{
<type 0
<pointxyz [0,0,0]
<pointxyz [0,0,0]
<pointxyz [0,0,0]
}

a$=sys$(0) 'user name of block if typed on command line

sys(36)=2
laynow=sys(3)

'if selection not named, make a time stamp name
if a$="" then a$= sys$(0)+sys$(7)+" "+sys$(8)

sys(3)=hbl
sys$(93) = "Hidden Blocks"
>BlockDefine
{
<Name [a$]
<WaitForOK 0
<Type 0
}

sys(3)=laynow
layer(hbl)=0
sys(36)=0
>redraw
{
}
'run "SendUpdateMsg.exe"
End

***************************************************************************************************

'Program: rhb.d3m (restore hidden block)

gosub getversion

hbl=198 'hidden block layer

currentlay=sys(3) 'store current layer
sys(36)=2 'silent mode
sys(80)=0

>SelectLayer
{
<Layer [hbl]
}

precision 0
if sys(80) = 0 then
  Message "No hidden blocks on layer ", hbl
  end
endif

if dcver = 15 then
 sys(1027) = 4 'yes/no message dialog
Message "Reminder, version 15 shows hidden lines when exploding blocks that have solids. Continue?"
 if sys(1028) = 7 then 'No, stop
   sys(80)=0
   sys(1)=0
   regen
   'run "SendUpdateMsg.exe"
   End
 endif
endif

>Explode
{
}

sys(3) = currentlay
sys(80)=0
layer(hbl)=0
sys(36)=0
>redraw
{
}

>PurgeBlocks
{
}

'run "SendUpdateMsg.exe"
End


'subroutines follow
getversion:
 s$ = sys$(105)
 fmt$ = "%d.%d.%d"
 parse s$, fmt$, dcver, dum1, dum2
return

****************************************************************************************************

'Program: vhb.d3m (view hidden blocks)

'use with mhb.d3m and rhb.d3m
 
precision 0

hbl = 198 'hidden block layer
cl = sys(3)

'turn on all layers to see block components
for i=1 to 200
   layer(i)=6
next i

>SelectLayer
{
<Layer [hbl]
<Type 0
}

if sys(80)> 0 then
 ' >fittowindow
 ' {
 ' }
  Message "hidden blocks are shown selected"
  sys(80)=0
  layer(198)=0
else
  Message "No hidden blocks on layer", hbl
  End
endif

sys(3)=cl

>redraw
{
}

End