News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

prl

Quote from: minstrel on December 22, 2012, 12:36:06 AM
Why not?  This is yet another wonderful benefit of 'blocks' - the can be assigned names and retain those names when copied into you current drawing.

Minstrel, a few of the "why not"s that come to mind

1. Currently if Phil's showroom parts were blocks already and he wished to edit and improve them, by unblocking them, solids created from multiple and complex solid adds/subtracts will have all hidden lines/edges turned ON.  A longstanding bug.

2.  The copying of same named blocks between drawings doesn't work.  It doesn't properly replace the working drawing blocks nor does it properly auto-append the block name.  It may fail to clipboard copy completely as demonstrated in Phil's example and my steps 6a. and 7a.  A longstanding bug.

3.  In my testing, the more often you "unblock" and "reblock" an assembly, even with purging unused blocks religiously, at some point a corruption occurs.  I haven't been able to pin this one down.  I don't know if it is me or DesignCAD but I suspect it has something to do with the internal name cache problems.  My advice is "block define" as little as possible, once seems to work.  Want to edit the block, discard it, and start with a "clean" and "never-been-blocked" group of items.

prl

#16
Quote from: Dr PR on December 21, 2012, 10:50:45 PM
. . .  when they are defined to be blocks I will use the "Retain" option to keep the original in the block layer. This will serve as a visible reminder of what blocks are in use in the drawing.

. . . anyone see a problem with this method?

Your layered assembly in the showroom drawing all goes to one layer in the working drawing and then your "block define" or do the items stay on their original layers and then the block resulting from "block define" goes on special block layers?  Just curious.  Also both approaches bring into play the host layer container concept for symbols.  Nice way to hide/show assemblies (two positions for each block, say an open door, closed door, open hatch, closed hatch).

To where in your working drawing are you physically pasting and "retaining" the one original unblocked assembly?

minstrel

Quote from: prl on December 22, 2012, 02:59:36 AM
a few of the "why not"s that come to mind

prl, you bring up good points, but I've yet to expose the 'bug' you speak of when editing 'exploded' blocks and redefining them.   Any examples?

I think we all understand 'cross-blocking' with identical names is a no-no; that's why I use 'placeholder' names in a 'Showroom' file.

So, for me, the ability to name, search, organize and edit our friendly collection of 'blocks' in a specific file location outweights the issues you toss before us...so far, anyway!

Later,  I'm goin' bug huntin'!

Minstrel

ps - what I don't like about blocks is the inability to set multiple handles as with 'symbols'! 


prl

#18
Quote from: minstrel on December 22, 2012, 04:02:02 AM
I think we all understand 'cross-blocking' with identical names is a no-no; that's why I use 'placeholder' names in a 'Showroom' file.

Minstrel, on my 3 item, no examples that I can provide.  Just things that don't work the way I expect via code.

Regarding your statement above, I'm not following your showroom 'placeholder' name concept.  What if the the showroom placeholder block name is the same as the name of a block in  the working drawing?  How are you ensuring unique names at each block copy/paste?  Walk-me through a typical showroom to working file block copy/paste routine with a replace/redefine in the working drawing please.

Thanks


prl

#19
Quote from: minstrel on December 22, 2012, 04:02:02 AM
ps - what I don't like about blocks is the inability to set multiple handles as with 'symbols'! 

This one I have covered. For "block insert" to work the way it would for a symbol that was saved with 3 user defined handles, set 3 points as if you were setting handles but do a temporary work plane instead. In this flipped around work plane coordinate system,  your assembly will have handle point 1 at (0,0,0), handle point 2 will be in the +x direction, and handle point 3 will be in the +y direction (all in this temporary UCS).  Select your assembly and place one point at 0,0,0 and block define.

Switch back to your default UCS and block insert will behave as if you had set 3 user defined handle points.  You've forceably aligned your block assembly to the 3d definition of a block (a single insertion point the user can control  (handle point 1), and DesignCAD autogenerate XY handle points 2 and 3 which the user can't control). 

minstrel

#20
Quote from: prl on December 22, 2012, 05:40:13 AM
Walk-me through a typical showroom to working file block copy/paste routine with a replace/redefine in the working drawing please.

First, I tried to expose the 'bug' you spoke of...gladly, I have not been honored with it's presence.
Attached pics reflects 7 'mutations' to an original square 'block'....no problems. 

Naturally, as an added test, I slapped it into SketchUP to see how it imported and it retained it block/component status!  Yippie!

Now, for the walk....
Since, in advance, we are aware that all of the 'Showroom' blocks must contain a unique naming structure to avoid any conflicts with other blocks - past, present or future - it's simply a matter of adding a specific qualifier/code within the 'placeholder' name....ex.  box_blah_sr [where the _sr reflects back to a 'Showroom' block only].

