Friday, January 10, 2014

MyACADE’s 2013’s Blog Stat’s

I’m not sure if its me being an engineer, or me being a true nerd, but for some reason I’m fascinated by the stats that can be created from a webpage. Below are a few interesting things about this blog from last year. All statistics are shown for the year 2013 only.

Total blog (not page) visits: 8,309
Directly entered web address (not referred): 29.10%
From a search engine (Bing, Google, ect): 21.87%
Mobile and tablet traffic: 4.39%

Visits grouped by browser:
image

Number of new posts: 37
My official (posted) goal was 24 posts for last year. My personal goal was 52. I’m not sure if 37 is a win or not.

Most active blog post: AutoCAD Electrical 2013 New Features! (2,210 Views)
Breaking The wd.env File Down Line By Line (908 Views)
Wire From/To Annotation On the Schematic (694 Views)
Creating a custom PLC style (620 Views)
Title Block Update - Previous / Next Sheet Numbers (604 Views)

Number of new people I have personally met because this blog: 2

Number of pages viewed per blog visit:
image

Average time (in minutes) spent per page visited:
image

Visits by location:
image

Top ten locations:
image

Percent of new viewers vs returning viewers: 54.36% New on Average
image

This years visits per day
The dips are weekends.
image

I hope you enjoyed this useless information. I have a series of reporting posts in the works.

Saturday, January 4, 2014

Symbol Building Beyond the Basics – AutoCAD Electrical

In this post we will walk through the steps needed to create something more complex. I was thinking of a block for the Rockwell Turbo-Encabulator. However Jason Moore has been waiting patiently for a Rockwell Power Flex 40 AC Drive block for over three months now. Oh well, I wasn’t sure how I was going to draw the six hydrocoptic marzlevanes anyway.

imageJason and I discussed using the parametric PLC symbols but decided it would change the look too much and be more work then necessary for this single block.

So here is our starting AutoCAD geometry (on the left). Currently it is all simple geometry and text. No blocks or attributes. It has already been broken into two halves so lets start with the top half by taking it into the Symbol Builder. image
Start the Symbol Builder command. image  Select the geometry from for the top of the drive. I choose the left quadrant of the “R” terminal as my insertion point. That should make it easier to place into exiting wires rather than using the upper most corner of the block as the insertion point.

STOP! If your confused by this point, you need to stop reading this post and go read this one first….  The Basics Of Creating A Block I do not plan to show the basics of each dialog again in this post. Instead I want to focus on little tips and tricks that can be applied here to help make the end users job easier.

Since drives (DR) do not have a standard attribute template simply use the generic (GNR) one. That should be all that’s needed before pressing OK and moving into the Block Editor environment.
image

Placing The Attributes

I plan to start at the top of this block and work down. First thing is to place the needed attributes. Below you can see TAG1 and the DESC attributes have already been placed. I went into the properties palette to modify the justification of the DESC attributes. To make the MODEL NUMBER text always display the catalog number, use the Convert Text option.
image

However after converting the text be sure to remove the default value (See image below). Anytime text is converted the original text becomes the attributes default value. Most of the time this needs to be modified or removed. In this case I’ll remove the entire value. Also the CAT attribute is invisible by default. In this case we want it to display. Using the Properties palette toggle Invisible to No.
image

Before we move on away from the attributes, be sure to set the default FAMILY attribute to DR. This will make sure the catalog defaults to the Drives (DR) table.
image

Placing Wire Connectionsimage

Next we place the wire connections. From the image on the right, you can see I placed all of the terminals on the left and then, after switching direction, placed all of the right connections.

Since these terminals all seem to have standard letters/numbers, lets make the terminals take on those as defaults. Select each terminal’s attribute in the palette and then choose Convert Text, then select the proper terminals id. This copies the location and formatting of the original text. Pretty cool!
imageimage

imageFor the ground terminal, since I can’t use a symbol, I chose to use GND and simply make the attribute invisible.
image
Finish up the rest of the terminals.

Dynamic Clean Up

That takes us down to the DIP switches. Since this symbol will be for multiple drives, lets make these switches actually functional using a Dynamic Flip function. More than likely you have closed the Block Authoring palette by now. It can be opened again imagefrom the Block Editor tab.  For the switches the Flip parameter imagemakes the most sense. If you are unfamiliar with Dynamic Blocks a Flip is a good place to start. Simply follow the prompts. In this case the Flip Parameter is setting the mirror line for the flip/mirror. Once the Parameter has been placed, I used the move command and moved it off to the side a bit. Just be sure to not move the the Parameter up or down because doing so would change the mirror line for the Flip Action.
image

