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.

Blocks in 3D

Started by Dr PR, December 17, 2012, 12:10:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

minstrel

Quote from: Dr PR on December 24, 2012, 10:15:28 AM
It looks like blocks are worthless after all... Looks like the Grinch stole Christmas again.

O ye of little faith...

Phil,  If layers are an issue, perhaps a slight modification to your approach will help.

First, I would bring into the new drawing [copy/paste] all new or modified blocks and place them on
whatever layer.  This should by-pass this problem.

Or, perhaps, a better approach... In the new drawing, designate a layer solely for 'block' modifications...then, while on that layer do a 'block define' making sure 'retain' is checked.  This assure the original geometry is secure [on that layer]. Then do a 'block insert' on whatever layer you desire.  There is now no link between these layers and visibility can be toggled independently.

Plus you can 'plant' that block on any layer or layers and it's visibility remains under your control! And, should you modify that block again, all the entries of that block update on each of their respective layers!  Big Smile! ;D

Hope this addresses your issue and we can snatch back that Christmas Spirit...in the Nick of time, I might add!

Minstrel


minstrel

Phil,

We are playing 'special requests' this evening...and one of our favorite viewers out there in "DCAD-land" just placed one especially for you!

Here ya go!

"Tell Phil to try his block experiment with >Options>Options>View Tab with "Symbol layer visibility controlled by Symbol Host Layer"  turned ON.
Merry Christmas" - prl
End of song---

Have a great Christmas!
Minstrel


Dr PR

Give that boy a Santa hat!

Minstrel,

That did the trick. I hadn't tumbled to the fact that Blocks are controlled by the Symbol logic.

So, it is a merry Christmas after all! Thanks!

Phil

And a merry Christmas to all, and to all a good night!
DesignCAD user since 1987

minstrel

Quote from: Dr PR on December 24, 2012, 08:46:59 PM
That did the trick. I hadn't tumbled to the fact that Blocks are controlled by the Symbol logic.

Great!

Interesting though...

...I have "Symbol layer visibility controlled by Symbol Host Layer"  turned OFF and have no problems working with 'original vrs block insert' layers or their 'visibilty' control issues.

I sense we are still working these blocks in a different manner...perhaps we can spot these difference when I upload a 'ScreenCast' on the subject early January.

Minstrel


JJG

Quote from: Dr PR on December 24, 2012, 08:46:59 PM
That did the trick. I hadn't tumbled to the fact that Blocks are controlled by the Symbol logic.

So, it is a merry Christmas after all! Thanks!

Phil

And a merry Christmas to all, and to all a good night!

Ah, Ah, are there any hope then to understand that the same logic could be re-applied (ie re-enabled) for nested groups (as it was in v19) ?
It would also be a nice Christmas gift !!!

all best wishs to all for the new year coming soon !

prl

#35
A simple testing case.  Highlights how complex this topic can be.

Two open drawings.

Drawing A (working file)

       Red Cylinder on layer 2 - block defined "DOOR". Several copies of this block at random locations.

Drawing B (showroom, aka Library, aka Parts, aka The Store)

     Green Cube on layer 3

Phil's approach keeps items in unblocked native entity formats in the showroom drawing.
Minstrel's approach packages items in ready-to-copy blocks in the the showroom drawing.


Mission - repeatedly replace original Red Cylinder "Door"  in drawing A with newer versions pasted from showroom drawing B while keeping original block "DOOR" name in drawing A.  In drawing A, the "DOOR" name stays constant but the block contents change.



Testing steps

1.  Copy/Paste Green Cube from showroom drawing B to drawing A.  Replace red cylinder with new block item.

Make revision in the showroom drawing.

2.  In Drawing B, added blue pyramid on layer 5.  (for Minstrel drawing, unblocked and block defined the green cube (layer 3) and blue pyramid (layer 5) as "Door_v2" while ON Layer 6.) 

3.  In drawing A, make layer 15 the current active layer. Copy/paste items from drawing B to drawing A.

Make another revision in the showroom drawing.

4.  In Drawing B, added  orange cone on Layer 8.  (for Minstrel drawing, unblocked and block defined the green cube (layer 3), blue pyramid (layer 5), orange cone layer 8 while ON layer 10 as Door_v3).

5.  In drawing A, make layer 20 the current active layer. Copy/paste items from drawing B to drawing A.


During the steps, experiment with "symbol host layer settings" ON/OFF, purposely turn on/off original layers, turn on/off host layers, turn/off pasted-to layers.