Then, when one of the 'Showroom' blocks is introducted into another drawing [copy/paste], it's just a matter of selecting it, then do a 'block define' with a set to 'retain' and then overwrite the targetted block...bam, mission accomplished.

Now, what's this good news?  I'll try this [setting block handles] out immediately!

Minstrel

prl

#21
Quote from: minstrel on December 22, 2012, 07:18:57 AM
Now, for the walk....
Since, in advance, we are aware that all of the 'Showroom' blocks must contain a unique naming structure to avoid any conflicts with other blocks - past, present or future - it's simply a matter of adding a specific qualifier/code within the 'placeholder' name....ex.  box_blah_sr [where the _sr reflects back to a 'Showroom' block only].

Still don't follow this.  You've copied a showroom block to your main drawing, say "my sink_v1".   In your main drawing, you exploded it and  "block defined" it to replace an existing block.  Weeks later you decide to update the "my sink_v1" block in the showroom drawing.  You explode it and make your changes and then "block define" it again.  Is this where you will change its name to "my sink_v2"?  A revision history appended to the name?

Also, how did you get the hole in the sketchup model?  DesignCAD normally can't do holes in objects without them skinning over in SketchUP (or is this with you cleaning things up in SU)?

minstrel

#22
You're almost there!

Once copied into the main drawing it is not exploded!  With it selected simply do a 'Block define' with 'retain' [this keeps a copy of this 'Showroom' block in your new drawing on whatever layer you wish] and then choose the target block and overwrite it.

I think your are overlooking the fact I am editing the block in the 'Showroom' file; not in the new drawing.
This way it assures that you have a running record of any and all adjustments made to the block along with whatever coding/id structure you choose, in one file.  So yes,  a clever naming/revision history is necessary and is done in the 'Showroom' file.

Granted, sometimes you will perfer/need to edit the block in the new file...just be sure to copy the edited version over to the 'Showroom' file as historical evidence that a change has been made.

...nice to know someone else knows the ropes/pitfalls regarding the DCAD/SketchUP link...tutorial to follow... soon.

Minstrel
 

prl

Quote from: minstrel on December 22, 2012, 08:10:58 AM
Once copied into the main drawing it is not exploded!  With it selected simply do a 'Block define' with 'retain' [this keeps a copy of this 'Showroom' block in your new drawing on whatever layer you wish] and then choose the target block and overwrite it..
.
.
.
I think your are overlooking the fact I am editing the block in the 'Showroom' file; not in the new drawing.

So you're block defining a block, creating a nested block.  A quick replacement yes, but is this inviting more problems? Since I'm wary of blocks, this adds to my worries.

And finally you are confirming you are manually changing the name in the showroom drawing each time you edit the assembly before copying  it to the working file (otherwise this whole scheme fails).

All this hassle because of the name cache problem.  Progammatically when I'm loading a file, I have to select the file I want, have the operating system give it a unique name and have DesignCAD load that copied unique name file.  You're doing this interactively.

Of the complexity involved in both approaches, I like Phil's "keep as much as original entities" approach better because of data safety. 

minstrel

#24
prl,

You might have a point here, don't really know.

How does an overwrite of a block create a nested block?  Where does this nesting become obivious or visible? In other words, where is it identified as a nested block?

An overwrite is just that...a complete replacement, is it not?

******

Re:complexities & approaches...it all boils down to a matter of individual preferences.  Until my 'block' approach shows signs of buckeling, I continue to go boldly beyond......

Minstrel

edit- "Showroom" is Dr PR's terminology; mine originally was "Scratch" file ... and still no signs of those 'bugs'!

prl

Quote from: minstrel on December 22, 2012, 11:23:04 AM
How does an overwrite of a block create a nested block?  Where does this nesting become obivious or visible? In other words, where is it identified as a nested block?

If you are "block defining" a block, that is a nested block.  Select the new block you made and using the infobox examine the name, then explode top level only.  When you explode the outer block, you'll be at your showroom block.  Doesn't look any different but the name in the infobox will change.

Also try sending your nested block to SU.  In the outliner it will show a tree (the outer block holding the showroom block).  Kind of cool if I can get comfortable with all the twists and tricks.

Quote from: minstrel on December 22, 2012, 11:23:04 AM
Until my 'block' approach shows signs of buckeling, I continue to go boldly beyond......

Please do and continue to be generous with your feedback and  observations.  Until you showed me the "Tree", I didn't know it was possible to have nested blocks export from DesignCAD.  The more I learn the better.

Happy Holidays folks  . . . got snow . . . .  signing off for a few days.  Going visiting . . .

minstrel

Quote from: prl on December 22, 2012, 12:16:01 PM
The more I learn the better.

Ain't that the truth!  What goes around comes around...thanks for sharing your insights as well...now I know what you mean with this talk of  'nested blocks'...

...more to explore!  I like it.

Have a safe one...

Later,
Minstrel