imageAfter placing a Parameter, its time to place an Action. Switch to the Action tab on the Block Authoring palette and choose the Flip image Action. Actions always start with selecting what Parameter the Action is to be associated with. So select the Flip Parameter and then select the geometry that is to flip. Then right click to continue. Done.

Dynamic additions to bocks are so easy and add so much functionality. Do the same to the switch on the other side. Anytime your working with Dynamic Blocks, its good to test the Parameters/Actions before before leaving the Block Editor environment. There is a handy tool on the Block Editor tab imagethat does just that. Inside the test environment, select the block to display the dynamic handles. Note the Flip arrows. If you placed the Parameters and Actions properly the switches should change position by simply clicking the Flip arrows.
image image image
To leave the test environment press the  Close Test Block Window button.image

imageThat should finish up this block. We added the needed attributes, wire connections, and ended with a little Dynamic Block action.

Exit the Block Editor environment using the Done button on the Symbol Builder tab. Since we chose Generic as the type at the start of this process, be sure to change the Symbol name drop down to Drives. That will update the block name to DR. Also modify the Unique identifier as well. Be sure to verify, and change if necessary, the icon and symbol save paths. image

Then place the symbol and verify the attributes and wire connections work as expected. On the right is my test symbol. The catalog attribute is working as well as the wire connection points.

If all is well, add the symbol to the Icon Menu.

But that’s not all. That was only the top half. Lets start the process over for the bottom half of the drive symbol. The only difference between the two pieces of this block, is setting the bottom half as a child. How you do that is easy. Simply choose the Horizontal Child attribute template before entering the Block Editor environment.
image

Place the attributes, wire connections, and add some more flip actions to the bottom half of the drive and we’re done. I chose the same Unique identifier keeping the two block names the same except for the fourth character. Parents fourth digit are a 1 and children are 2’s. image

Place and test the child block. Link it to its parent and the relationship should be established and the parent attribute values should carry across.

imageI hope this post demonstrates how easy it is to turn any existing AutoCAD geometry into intelligent AutoCAD Electrical symbols.

I have recorded the entire process I used making these blocks and it will eventually be posted to IMAGINiT’s YouTube channel. I’ll post a direct link here as well once its up.

Wednesday, December 18, 2013

The Basics of Creating an AutoCAD Electrical Symbol

The Symbol Builder guides you in the making of symbols. Its very easy and quick to create your own “intelligent” symbols. In this post we will look at the basic workflow and some general guidelines used when building symbols.

Starting the Symbol Builderimage

The command is on both the Schematic and Panel tabs. There is no differences in how the command starts, or its options, between the two locations.

Select Symbol Objects and Attribute Templateimage

If the reference geometry is already in block form, it can be selected from the (1) embedded block list drop. If the block is external, it can be selected by pressing the Browse button. The block can also be simply selected using the (2) select objects button.

Any existing geometry, text, and attributes, not in block form, can be selected using the (2) select objects button as well. Nothing is required here since the entire block can be created inside the Block Editor environment.

Tip: Verify the symbols size will match up with the default wire connection spacing for the desired standard. If wire connection spacing is not consistent between symbols extra clean up will be required when swapping blocks.

Specify the insertion point using the (3) pick point button. This can be changed later but it will make working in the Block Editor easier if this is specified now.

Next we choose the proper attribute template (4) The path points is to the default symbol library NOT where you wish to save this block. The attribute blocks are saved there. Just make sure the proper standard is selected. The other two menus narrow down which attribute template will be used. They also aid in naming the block later. A later post will discuss attribute template blocks in more detail.

The preview area (5) should show a little view of the geometry that was selected. If a block was selected the attribute names will show instead of the actual values the attributes hold. Pressing OK opens the Block Editor

imageThe Block Editor

First a quick overview of the Symbol Builders Block Editor environment.

(1) The biggest thing on the Symbol Builder tab is the option to toggle the visibility of the (2) Symbol Builder Attribute Editor panel. Use the Done button once the symbol is complete.

The (2) Symbol Builder Attribute Editor panel is the heart of this little environment. It allows easy insertion of required attributes based on the previously selected attribute template as well as wire connection locations. We will discuss it in detail in the next section of this post.