I'm hitting a lot of issues (source/target layers for block creation, cut/paste, block insert etc.)  Gets hairy real fast.  Add to this how the entities where originally created (color by entity, color by layer, etc.), . . . .  KISS comes to mind.


Homework:  write 1000 words comparing and contrasting the various possible settings.   :)  Have fun guys.

minstrel

Fun Stuff! 

I'll 'muddle' my way thru the assignment...thanks for putting this together!

...only slight correction:  my 'showroom' approach also maintains the original native enitity as well as the transformed blocks.  Should not 'negatively' affect our experiment but might come into play along the way.

Minstrel

prl

#37
Quote from: minstrel on December 26, 2012, 08:52:42 AM
I'll 'muddle' my way thru the assignment...thanks for putting this together!

Forgot to say, the exercise isn't intended to point out bugs (though it could) or right or wrong approaches.  Simply staring into the sun . . .  learning or discovering the rules ( rule #1, don't stare into . . .)

Minstrel's blocking-a-block redefinition method creates a block container wrapper.  I was wondering how deep it would go with each revision, but it stays at 1 nested level below the last overwrite.  Basically the "Door" block is the wrapper for the latest "door_v#" block.  A possible useful reminder at what version the "Door" is at.

Dr PR

prl,

I didn't follow any of that. What are we supposed to be looking for?

Pasting a block into a drawing should be no different that pasting any other object into a drawing - with the exception that if the block has the same name as another block already in the drawing the user should be given the opportunity to a) rename the block being pasted into the drawing, or b) replacing the existing blocks in the drawing with the new block that has the same name. Other than this, blocks should behave exactly like any other object. If blocks are replaced, the new blocks should be on the same layers as the originals and with the same orientation. It blocks don't work this way they are useless.

All I want to know is whether or not I can create an object in drawing #1, say a particular door type, and then use it as a block in drawing #2, #3, etc. without screwing up everything. Further, can I then combine drawings #2, #3, etc. into one drawing without screwing up everything?

The idea is to create an object in a library file and then copy it to as many different drawings as necessary. Either in the library file, or in each working drawing, create a block from the object. In each drawing this block should have the same name.

This is easy to do - if you are disciplined - by pasting into the working drawings and then creating a block with the appropriate name. To keep it simple, and have an easy record of what blocks are in a drawing, I would create all blocks in a single block layer. Then I would copy these blocks into the appropriate working layer. Block visibility MUST be controlled by the layer the block is pasted into.

I do not know what happens if I paste block X into a drawing that already has a block X. To be determined.

I do not know what will happen if I paste a drawing containing many different blocks into another drawing. To be determined.

Why does it matter which layer you paste a block into, or what layer it was on in the original drawing? It should not matter at all.

Why does it matter if additional objects or blocks have been created in the library file? Why would this change prexisting blocks in the library file or a drawing where any of the objects from the library have been pasted into?

If any of these activities will change pre-existing blocks in working drawings without producing a warning, blocks are totally useless.

If any of these activities move preexisting blocks to different layers blocks are totally useless.

Where does the "visibility container" go when a block is pasted into another drawing? Does it stay on the same layer as the original drawing or move to the layer the block is pasted into in the new drawing? Or some totlaly unrelated layer? How can you tell? How can you move this invisible container even if you can figure out where it is?

Personally, the fact that blocks have an invisible "visibility container" that may be on a different layer from where the block is located is enough to prevent me from using them. Combining object properties with layer properties is an insane idea!

Phil
DesignCAD user since 1987

minstrel

Nice one,

It should be noted that we are working with 'nested' blocks in this experiment.  A 'nested' block is adding/combining one or more blocks into one new block. 

To simply modify an existing block is less complex requiring only a block 'explode', then the modification and
finally a 'block redefine'. 

the Experiment:

1.   Setting - symbol host layer:ON or 0FF [no difference].

     Results: Was able to peform all the outlined steps without any issues. The named block 'door' in drawing 'A' retained it's name while updated/redefined with modified 'Showroom' blocks.