Dr PR

Actually, I think "showroom" was prl's term. I refer to them as library drawings because that is what they are - libraries of components to be used in other drawings. These are files containing many objects that can all be viewed at the same time - something you can't do with symbols.

Also, to answer prl, I don't create solids on multiple layers. I sometimes do create groups of solids (assemblies) that span multiple layers, especially in the drawing where the assemblies are created. But when these assemblies are copied and pasted into another drawing I normally flatten them into a single layer.

In my "library" files each assembly is on a single layer. Sometimes another layer contains a text description of the object.

Objects in the library files are not blocked because I often create a succession of objects derived from an original. For example, the Navy used a standard 26"x66" door opening, but there were many varieties of 26x66 doors. Each door type had the same basic dimensions and hinge positions. However, there were water tight, air tight, flame tight, non-tight and armored doors, with 4, 6 and 8 dogs (internal or external), plus quick-acting mechanisms with dogs in the doors and dogs in the frames, and activating levers in the doors and levers on the door frames. Plus - they may or may not have windows, and they had different counts of stamped "bumps" in the door surface. And these can all be left hand or right hand opening.

For each variation I selected the closest existing part and modified it to create a new entry in the door library file. See attached image.

****

Now you have gotten into my next area of block exploration - nested blocks.

I have a drawing of an antenna that is 46 Mbytes. There are two of these antennas on the ship. If I make a block of the first and then copy the block, I get two antennas for the price of one - a 46 Mbyte reduction in the whole ship file size.

The antenna has thousands of bolts, nuts and rivets. I made a strip-down file where all of these fasteners were deleted and the file size is 33 Mbytes - a 30% reduction in file size! There are only a few sizes of fasteners, but they are repeated hundreds of places. So, if I used blocks for the fasteners I could have a file with all of the fasteners that was only 2/3 the original file size.

Now, what if I created an antenna with blocks for the fasteners (33 Mbytes) and made a block out of it in the ship drawing and duplicated this block for the second antenna? Would this work? If so, instead of two antennas adding 92 Mbytes to the ship drawing, I would get two for only 33 Mbytes! This sounds too good to be true.

Phil
DesignCAD user since 1987

minstrel

Quote from: Dr PR on December 22, 2012, 10:53:34 PM
This sounds too good to be true.

...and just think, it's been there all along!  Hope that [mega file size reduction] becomes a reality for you, Phil!!

*****

In the process of exploring these '3D blocks & nested blocks' I've come to the following conclusions.

Findings: My approach in no way creates a 'nested block'; prls technique does.
Both powerful; both achieve different results and require different work-flows.

prl's approach modifies an existing block by adding another block [or blocks] to it. 
Then when selected these two or more modified blocks are joined as one and given a new 'block define' name. 
Yes, it is now a nested block and extremely powerful/beneficial!
(I'm certain prl will shed more light on this after the Holidays)

My approach modifies an exiting block either by exploding it or using the original entity.
It does not introduce a new block(s) during the process
[Of course, you can explode additional blocks and add them at will].
The modification is then saved with 'block define' using a new unique identifier.
When copied/pasted into another file for block replacement all that need be done is to select the new modified block
then perform a 'block define' and simply locate the target block and overwrite it...it does not become a nested block!

Hope this helps those trying to follow this thread understand that there is lot's more in DesignCAD than meets the eye.  I'll put up a 'Screen-cast' with my 'take' on the subject early part of January.

Minstrel

Dr PR

Well, as they say - if it looks too good to be true it probably is.

It looks like blocks are worthless after all. I have been experimenting with replacing fasteners (nuts, bolts, rivets, etc.) with blocks and it doesn't work - well, it works in a totally useless way.

It appears that you can create blocks on one layer and then place them in another layer, but no matter what layer you put them on they are visible only if the original layer the  first block was created on is visible. That's just about as stupid a thing as I can imagine!

I wanted to create commonly used nuts and bolts of various sizes and then use them on the many different layers of a drawing. The drawing was created in layers so visibility of different subassemblies (each on a different layer) can be controlled. The idea is to be able to view each subassembly one at a time, or in combination with other subassemblies, all controlled by turning on/off the visibility of the layers containing the subassemblies. That's what layers are for.

However, if I use the same fastener on more than one layer (the whole idea behind using blocks) I have to turn on all of the fasteners on all layers just to see them on the one subassembly I am interested in. So there are lots of nuts and bolts floating in space in a cloud around the desired subassembly. Dumb!

I suppose I could create a new block for each fastener type on each layer, but that is a PITA. Furthermore, I could no longer have a single fastener type with a single name on all layers - blocks on each layer would have to have distinctly different names. That defeats one of the prime virtues of blocks - so you can redefine the block once and have the changes propogate automatically to all instances in the drawing.

Looks like the Grinch stole Christmas again.

Phil
DesignCAD user since 1987