Design and Manufacturing solutions through Digital Prototyping and Interoperability

Tag Archives: AutoCAD

AutoCAD Deep Dive Series: Layers with Blocks & Xrefs

Here we are at the end of our Deep Dive” look at AutoCAD Layers. Have I left the best for last? No, I think each post holds its own when it comes to managing layers and using them to their fullest potential within AutoCAD. In this final post lets look at using Layers within Blocks and Xrefs as each has it own special place in the Layer world

colorful blocks with floral vector swirls and shafts of light

Image courteous of Flickr, Posted by Second Life Resident Torley Linden

Blocks

Blocks within AutoCAD serve many purposes but mostly to provide a convenient method to reuse content while maintaining consistency from drawing to drawing.

Layer 0

The property option BYLAYER means that the object will honor the properties of the layer it resides on. Therefor if the color property of the object is set to BYLAYER it will appear as the same color as the layer the object resides on. Blocks are no different.When you insert a block it is placed onto a layer and the block will take on the properties of the layer it is placed on…. except it doesn’t in all cases. Sometimes the block maintains its own colors and linetypes regardless of the layer it is placed on.

Why is Layer 0 in every drawing? Why can Layer 0 not be deleted or purged? It all has to do with blocks. If the geometry contained within the block resides on layer 0 this geometry will take on the properties of the layer the block is placed on. Therefore if the block is on a red layer with a hidden line type all objects within the block on layer 0 will appear red with a hidden line type.

If the geometry contained within the block resides on any layer other than layer 0 it will maintain those layer properties opposed to assuming the properties of the layer the block resides

AutoCAD Block Layer Definition

Take for example a block depicting the side view of a hex head bolt. We want the bolt to take on the properties of the layer it is placed on EXCEPT for the centerline. The centerline we’ll place on the centerline layer so that it appears and behaves as all other geometry on the centerline layer

AutoCAD Blocks Three Different Layers

Byblock

If the object in the block is on Layer 0 it will use the properties of the layer the block resides.If the object is on any layer other than Layer 0 it will use the properties of the layer it resides on. If the object properties are set to ByBlock it will take on the layer properties but will be effected by changes to the base layer (i.e. being frozen or turned off)

Making sense? For a different take on the differences between Layer 0, ByLayer, and ByBlock take a look at the post Edwin Prakoso did on CAD Notes a couple years back

Exploding, Purging, and Merging

When you explode a block the objects will remain on the layers they were created on, they do not take on the layer of the block.

A common reason why layers cannot be purged is that an object resides on the layer within a block definition. Meaning that even though the block is not inserted into the drawing it is still defined as a block definition, consuming the layer. This is a good place to use Layer Delete or Layer Merge when you cannot locate the object using the layer.

Xrefs

How are Xref Layers treated?

When a drawing is attached as an XREF its layers appear in the Layer Manager prefixed by the drawing name and a pipe (|). This maintains the XREF’s layers as separate entities even if the same name exists in the host drawing.

Binding an Xref

When you bind an XREF, converting it into a block definition opposed to an external reference, you are presented with two options: Bind and Insert.

When you bind the XREF using the Insert option the layers are merged into the host drawing. This means that objects may change in appearance as if the layer already exists the layers (and their objects) will take on the properties of the existing layers.

When you bind the XREF using the Bind option the layers are maintained with AutoCAD prefixing the layers with the number and the drawing name.

 

An Electrifying Threesome – AutoCAD Electrical 2015, Office & Access 2010

Office 2010 32 bit AutoCAD Electrical 64 bit not supported

Microsoft Office 2010 is supported they say, 64 or 32 bit they say… hmm I say. What am I banging on about you say? Well, if you have a 64 bit Operating System installed, which is highly likely if you are running Windows 7 or 8.1. Then when you install the Autodesk Product Design Suite, AutoCAD Electrical or any other Autodesk product that installs the Microsoft Access 2010 Runtime, it will install the 64 bit version of both the CAD applications and the Access Runtime. HOWEVER, if you already have the 32 bit version of Office 2010 installed, then the install will fail. OR if you try to install Office 2010 32 bit AFTER you have install the Autodesk software, then the Office installation will fail.

