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.

Would blocks help here?

Started by samdavo, May 29, 2014, 01:58:47 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

Personally I don't use blocks.
But here is an example of  (what I can only imagine) MIGHT be suitable.
Or rather, a couple of examples - along the same principle.
1. one is an ice-cube tray,
2. another is a cup-cake tray.

Suppose that you want the ability to change all those elements , eg different side-slopes.

Anyway, I throw this into the ether in case some experts out there can advise the pros and cons of using blocks.
cheers

PS sorry - just something I thought about as I was following the missus with a shopping trolley the other day -  through the "CAD suggestions" section of the supermarket :)

PS the "element" of the icecube tray has a few more intricacies than the elements of the cupcake tray.
But I would personally use an array for both. (2 cents).   

prl

#1
Quote from: samdavo on May 29, 2014, 01:58:47 AM
Anyway, I throw this into the ether in case some experts out there can advise the pros and cons of using blocks.

Blocks are technically "spacer savers" used for commonly repeated elements.  Also allows for easy modification of a single block definition and all block instances of that definition in the drawing are changed.

I use them sparing since up to DC version 23, DesignCAD could not properly make blocks containing complex solids.  DC would turn on all the hidden lines in the block and when the block definition was inserted or "unblocked", all those ugly hidden lines would be there.  Still treading cautiously with them.

Other hassles,  blocks don't slice and I can't get inside of them with basiccad.  Also remember DesignCAD does weird things with layers and blocks retain the original layers the blocked items were created on.  The block insertion entity resides on the current active layer when the block is inserted but the contents or portions of the block can be made invisible if you remember the original layers of the contained entities. Head spinning yet?   Lots of rules most of which I forget.

samdavo

Thanks for the quick response prl.
I was about to draw an element of each, but can't see much point.
I suspect they don't suit my "style" and "drafting prejudices" :)
cheers
sam

prl

#3
Quote from: samdavo on May 29, 2014, 03:09:29 AM
Thanks for the quick response prl.
I was about to draw an element of each, but can't see much point.
I suspect they don't suit my "style" and "drafting prejudices" :)

Me too. For 3d modeling, I go solids all the way.  For 2d drafting, there are times when blocks are useful.  An example being the hash slash tick thing  Hash Slash Flash - A Silent Movie in Color or anything similar.


samdavo

#4
For fun, I include a typical cupcake mould.
Would be easy to add several in an array.
but maybe some enthusiasts would use blocks (?)

prl

Quote from: samdavo on May 29, 2014, 04:45:59 AM
Would be easy to add several in an array.
but maybe some enthusiasts would use blocks (?)

Sure, you can also array the blocks.  Later today, I'll put together a flash movie for fun just using blocks and then change the master definition of the block.  That's the true purpose and power behind blocks, being able to redefine the block and having the drawing update itself everywhere the block is used.

samdavo

I felt I should give it a go.
jpeg shows 24 cupcakes, some block 1 (gold cake), some block 2 (blue cake).
the original blocks are off to the side,
I understand they can be changed and everything changes - as you say.
Haven;t successfully achieved that yet.

PS clearly something wrong with the oven as well.

cheers
sam.

prl


samdavo

#8
prl
Of course there is the alternative scenario, that the blue cupcakes turn out to be real cups (?)
ps you're right, it is dead simple to explode any one of the "blue cake" blocks, amend it, and define it as the NEW original - and they all follow suit/suite !

PS you can even explode one of the gold cupcakes, amend it, and define IT as the original "blue cake" - and they all follow suite again. 

