Return to the Design Drawing homepage SearchSubscribe

Drawing Program
[FrontPage Include Component]

Building Blocks

Steve Hunter

 

CAD Essentials

Whether you're a new CAD user starting out through the portal of opportunity that IntelliCAD has brought to engineering, or a jaded lifer, still doing time a CAD workstation, CAD Essentials gives you a chance to recap core elements of CAD. 

IntelliCAD, blocks, symbols, symbol libraries

Having established the basics of colour, layer and linetype, let's work on the main reason you bought a CAD package in the first place—to become more productive. The simplest approach is to identify areas of repetition in your day-to-day activities and strive to eliminate these repetitive tasks through automation. One of the biggest gains you can get comes from creating your own symbol library.

Creating a library of blocks is something you should be conscious of with every drawing you work on. Whenever you draw a part or component, you need to ask yourself one simple question — "Am I ever likely to need one of these again?" If the answer is yes, you should follow the steps below to add this component to your part library. If the answer is no, maybe you should ask the question a second time. In most cases it's much easier to bring in a standard part, explode and modify it, than it is to redraw a part from scratch.

The Old Layer 0 Trick
The first step is to create a block of the part within the current drawing. Something to keep in mind is that layer 0 (zero) has a special property when creating blocks. If you create a block on layer 0 with colour set to BYLAYER, this block adopts the colour of the current layer when inserted. Let's say I create a block on layer 0 and insert it on the component layer, which is green. Even though the block may have had white lines when created, the lines adopt the green colour when inserted on the component layer.

With this in mind you can decide whether you want your blocks to have hardcoded colours or whether you like the flexible approach of defining block colour at insertion time.

Creating Blocks
In either case you create a block within the current drawing by using the BLOCK command. Give the block a name that's meaningful — one you're sure to be able to recognise later on. IntelliCAD gives you 32 characters to work with, so this should be relatively easy. Use object snaps when picking the block insertion point — remember this is the handle used when inserting the block and it needs to be a useful reference for aligning the block with other geometry.

Saving regularly used groups of entities as a block can save filesize and allows intelligence to be added to "objects".
Creating a block using the BLOCK command in IntelliCAD

One aspect of block creation that is disconcerting for new users is that objects used to create a block disappear from the screen when the block command operates successfully. You can get these objects back with the OOPS command, which brings back erased objects. The block command stores the block definition permanently within the drawing, even if the block isn't actually inserted and visible. Unwanted block definitions can be removed from the drawing with the PURGE command. Blocks are placed on the drawing with the INSERT or DDINSERT commands and can be scaled and rotated when inserted.

Blocks can be inserted into other drawings using three main methods. Firstly, you can copy a block to the Windows Clipboard and Paste it into another drawing. IntelliCAD allows you to open several drawings within a single session and tile drawing windows to provide access to areas within different files. You can use this feature to open a drawing containing several blocks, which can be cut and paste as required.

The second method also involves cut and paste but provides access to block names using the Drawing Explorer. From the Tools menu select Drawing Explorer or type EXPBLOCKS at the command prompt. The Drawing Explorer allows you to navigate various drawing files and the right mouse button provides access to cut and paste options.

Building a Library
The third method involves using the WBLOCK command to write blocks to disk. This command prompts for a file name and allows you to create new blocks on the fly or create files from existing blocks. This process creates a new drawing file for the block and it's worth mentioning that any drawing file can be inserted as a block.

WBLOCKing drawing entities creates a symbol library on disk
Using the WBLOCK command in IntelliCAD to create a part library on disk.

The WBLOCK method is more time consuming but ultimately of more benefit if a number of people access the CAD system. Creating a unique central directory location for the company part library is a good approach and allows all operators to create and access blocks within a logical structure.

Using blocks generally lowers the file size of your drawings. Let's take the example of a 100Kb block that is inserted 20 times within the drawing. For a single block insertion this approach is actually less efficient because the drawing stores the block definition at 100Kb and then some additional data for the insertion point, scale factor and rotation angle of the single block insertion. With 20 instances of the same block, however, drawing size won't grow significantly. Compare this with copying the original geometry 20 times, which adds 2Mb to the file size.

Blocks can be taken back to their original geometry components with the EXPLODE command but watch out for swollen file sizes with unexploded blocks that aren't purged. Take the example of a 1Mb drawing file where I insert a 1Mb block, giving me a 2Mb file. If I explode the block but don't carry out a purge, my drawing will grow to 3Mb because it must store the original 1Mb block definition, as well as the 1Mb of exploded data.

Creating blocks is easy and, as I said at the outset, should be an ongoing process in the development of your CAD system. Blocks can themselves contain blocks, creating nested block definitions. This means that blocks can be simple components, such as a bolt or a piece of furniture, or an entire sub-assembly that also contains many blocks. Creating a comprehensive block library reduces repetition and reinforces the old paradigm that you should only ever draw anything once.

Steve Hunter

 

How do you rate this article?
          
Hmmm | OK | Good | Yes! | Brilliant

Copyright © 1998-2001 DBM & others | Disclaimer | Privacy | Re-publication | Trademarks | Webmaster | Home