BUT, actual placement of the blocks went out-of-wack [this is where prl may be using his 'treat blocks as symbols 3-point handle settings' technique....nice, I still can't exactly graps the temp working plane concept].

Since this is critical I'll need more time to see exactly whats need to assure pin-point placement accuracy of any
revised/modified block.
     
Note: Minstrel also retains the original
geometry for each stage of a 'blocks' development/modification.  I'm not interested in file size/space saving with the "Showroom" file.

...back to work,
Minstrel
   

prl

Quote from: Dr PR on December 26, 2012, 10:15:00 AM
I didn't follow any of that. What are we supposed to be looking for?

Phil, purpose of the exercise is to discover how blocks behave in a more complex environment.  You will not know if they are safe if you only do simple one item, one layer, one color substitutions.  So without experimenting, there is going to be a gotcha somewhere down the road.

Quote from: minstrel on December 26, 2012, 10:54:41 AM
It should be noted that we are working with 'nested' blocks in this experiment.  A 'nested' block is adding/combining one or more blocks into one new block.

Minstrel, there are no nested blocks in my Minstrel's approach drawing B.  Simply the solids selected and turned into a single block each time.  The v1 is only one solid.  The v2 is two solids on two different layers in one block.  The v3 is three different solids on three different layers in one block.

The only time nesting occurs is when one uses your approach to paste the block and then to immediately block define it as "Door".  This is where the wrapper nesting occurs.  The "Door" block acts like a skin, wrapper, alias (whatever you want to call it) to the pasted "Door_v1, 2, or 3)"

My thoughts are that using simple blocks to replace simple solids isn't meaningful.  You need to build an assembly of something and block that. A one level deep block could have many solids on many different layers. 

Regarding the handles and insertions, ignore those for the moment.  I didn't specifically place any.  More interested in the layer/placement affects.

Dr PR

prl,

You may be right about avoiding simple blocks, but somehow it seems to me that simple objects are an important use for blocks.

For example, consider all of the nut, bolt and screw types and sizes. It makes sense to create a model of each type only once and store them in a library. Then, in any drawing and any assembly you should be able to use any fastener as a block.

By using blocks you could actually model the threads and small details of bolt heads, screw types, etc., and place these into drawings without expanding the file size to infinity.

****

I certainly can see the advantage to converting large often repeated assemblies into blocks. I have a radar antenna that is 46 Mbytes. I use two of these in a superstructure assembly. Just defining the first as a block and then placing another block would trim 46 Mbytes off the superstructure assembly - and would reduce the rendering time as well. There are many other large assemblies that are repeated, and making them into blocks would reduce file size and rendering times further.

****

Personally, I have no intention of creating multi-layer blocks. I don't do this with solids, and I rarely do it with groups.

When I have large multi-layer drawings of sub-assemblies that I copy from the original drawing into a new drawing I usually flatten them into a single layer in the new drawing. I select the sub-assembly, use recursive group explode and then redefine the parts to be a single new group. If I want to make changes I do it in the original drawing and then copy the changed sub-assembly into the new drawing, using the procedure just described. You can see how blocks would come in handy here.


****

If you want to change a type of screw in an assembly without changing all similar screws in a drawing it could be tricky. You would need to copy the assembly to a new drawing and replace the existing block with the new block but using the same old name. What happens if you now paste the assembly back into the original drawing where the old block definition still exists (where the old screw is still used in other assemblies)? The new blocks should return to the old definition.

For this to work we need a "Block Replace" function to be able to swap block #1 for block #2, name and components.

Phil
DesignCAD user since 1987

prl

#42
Quote from: Dr PR on December 26, 2012, 12:33:50 PM
You may be right about avoiding simple blocks, but somehow it seems to me that simple objects are an important use for blocks.

Phil,  simple blocks are important and certainly justified when one item can be repeated often.  Just not much of a test of a block.

I'm interested in learning and comparing the pros and cons of your two approaches.  To be useful to me, it needs to cover multilayer assemblies and for that I need to learn what rules and pitfalls may be around the corner.

minstrel

Quote from: prl on December 26, 2012, 11:34:44 AM
Minstrel, there are no nested blocks in my Minstrel's approach drawing B.... 

This may be where things differ since I do use both 'simple' and 'nested' blocks in my approach.

Guess the best way to show it, is to show it.  This is the same approach I am using within a future 'ScreenCast'.

Had placement problems with your supplied 'test' files...nothing was going the way I expect it to so I created my own test files.   Uses the same approach/steps as you originally provided.  Maybe you can spot something in them that will allow something even greater to shine forth!

Anyhow,  these 'nested blocks' are my friends from here on out...how they perform in DesignCAD is one thing; how they perform in SketchUp is quite another....WOW!

Minstrel


prl

Quote from: minstrel on December 26, 2012, 01:04:54 PM
This may be where things differ since I do use both 'simple' and 'nested' blocks in my approach.

OK.  Your just more advanced. Before I went down the nested road, I was exploring the multilayer items at the topmost block level.

I'll check out your drawings and let you know,  thanks