Office 2013 32 bit 64 bit installation error

Here’s the thing, Microsoft are very clear about wanting people to install the 32 bit version of Office. The 64 bit version is only intended for developers to use. There are far too many conflicts between Office 64 bit and other applications which rely on Office components. SO, the only way you can use Office 2010 with 2015 Autodesk products which have an Access 2010 Runtime prerequisite, is to install the 64 bit version of Office and risk all the issues that come with it. I’m not a database guy, so I can only assume the AutoCAD electrical development team have been forced into using the 64 bit version with 64 bit AutoCAD and the 32 bit version with 32 bit AutoCAD.

OK, so what about Office 2013? That is fine for now, you can happily install 32 & 64 bit versions of Office as long as they are different releases. I’m running Office 2013 32 bit, and AutoCAD Electrical installed Access 2010 Runtime 64 bit on my laptop. So I have two requests of Autodesk:

  1. Please don’t produce 2016 products requiring Access 2013!
  2. Please update your System Requirements for any CAD products requiring Access 2010 Runtime, that also includes the Suites System Requirements.

AutoCAD Layers Deep Dive Series: Paper Space Layouts

Magic is partially about slight of hand, “Now you see it, now you don’t” with the other part about selling it to the audience, making them believe that the bird just appeared or that they did really just see a rabbit come out of the hat. Paper Space Layouts really aren’t that much different in that we want to take our model space geometry and using AutoCAD’s tool-set (slight of hand), sell it to the audience by presenting it in a way that is easy for them to understand, seeing only what we want them to see. A big component of presenting the Paper Space Layout is Layers. We can control the visibility and properties of the layers per viewport and there are many tools for making it easy to accomplish.

Palming Card Trick Magic

Image courtesy of Steven Depolo via Flickr

Plot Styles

Back in the day (pre-AutoCAD 2000) there was one Plot Style option, which turned into Color Dependent Styles. With Color Dependent Styles (CTB) you use colors to control how the drawing will plot. For example you could make anything green plot black with a thicker lineweight and anything yellow plot purple with a lighter lineweight. Although Color Dependent works in many situations it is limiting as you then need to pay attention to which colors you are assigning to your layers. You would not want to assign green (from the above example) with its thicker linewidth to your centerline layer. With AutoCAD 2000 Autodesk introduced Named Plot Styles (STB) in which you define named styles and assign these to your layers, removing the dependency on colors. To create (or modify) a Plot Style go to the Application Menu (big “A” in the upper left corner) and from the Print sub-menu select Manage Plot Styles. From the Explorer window that appears select Add-a-Plot Style Wizard AutoCAD Add-a-Plot Style IconHere’s a short video showing the process. Notice how many aspects of the object can be set with the Plot Style, including things like Line End Style and Line Join Style which cannot be configured anywhere else.

One catch about AutoCAD and its Plot Styles is that each drawing can only use one type, as in you cannot access both CTB and STB from the same drawing. Color Dependent drawings can be converted to Named Styles using the command CONVERTPSTYLES.. AutoCAD CONVERTPSTYLES Warning You will be prompted to select the Named Style to apply to the drawing.This can be altered at anytime from the Page Setup dialog. Within the Layer Manager you can adjust the styles assigned to each layer http://youtu.be/Rdaov8SGjpw

Freezing Layers