PS I believe it was Paul Robeson coined the phrase, "I got plenty of muffins,  and muffin's plenty for me"
ahh the greatest musical instrument hewn by nature :)
(edit - On second thoughts, I'm not sure Paul R ever sang this lol)


samdavo

Actually, one thing I don;t like about blocks ...
If you make a mistake, then Ctrl+Z only goes back a couple of steps, (and no further),  and you have to return to your original to "do it again - without the mistake this time!"

prl

Quote from: samdavo on May 30, 2014, 02:57:58 AM
ps you're right, it is dead simple to explode any one of the "blue cake" blocks, amend it, and define it as the NEW original - and they all follow suit/suite !

Yes, only requirement is you keep track of how the handles were set when defining the original.  If you keep the sequence, all your muffins can become bagels, bolts, or beers just as quickly.

Lar

#11
Blocks are designed to minimize file size growth as the user adds more of them to the drawing. So, an item that would be duplicated many times in a drawing, such as a door, a window, etc, can be defined as a block and duplicated many times without the file size increasing too much. This also allows the user to redefine a block to change all of the duplicates at once. So, something like the style of a series of balcony balustrades can be instantly changed to show the client different looks for him/her to choose from.

On thing you must understand (that most people have difficulty in grasping) is that there is a difference between the layer(s) of the entitiy(s) that make up a block and the layer of the block itself. The entities that make up a block still reside on the layers their original entities resided on. However, the layer of the block itself is the layer that was active when the block was defined. However you can change the layer of each individual block via the Info Box, which does not affect the layers of the entities that make up a block. The only way to change the layers of the entities that make up a block is to redefine the block with said entities on the new layers. Note that this would change all the instance of the blocks so could affect the visibility of them all. To guard against this there is the option of a block's visibility being controlled by the layers of the entities that make up the block or the layer of the block itself (Options dialog (Q hotkey)> View tab).

I take full advantage of this layer difference in blocks. I create the original entities on dedicated layers high up in the layer numbers (those that you would probably never get to in a normal drawing). I put different aspects of the item on different layers. Eg, in a 3d door block I place the 2d plan of the door on one layer, the 2d plan marker on another layer, the 3d parts on yet another layer and the 3d elevation marker on yet still another layer (say they are layers 1891 - 1894). I then can place the blocks of that door on yet other layers still. Some would go on the door layer for the ground floor plan (say layer 4), others would go on door layer of the upper floor plan (say layer 24), etc. This not only allows me to show the doors for the ground floor plan while the upper floor doors are off, but I can show just the 2d plans for the door, with or without showing the 2d markers, without showing the 3d parts and/or the 3d markers. It's one of dcad's most powerful and under appreciated features.

Another important thing about when defining blocks is where you place its 'insertion point'. This point is what dcad will use when you use the 'block insert' command to bring a block into the drawing. It would be where the first handle is located when you define the selected entities as a block so you should place it wisely. This point is visible as a normal point is in 'point select mode', but you can't snap to it unless 'show symbols/blocks handles' is active. Also, if you place a block on another existing point you won't notice it if both things are selected (unless the above is active, which tends to slow down the system). If you use 'sticky handles' you can place handles anywhere on a block and not necessarily at the insertion point. These will be used when duplicating the block. It makes sense to place handle-0 at the insertion point and handle-1 in a related location so you can rotate a block while duplicating it.

A good use of this duplicating-while-rotating(-while resizing, as you will see) is 2d tree-plan blocks for site plans. You can select one such block and, with handle-0 at its center, handle-1 anywhere along its perimeter and with 'keep scale' disabled, you can repeatedly duplicate the tree-plan block and at the same time randomly rotate and resize each block, thereby quickly duplicating a heavily used item without increasing memory substantially, while eliminating monotony in the site plan drawing. This example makes good use of many of the advantages of blocks and of dcad.

When redefining blocks it is important to place the handle, and thus the insertion point, at the same relative place as the original. Otherwise all the other instances of the block will be out of place.

-------------------
There are a few 'just-as-good-as-bad' things about blocks (most are due to the developers lack of vision or time, or since another more popular program does it that way then we should too). Here are a few examples:

1] Many users save a template file containing blocks of all the repeatable items they usually use which saves the time of looking for them externally when you need them. However, you would have to take the time and forethought of naming your blocks carefully when you define them since initially they would have to be chosen from a list of names and not a picture library. Once a block is used in a drawing you would be able to duplicate them instead of using the 'block insert' command (so you would be able to see what you are duplicating and not worry about its name). A disadvantage of this advantage is that unused blocks would still be taking up memory so you would want to 'purge' them from the drawing. However, since the 'block purge' command purges every unused block (you cannot select the unused blocks you want purged) you effectively should wait until you finish the drawing before you purge. I would suggest making a 'resource' file (instead of a 'template' file) with every block you usually use loaded. Then as you work in another drawing you can visually select items to be copied-and-pasted into your working file instead of selecting from a list of names and eliminating having a file with a bunch of unused blocks that you are afraid to purge since you may need one later.

2] Blocks are designed to reduce memory but to be most efficient in this you have no safety backup. By this I mean if you define something as a block with the 'convert to block' option the original entities now reside in RAM only. This is the most efficient use of memory but you have no backup of the block (explanation below). If you define with the 'retain' option the original entities remain in the drawing and duplicates reside in RAM. This means there is a duplication of memory for every block definition (ie, not every block instance) but you have a backup. The potential problem with the 'convert to block' option is that since you are allowed to redefine blocks but based upon the block's name, if the wrong name is chosen those set of entities are gone for good (I think you can undo, just notice the mistake before you save). Defining with the 'retain' option means the original entities are a backup in case of a mis-definition and allows you to place some sort of mark where the insertion point is. It would be better, in my opinion, if there was a 'redefine a block' command where you go into a 'block editing mode' where the program remembers the name of the block you are editing and its insertion point, eliminating the threat of mis-defining a block or placing a different insertion point (note that you should have the option of placing a different insertion point if necessary).

There are many more things about blocks you have to be careful about and then there's the blocks verses 'linked symbols' debate. Sadly, I don't have time to discuss these things at the moment. It would be best to experiment with blocks to see what works for you.

Lar
ps: see post #19 for tips on blocks and their color...

prl

Kind of DrPrLar....ish.  So who is the wordology major?

prl

Quote from: Lar on May 30, 2014, 07:07:18 AM
Blocks are designed to reduce memory but to be most efficient in this you have no safety backup. By this I mean if you define something as a block with the 'convert to block' option the original entities now reside in RAM only.

Lar, I know what you are trying to say but I think your use of the word RAM is somewhat wrong.  Until you save your drawing to disk, technically your entire drawing is in volatile memory regardless if it is a block or not.   All of us that have typed reports and done drawings and have forgotten to save and have had a power outage know the meaning of volatile . . .  oh NO!!!!

Once you save your drawing/work to disk, the "convert to blocks" blocks are just as safe as the rest of your drawing data.


Dr PR

prl,

I'll take that as a compliment! Nice post about a complicated subject.

Phil
DesignCAD user since 1987