Thursday, April 19, 2012

1 if for RED, 0 if Bylayer, ANY if Byblock

Blocks are one of the selling points to using CAD over the drafting board.  In reality, blocks are not really unique to CAD, from a certain point of view.  Board drafters used templates and guides as a sort of block to create basic shapes and redundant linework.  Blocks are sets of linework, text, or any CAD object that are saved and stored to be reused later on.  They can take on many different forms, shapes and functions.  They make drawing in CAD quicker.  We use computers, and CAD, to make redundant tasks easier.  Why do something several times when you can do it once?  That’s what a block does.


AutoCAD blocks are great.  There are several different types:  Static (regular blocks), attributed, and dynamic.  Each one has its purpose, role, and place.  A static block is simple and straight forward.  What you see is what you get.  An attributed block has text fields where you can enter in data.  This data can be stored in the block, displayed, or both.  That data can also be extract acted.  Dynamic blocks are easily changed.  They have been “programmed” to be altered through grip edits.  This makes dynamic blocks very diverse and extremely useful.

How do you get your blocks, regardless of type, to display the way you want them to while using a minimum amount of unique blocks?  Let’s say that I am redeveloping a residential area.  Some construction has been done in the past but I am also going to add new features and structures.  Right now there are fire hydrants that have been installed.  Some of the existing fire hydrants will remain.  Some will be removed. Other will be removed and used elsewhere and we will be installing brand new hydrants.  We have four different types of hydrants that we want to visually display in our drawings.

  • Existing
  • Existing to be Removed
  • Existing to be Removed and Reused
  • New

Here are our options.

  • We can make four different blocks.
  • We can make a Dynamic Block (essentially making 4 blocks into 1).
  • We can make One block and use layers to control the visual display.


I recommend making one block and using layers to control the display.  There are several reasons for my recommendation:

  • I only need to make one block.
  • Since the blocks are on different layers, I have the most control of when the hydrants will be displayed.
  • Since the blocks are on different layers I have complete control on how the hydrants will look at any time.
  • If I need another hydrant type I only make a new layer.
  • If how I’m using the hydrants I only change their layer.


There are three setting types to use to control the display values of blocks.  Let’s look at color.  All other object properties (linetype, linetype scale, line weight, transparency, thickness) have the same option types so apply these principals to them.  The three options are:

  • Retain the original color properties of the linework in the block.
  • Inherit the color properties from the current layer the block is inserted on.
  • Inherit individual color properties first, then the layer properties if they are different.


There are different ways to accomplish these goals.  If we always wanted our hydrant to be RED then we can either set the linework in the block as RED or we draw the linework on a layer that is RED.  Then we do nothing but place the block where we want it.  But that’s not what we want to do.  We want to draw the hydrant once and switch the color via layer control.  We can change the color of the hydrant layer but we want our hydrants to be displayed in four different colors.  In order to do that, we are left with the last two options.  They are known as Bylayer or Byblock.  Instead of assigning the hydrant lines to a color we need to set the color (and all other properties) to either Bylayer or to Byblock.  (quick tip: when in doubt go Bylayer.)  Bylayer and Byblock will inherit the properties from the layer the block is inserted on.  If we insert our hydrant block on a layer with a color set to red, the hydrants will be red.  Change the layer color and all of the hydrants on that layer will also change.  That’s what we want to do.  Now we can create four different hydrant layers, each set to a different color (and linetype).  That gives us complete control of how the hydrants are shown in each drawing.  I can freeze some of the layers, in order to not display them, and I can make some hydrants darker, thicker, or even dashed.

There are a few things to remember when using Bylayer and Byblock.  A block’s linework that is set to Bylayer must be drawn on layer 0 (zero).  If so then the block will inherit the properties of the layer the block is set to.  If the block is on a specific layer and set to Bylayer then the block will only display according to the properties of that layer.  However, if the linework in the block is drawn on a specific layer and set to Byblock, then the block will inherit the properties of the layer that the block is inserted on.  It looks to the block for the properties not the line work of the block.  This also means that you can change the color of the block without using the layers or the linework.  Byblock gives you the most control.

Assume that the block’s linework is on a layer named RED and that layer’s color is RED.  Set the line work’s color to Byblock.  Insert the block on any other layer and the block will inherit the properties from that layer.  Select the block, open the properties pallet (CTRL+1) and change the block’s color to green.  It changes to green.  Change the block’s color back to Bylayer.  Open the Layer Manager (type LA) and change the layer’s color to Magenta.  The block is now magenta.  Now, freeze the layer the block is on.  The block disappears.  Thaw the layer.  Now freeze the layer the block’s linework is on.  The linework freezes.  If your layer is Byblock you can freeze the linework layer or freeze the block layer.  If your linework is Bylayer, you can only freeze the block layer.  Freezing layer 0 (where your Bylayer linework is drawn) does nothing.  Byblock give you more levels of control but Bylayer keeps things simple.  In our case use either one but perhaps you should consider Byblock.