Layers can be toggled OFF or FROZEN to make them invisible and not shown. This removes the layer from view from Model Space AND all Paper Space Viewports. So what can be do for a specific viewport? This is where VP Freeze and New VP Freeze comes into play. AutoCAD VP Freeze Layer Manager While on a Paper Space Layout activate a viewport (easiest is to just double-click inside one) and from the Layer Manager toggle the VP Freeze toggle for the layers you do not want to appear in the Viewport AutoCAD Layers VP Frozen   New VP Freeze toggles the layer to be automatically Viewport Frozen in each New viewport you create. Where can you use this? Say you are detailing a house and just finished detailing all the electrical requirements and you will be moving on to the plumbing and HVAC. Since the electrical layers will no longer be required you can toggle the New VP Freeze option meaning that it will stay visible in the existing viewports but will automatically be invisible for each new viewport The Layer tool Thaw All Layers has no effect on VP Frozen Layers… but Layer Freeze does and it includes a toggle to either freeze the layer of the selected object or VP freeze the layer. When you start the command, before picking anything, right-click and select Settings, then Viewports. You have the option for either Freeze or VPFreeze. Layer Off actually has the same option meaning you can use the Layer Off tool to select objects in the active viewport and have the layers VP frozen opposed to being turned off within the entire drawing. The feature VP Freeze Layers in All Viewports Except Current does exactly as described. Start the command and within the active viewport select the layers you want to remain visible in the active layer but become VP Frozen in all other Viewports AutoCAD VP Freeze Layers in All Viewports Except Current

Layer Properties

Similar to freezing a layer in a viewport (VP Freeze) layer properties can be overridden on a viewport by viewport basis. What the walls to be red in one viewport but cyan in the next? No problem. To override the layer properties you need to first activate the viewport. Once activated you can use the Layer Manager to adjust the properties. AutoCAD highlights all adjustments, making it very easy visually to see the layers that have been adjusted.

AutoCAD Viewport Layer Properties Overriden

To quickly revert the layers the right-click menu provides a shortcut to remove the overrides from selected layers or all layers for the active viewport or for the entire drawing.

AutoCAD Remove Layer Viewport Overrides

Layer States and Viewports

In the article on Layer States we explored how layers are in a constant state of change… layer on, layer off, layer thaw, layer lock, layer color change, layer freeze, layer off, layer on, repeat, and repeat again. Also how its very common to perform the same set of state changes on a group of layers and by using Layer States you can “Save, restore, and manage sets of layer settings

AutoCAD tracks which Space you are in when you create a Layer State and provides an option to capture the settings as Viewport Overrides. This means when you apply the Layer State to a viewport only that viewport is effected by the layer setting adjustments

AutoCAD Paper Space Layer States

 

AutoCAD Layers Deep Dive: Your Toolbox

orphaned utensilsImage courtesy of glasseyes view via Flickr - https://flic.kr/p/9mkuNM

If you have been following this series (and if you haven’t then we need to talk, its not too late, here’s the start) you’ve probably realized that there is a lot going on with layers… managing, naming, keeping to standard, working with… and we haven’t even looking at the Layers panel in the Ribbon yet!

AutoCAD Layers Panel Expanded

It looks innocent enough, not much different than any of the other panels around it, that is until you expand it and boom you are overwhelmed with icons, options, and many tools. I’m not going to go into each one as the AutoCAD Help does a great job of detailing each button. Don’t believe me? Hover over one of the icons and when the tooltip appears press F1 to show the help on that particular feature

AutoCAD Layer Unisolate Help

Working with Layer States

If you’ve been using AutoCAD for a while you’ll know that you can turn layers off or freeze them so that they do not appear in the drawing window, but do you know the difference between freeze and off?