There is really no reason for the (3) Project Manager. It could be closed and reopened from the Project tab after the symbol creation. The same can be done for the (4) Dynamic Block Authoring Palette. It is used in the creation of dynamic blocks and rarely used in AutoCAD Electrical. It can be toggled back on from the Block Editor tab.

The (5) graphic area is the blocks model space. If additional geometry, text, or attributes are needed, simply switch to the Home tab and add or modify as required. Pretty much anything that can be created in AutoCAD can be created here in the Block Editor environment.

Using the Symbol Builder Attribute Editor

When this palette first came out it had a lot of people really upset. I’m not sure why. From the start I felt this was about 1200 times better then the black box symbol builder dialog. image

Before we get into the attributes, I want to point out this button.  This button opens a dialog that allows a new attribute template to be selected. It also allows a new insertion point to be selected but you will have that option later as well.


Attributes
Now onto attribute placement. This is really slick. Simply select the desired attribute and press the first little icon. image If the icons areimage too small for you, right click and all of the same options are available there as well. After choosing Insert, click to place the attribute in the graphics window.  Another way to insert, is to select the desired attribute and then simply click and drag the attribute line into the graphics window. When the mouse button is released the attribute will be waiting for placement.

Note the second option is Convert Text image (third icon). This is a great command when converting existing imageAutoCAD blocks. Selecting text will carry the text formatting into the attribute keeping the same look. A side effect to this is the text value becomes the attributes default value. This can cause a problem if selecting text stating LT100. That will become the new default prefix for all tags when using this symbol. After all attributes are placed, review the attribute defaults before continuing to the next step.

To reuse existing attributes from an existing AutoCAD block, simply double click it and rename its TAG to match a desired attribute line. What do I mean by this? Note the image below already has an attribute for TAG called TAGNUMBER.
image   image
If I rename this original attribute to AutoCAD Electrical’s default TAG1, immediately the TAG1 attribute line is confirmed.
image     image    image

If a symbol has no text to convert and it’s the default size, all attributes can be placed at the same time. Select all of the attributes in the palette and then insert them as a group. The insertion will be based off of the attribute templates origin and where that attribute lives in the template. So zoom out a bit because some of the attributes may be slightly off screen when placing.
image   image
Some attribute templates will have some optional templates that can be placed as well. Remember this is AutoCAD. Place any extra attributes necessary. They can always be edited using the AutoCAD attribute editors and their values can also be used in reports later.

Wire Connections
imageWire connections consist of two attributes and could be placed manually. However this utility will place and name them properly for you. Click in the white space beside Left/None and a drop down arrow will appear. Click the arrow and all of the possible wire connections are available for selection. Choose one and then press the little icon image above it to place a new connection in the graphics window. Remember to use OSNAP’s when placing these connections. (Shift+Right Click) The wires will end on the attributes insertion point not the geometry being selected.

 

 

If a series of connections is needed simply keep clicking. Wire connections will continue to be placed. Remember to switch connection types as needed or wires will not connect properly. imageimage

If this symbol will always receive the same pin numbers, they can be called out here in the attribute default area.

 

Link Lines
image

Dash linked lines are setup pretty much the same as wire connections. Make sure to add all possible directions for the symbols needs.

In the example below, you can see the need for both sides of the connection in most symbols needing link lines. The exploded blocks on the right are copies of the linked selector switch on the left. The link line attributes are shown on the image on the right.


 

image     image

Close Block Editor: Saving the Symbol

Ok so that’s about it for the basics. How bout we turn this into a block and test it? From the Symbol Builder tab select Done.
image

Once again note the ability to set the base point. The insertion point should be set by now but if not this is the last chance.

Choose if this block should be (1) imbedded in this drawing only (block) or wrote to an external dwg (wblock). Then we move on to naming the block. The symbol prefix is already taken care of. Simply update the (2) unique identifier field and then click/tab out of the field. This will cause the bock and image name to update. If no icon image is needed, clear the check (3) for icon image.

The (4) file paths should be set by the wd.env file. Even so verify the paths are pointing to the proper locations.

Finally review the errors found by the block audit by pressing the (5) Details button.

After pressing OK you are given the option to insert the block after closing the block editor. The correct answer here is Yes. Verify that the wire connections work and attributes are in their proper location. If not, take the block right back into the Block Editor and fix the problem.

image