Using blocks is about making things easier.  Making drawings is the easy part.  It takes as long as it takes.  But if I make my drawings in a way that allows easy and quick edits then I save much time in the life of the project.  Regardless of which type of blocks you use always plan ahead and try to future proof your drawings as much as possible.
There was an error in this gadget

Categories

AutoDesk (104) autocad (99) AutoCAD 2009 (40) augi (40) efficient (37) news (35) drafting (32) articles (30) training (30) CADaBlog (29) AutoCAD WS (23) Update (21) quick tip (20) mobile (19) review (19) video (19) Impression (15) 3D Mouse (14) Android (14) AutoCAD 2013 (14) cad (14) cadalyst (14) me (14) 3Dconnexion (13) AutoCAD 2010 (13) text (13) off topic (12) survey (12) Apps (11) hotfix (11) 3D (10) AU (10) AutoCAD 2011 (10) service pack (10) Autodesk Labs (9) annotation (9) blocks (9) cloud (9) fun (9) inventor (9) workstation (9) HP (8) Review-Product (8) AutoCAD 2014 (7) Autodesk 360 (7) CAD Manager (7) CUI (7) Windows 8 (7) autocad lt (7) iOS (7) tips (7) videos (7) IMSI Design (6) files (6) infinite skills (6) new (6) reference (6) ribbon (6) support (6) workaround (6) RSS (5) TurboViewer (5) cad standards (5) data (5) email (5) fields (5) google (5) guest post (5) paper space (5) printers (5) quotes (5) rant (5) tech (5) updates (5) 2D (4) AutoCAD Exchange (4) Mastering AutoCAD (4) SketchBook (4) TurboCAD (4) UI (4) action recorder (4) dimension (4) driver (4) fills (4) layers (4) leaders (4) math (4) mobile workstation (4) pi (4) pi day (4) salary (4) selection (4) standards (4) styles (4) Amazon (3) Apple (3) AutoCAD 2012 (3) AutoCAD 360 (3) AutoCAD Fundamentals (3) AutoCAD for Mac (3) Civil 3D (3) DVD (3) DWF (3) Fusion (3) Kindle Fire (3) Mac (3) Microsoft (3) Review-Software (3) Upgrade (3) Wiley (3) Windows Phone 8 (3) Windows RT (3) annimation (3) announcements (3) autodesk plm (3) book (3) contest (3) find (3) hardware (3) history (3) iPad (3) keyboard (3) large format printing (3) lisp (3) menu browser (3) properties (3) purge (3) quick view (3) saas (3) sheet sets (3) tables (3) toolbars (3) weekend rant (3) what not to CAD (3) what not to do (3) #CADaBlogDVD2013 (2) 3D Modeling (2) 3ds Max (2) AutoCAD 2015 (2) AutoCAD LT 2013 (2) AutoCAD LT for Mac (2) AutoCAD MAC (2) Autodesk. (2) BIM (2) CADSpeed (2) DWG (2) DXF (2) Designjet (2) Facecast (2) Freestyle (2) Fusion for Mac (2) GIS (2) George Omura (2) Lenovo (2) Mac OS (2) Mountain Lion (2) Novedge (2) Recomend (2) Review-Book (2) Revit LT (2) SpaceMouse Pro (2) Sybex (2) Tablet (2) TurboReview (2) TurboViewer X (2) What Not To Do In AutoCAD (2) What's New (2) Windows (2) array (2) as-builts (2) beta (2) blog (2) circles (2) civil (2) civil design (2) collaboration (2) color (2) command line (2) commands (2) copy (2) design (2) design review (2) download (2) eBook (2) file naming (2) filters (2) geek stuff (2) grid (2) hotnews (2) knowledge base (2) limits (2) look back (2) pallets (2) plotting (2) posts (2) press release (2) purchase (2) reference files (2) rental plans (2) sketchup (2) status bar (2) subscription (2) technology preview (2) tool pallet (2) tooltips (2) tv (2) units (2) video editing (2) viewer (2) webinar (2) 123D (1) 123D Catch (1) 123D Create (1) 123D Make (1) 2014 (1) 2015 (1) 3d Printing (1) ACAD/Medre.A (1) ADR (1) AEC (1) AUGI World (1) Apps Tab (1) AutoCAD Error (1) AutoCAD LT 2012 (1) AutoCAD LT 2014 (1) AutoCAD Mechanical (1) AutoCAD Revit Suite (1) Autodesk BIM 360 (1) Autodesk Instant (1) Autodesk PLM 360 (1) Autodesk ReCap (1) Award (1) CAD Services (1) CADO (1) CTB (1) Camtasia (1) Communication Center (1) DWFx (1) Dassault Systemes (1) Death Star (1) Dell (1) Design Feed (1) Design Suites (1) DesignCAD (1) DoubleCAD (1) Duratec (1) E32 (1) ESET (1) ESRI (1) EliteBook (1) Epson (1) Error (1) Evernote (1) Exchange Apps (1) FAIL (1) ForceEffect (1) Free Form (1) Fusion 360 (1) GIS Day (1) GeoViewer (1) Geographic Information Systems (1) Geographic Location (1) Google Chromebook Pixel (1) HP Designjet T2300 eMFP (1) HP EliteBook (1) HP EliteBook 8570w (1) HP Z1 (1) Help (1) Homestyler (1) IT (1) Infocenter (1) Inforbix (1) InfraWorks (1) InfraWorks 360 Pro (1) Infrastructure Modeler (1) Instant (1) Inventor 2013 (1) Inventor 2013 SP1 (1) Inventor LT (1) JPEG 2000 (1) Kickstarter (1) Kindle (1) Language packs (1) Lenovo Thinkstation E32 (1) LizardTech (1) MS Exchange (1) Map 3D (1) Maya (1) MrSID (1) OS (1) OS X (1) Office Suite (1) Orange Juice Studios (1) PLM (1) Photoshop (1) Pixel (1) Pixlr (1) Pixlr Express (1) Pixlr-o-matic (1) Plant (1) PogoPlug (1) Point Cloud (1) Project Artoo (1) Project Geppetto (1) Project Snap (1) R&D (1) Red Dot Award (1) Review-Service (1) Revit (1) Revit LT 2013 (1) Rhino (1) SDK (1) SMS (1) Secureload (1) Socialcam (1) Softimage (1) Solid Edge (1) SolidWorks (1) SpaceMouse Wireless (1) SpaceNavigator (1) Star Wars (1) SureColor (1) T-Series (1) TechSmith (1) The Future (1) Thinkstation (1) Thinkstation E32 (1) Touch Screen (1) Trimble (1) TurboSite (1) TurboSite Reader (1) TurboViewer Pro (1) VBA (1) VOIP (1) Vault (1) Vault 2012 (1) Vela Systems (1) Visualization (1) WebOS (1) Welcome Screen (1) Windows Vista (1) Windows XP (1) Z1 (1) acad.doc (1) acad.lsp (1) acaddoc.lsp (1) acquisition (1) aerial (1) all-in-one (1) angles (1) archive (1) arcs (1) author (1) autocad 2012. autocad lt 2012 (1) autocad. autocad for mac (1) autodesk logo (1) background (1) break (1) burrito (1) celebrate (1) chrome (1) chrome os (1) chromebook (1) climate (1) command alias (1) communicate (1) computer (1) constraints (1) construction (1) copier (1) crowd funding (1) customize (1) design process (1) designer (1) different language (1) dim style (1) draftsight (1) eMFP (1) ePrint (1) eTransmit (1) engineer (1) environment (1) event (1) feeds (1) filepath (1) folders (1) free (1) government fail (1) groups (1) guide (1) hatching (1) initial setup (1) input (1) install (1) intel (1) internet (1) interview (1) isometrics (1) jobs (1) labels (1) license software (1) linetype (1) livestream (1) logo (1) macro (1) malware (1) message (1) model space (1) modeling (1) multi leaders (1) navigation (1) newsletter (1) notifications (1) offset (1) opinion (1) options (1) overrides status bar (1) parametrics (1) patches (1) pgp (1) podcast (1) poll (1) polyline (1) prank (1) pricing (1) printers color (1) project draw (1) project workflow (1) recommend (1) redlines (1) rent (1) resume (1) reverse line direction (1) right click (1) save (1) scale (1) scanner (1) screen capture (1) sea turtles (1) settings (1) snap (1) software (1) solutions (1) sony (1) student (1) sustainability (1) system variables (1) tabs (1) tech snob (1) transparency (1) trial (1) undo (1) viewports (1) virus (1) webcast (1) wiki (1) workplace (1)

CAD Videos

Loading...