AutoCAD Layer Panel Labeled

  • You can quickly turn on all layers and/or thaw all layers using Turn On Layers On (1) and Thaw All Layers (2) [Don't get me started on using "unthaw", just because it was added to the dictionary doesn't make it right!]
  • Not sure which layers you want to make invisible? or do you have a bunch of layers you want to freeze? Use Layer Off (3) and Layer Freeze (4) to pick objects in the drawing area, the layer the object is on will be set to Off or Frozen. Remember that you can turn off the current layer but you cannot freeze it.
  • A quick way to set a layer as the active layer is to use Make Object Layer Current (5). Pick an object in the drawing area and the layer that object resides on becomes the current layer
  • Lock Layers or Unlock Layers by picking objects in the drawing window using Layer Lock (6) and Layer Unlock (6). Again great in that you don’t need to even know the name of the layers or need to scour your layer list to find them, just pick the objects in the window and AutoCAD locks or unlocks the layer the object is on.
  • Control the amount of fade using the slider (7) or disable the lock layer fading altogether (8)

Other Great Tools

AutoCAD Layer Panel Labeled Part 2

Want to quickly isolate certain layers? Why not use Layer Isolate (1)? Pick objects on the screen and those objects layers are kept, all other layers are either turned off or locked (and faded). Use the Settings of the command to toggle the behaviour between off and locked. When done with your work use Layer Unisolate (1) to restore the layer visibility (or locked state) back to their previous state

Tips

  • Similar to Zoom Previous in function, use Layer Previous (2) to quickly restore layers to their previous states. For example, freeze three layers and lock one, do some work in the drawing, click Layer Previous (2) to thaw the three layers and unlock the one.
  • With Change to Current Layer (3) you can window select objects in the drawing window and they are moved to the current (active layer)
  • Copy Objects to New Layer (4) is a bit misleading in name in that it doesn’t actually create a new layer, but what it does do is after selecting the objects to copy you are prompted to select the destination layer. The copied objects are then placed on the selected layer opposed to the layer of the originally selected objects.

Layer Walk (5) is a great exploration tool, to quickly see which layers your objects are on, to see how drawing is setup from a layer perspective, or to quickly check for standards violations

.AutoCAD Layer Walk

Layer Merge and Layer Delete

Finally, what do you do when you have more layers than what’s required? What do you do with those pesky layers that you cannot delete nor can you purge? You use Layer Merge (6) and Layer Delete (7) of course!

With Layer Merge (6) you select the layers that you no longer want or require and you select a destination layer. All the objects on the unwanted layers are moved to the destination layer and these layers are removed from the drawing. In the newer versions of AutoCAD the objects that will be adjusted are previewed prior to picking the destination layer so you can see what’s going to happen before it does happen.

Layer Delete (7) is very similar except that you just select layers, the layers you no longer want to be part of your drawing. These layers AND all the objects contained on these layers are deleted and removed from the drawing.

Here’s a great post by the best-of-the-best Lynn Allen describing how to delete stubborn layers

See These Tools in Action

Here’s a video in which I try to cover these tools in 4-minutes or less, but I fail! Too much to talk about and I love to talk!

[subscribe2]

AutoCAD Layers Deep Dive: Layer Translator and Reconciling Layers

Layer Translator

You’ve received a batch of drawings from an outside source… customer, vendor, sub-contractor… and the layers do not match your own company standards for layers. The properties are wrong, the names are different, and you’re looking at a lot of work to get the drawings to standard. Don’t fear, our AutoCAD Layers Deep Dive series delivers the Layer Translator!

AutoCAD CAD Standards Ribbon LocationThe Layer Translator is used to map a set of layers to the standard set of your choosing. If the layer in the drawing is called A-Wall-Partition and your standard calls for WALLS you would map the layer so that WALLS is added to the drawing and all objects currently on A-Wall-Partition are moved to WALLS and take on the properties of WALLS. A-Wall-Partition would be removed from the drawing.

From the CAD Standards Tools select Layer Translator. Use the Load button to add the desired layers, the ones you want to map to. You can use existing drawings (DWG), templates (DWT), and standards (DWS).

AutoCAD Layer Translator initial viewThe Map Same button is used to match layers that have the exact same name, but more than that it insures that these layers have the same properties as the destination layers.

After using Map same you go through the list mapping the layers to their target. In this example I take all A-ANNO-TTLB layers and map them to the TITLEBLOCK layer. Not all layers need to be mapped as you can leave layers as they are.

AutoCAD Layer TranslatorOnce you are satisfied with the mappings you can save this as a drawing. This mappings drawing can then be used to load in the mappings into other drawings you have received from the outside source

Select Translate to make the magic happen!

Layer Translator Before After

Reconciling Layers

Once the layers have been translated, or really with any drawing, how do you manage the layers so that you are aware of layers that are added? Especially in situations where you are not even aware that layers have been added, like when you insert a block. For this you can use the built in Layer Reconciliation process. The AutoCAD Help explains it the best…

Unreconciled layers are new layers that have been added to the drawing and have not yet been acknowledged by the user and manually marked as reconciled.

The base in which AutoCAD uses to compare is set the first time the drawing is saved. At this initial save the existing layers are reconciled and all new layers added, either manually or by some other process, are considered unreconciled. Now sirens, buzzers, and warnings are not going to start just because an unreconciled layer has been found, but it gives you the option to review these layers at any time and decide what to do with them

The Layer Settings are important with this feature. If you want to use the Reconcile option you need to enable New Layer Notification and select whether just to evaluate xrefs or all new layers. You also need to configure when you want AutoCAD to notify you of new (unreconciled) layers. The options are on Open, xref attach / detach, Restore layer states, on save, and on block insert.

AutoCAD Layer SettingsWithin the Layer dialog a layer filter is automatically created to isolate just unreconciled layers. To reconcile the layers (accepting them to the drawing) right-click on them and select reconcile)

AutoCAD Reconcile LayerWhen new layers are added you will see a message similar to this….

AutoCAD Unreconciled New Layers NotificationIn Review

Hopefully I’ve shown you a couple tools to not only take a drawing and make it to your standard, at least layer wise, but shown another option for keeping you within your defined standards. If you liked this article let us know using the comments below and keep an eye out for the next in our series of diving deep on AutoCAD Layers.

AutoCAD Layers Deep Dive: CAD Standards

Ahhhh, nothing spurs more heated conversations than CAD Standards. Everyone knows they need them, nobody likes to use them, and everybody wants their own. Why do we want a CAD Standard? Many reasons, but it mostly boils down to consistency, so that each drawing produced looks the same and behaves the same. Many times it is part of a contract to deliver the drawings following exactly the customers standards… it is that important. So what can we do within AutoCAD and what does this have to do with Layers?

Covers a Standard 8 Ute that was sold in Australia in 1955.

 Image courtesy of Five Starr Photos via Flickr – https://flic.kr/p/aiPBnu

Building a Drawing Standard (.dws)

The first step is to define the Drawing Standard, which in AutoCAD is stored as a .dws. The DWS is really just a drawing (or template) with no geometry, saved in this special format. The drawing standard file can contain your standard settings for layers, text styles, dimension styles, and linetype.

To create a Drawing Standard, start with a drawing in which you know the layers and styles are defined to your standard. Make sure each layer is there and is configured properly. This can be your template or any drawing which you know is correct. Remove all geometry and purge any layer or style you do not want as part of your standard.

AutoCAD Layer Dialog

Save As the drawing, changing the file type to AutoCAD Drawing Standards File (,dws) and specify a location that will be easily accessible, but a set location that won’t be changing. Like xrefs and images, the drawing standard will be attached like a reference, so you want to make sure its in a location that won’t change.

AutoCAD Save As DWS

Using the CAD Standards Tool

The CAD Standards tools are found on the Manage Tab in the Ribbon.

AutoCAD CAD Standards Ribbon Location

The first step is to configure the drawing by attaching the DWS. [NOTE: You can actually associate multiple standards to a drawing]. Use the + to browse and select the DWS. Once you’ve associated a drawing standard, it will remain until you remove it.

AutoCAD Configuring CAD Standards

Using the Plug-ins Tab you can select the types of standards you want checked. The four options (layers, dimstyles, text styles, & linetypes) are available but you don’t have to check everything.

AutoCAD Configuring CAD Standards - Plug Ins

To check the drawing against the standards file select the Check Standards button in the ribbon (CHECKSTANDARDS if you prefer typing). This can be initiated anytime you want to check the drawing. AutoCAD will also check the drawing in real-time. If problems are found you will be notified via a notification bubble in the bottom right corner of the screen.

AutoCAD Standards Violation Found

If errors / conflicts are found you will be presented with a series of dialogs, listing the problems and possible replacements. For example if your drawing contains a layer called MIKE which is not defined in the standards. You will be prompted about the violation and asked which layer you’d like to move this layer and all of its objects to.

Note there is an option to ignore a problem. There will be times where you have added layers for a specific reason. You can mark these layers as ‘ignored’, which in turn will be tagged with your name, so if anyone else is looking at the drawing, they will know it was you who ignored the problem.

Two types of problems will be found:

  • non-standard names meaning the layer or style exists in the drawing but not in the standard.
  • non-standard property meaning the layer or style exists in the drawing and in the standard but its properties don’t match.

When selecting the Replace With Layer, the dialog will show the differences between the layers so you know what’s going to happen to the existing objects.

AutoCAD CAD Standards Problem Found

Click the Fix button to make the correction or the Next button to skip this. Using Next to Skip, is different than Ignoring, since Ignoring is a permanent setting where as clicking Next simply moves on and the problem will continue to appear each time the standards are checked.

Attaching the Standard to Your Template

Are you thinking the CAD Standards Tool can be a powerful ally? Thinking wouldn’t it be great if I could attach this to my template so every new drawing I start is associated with this standards file? What’s stopping you?

Associating a Standards File to your Template is as simple as opening the template, attaching the standards file (see steps above) and saving the template… boom! and its done.

Configuring the CAD Standards

From the Ribbon > Manage tab > CAD Standards panel, select Settings to access the CAD Standard Settings.

AutoCAD CAD Standards Settings

In the first section you can configure the notification settings: disable completely, display alert, or display just the icon.

Next, you can specify if AutoCAD will automatically fix non-standard properties. With this enabled, if a Layer was found to exist in the drawing and in the standards but the color was wrong, the CAD Standards would automatically fix the color using the DWS settings without prompting.

The CAD Standards will check layer properties such as color, linetype, and lineweight but will ignore the layer status (on/off, frozen / thawed, etc)

You can also choose whether ignored problems are shown each time.

Performing a Batch Standards Check

A standalone Auditing tool is installed automatically with your AutoCAD. This tool can be used to audit a batch of drawings for standards violations. It will create a report listing all the issues and problems, but will NOT fix any of the problems… even property conflicts.

To launch the tool, press the Windows key on your keyboard and type ‘Batch Standards Checker’, then press Enter or select the result.

AutoCAD Batch Stds Checker - Drawings Tab

Use the tabs to configure the audit:

  1. Drawings: add the drawings you want to check.
  2. Standards: specify which standards files are used.
  3. Plug-ins: select which of the four standards you want to check.
  4. Notes: Any additional comments you want appended to the report.

From the Standards tab, you can specify whether it should check each drawing against the standards file already associated to the file, or to check each drawing against the standards file you specify in this dialog.

AutoCAD Batch Stds Checker - Standards Tab

Click the New button to define the name and location for the report, which will be created as a .chx. Save any time you make changes to the dialog.

Click Start Check to initiate the Audit, sit back and relax, and wait for the audit to complete.

AutoCAD Batch Stds Checker - Sample Report

What’s Next?

Here we are, at Part 4 of our deep look at AutoCAD Layers. We’ve already covered Layer Filters, Layer States and Reusing Layers… so what’s next? A look at a tool that technically falls into AutoCAD’s CAD Standards tools: the Layer Translator.

Join the Community