Tuesday, July 17, 2007

Custom Multileader Style

Hello and welcome to the CAD Cafe. Unless you live high up in the mountains or right next to the sea, it's HOT where you are! So get yourself an iced drink - if your IT guy lets you have liquids near the computer - relax and try something new from AutoCAD 2008.
Today we're going to make a custom Multileader.

In case you aren't familiar with that phrase, let me explain. It's simply an arrow pointing at something you want people to notice, with a number that corresponds to a keynote, usually with a shape around it like a rectangle or a circle. There are a lot of them that come with AutoCAD, but maybe you want to use the same one you've always used. It's part of your company's signature drawing style! Still, wouldn't it be great to have the functionality offered with 2008 multileaders? You can!

This first illustration shows the different types of multileaders that are included with AutoCAD. I created a few different styles to show that you can use any arrowhead, line/spline, and shape combination you like. The process for creating these styles is exactly the same as for a custom Multileader, just choose one of the shapes from the block list.


First step: create a block if you don't already have a custom one. Draw your keynote & insert an attribute at the size you want your keynote to print out in paperspace. I used this ellipse at the size you see dimensioned here.


Important Note! Don't use an annotative text style for your attribute!
Another thing you might want to consider is creating all this in a template file you always use, so once you've gone to the trouble of creating it, the style is available to you.

Next, make your block but make sure it's NOT annotative. All the annotation happens in the Multileader style.
You'll want to make sure to Save at this point. AutoCAD won't put your block in the list if you haven't saved the drawing. Plus who wants to make the block over again just because they forgot to save?
Second step, use the button in your Dashboard to start the Multileader Styler command.
This is a lot like creating a dimension style, you choose options from each tab.



Reading from left to right; under the Leader format tab you choose either lines or splines, line color, linetype, lineweight, also arrowhead style & size. Next is Leader Structure where you can specify how many points your line will have, as well as a specific line angle if you need that. Here you'll choose how it's scaled - annotative or not, same as with dimension styles. As you choose things you'll see the preview of your multileader change.
The last tab, Content, is where you choose your own block.


Here is illustrated all the choices you have when you create your own Text Multileader Style. I was going to explain it all, but in this case a picture is definitely worth a thousand words, and those of you who aren't interested in this can just skip this picture, and you won't have to read a thousand more words!

Below is the Content tab with 'Block' chosen; you
can see all the choices that come with AutoCAD.
I clicked where you see the words "User block" highlighted, then a list of all the blocks in the drawing popped up and I chose my 'Custom Keynote' block.

Here you can see my preview, I chose my custom block, straight lines, annotative scale and all colors by layer.
Remember, if you want your Multileader to be Annotative, you make it annotative here in the Style Manager, on the Leader Structure tab, under 'Scale'. You don't use an annotative block, it won't work.
Guess who tried it? Right in one! So when I tell you it won't work, you can believe me.

Here are my custom Multileaders, inserted through the viewport and all scaled perfectly. I added more leaders to one of them to demonstrate that a custom block multileader style has all the functionality of the ones that come with AutoCAD.


I couldn't resist changing the layer colors per viewport, just so the electrical would stand out more in that second viewport. While in Paperspace, I clicked inside that viewport, opened the Layers Manager and changed the colors in the "VP Color" column. Here's a picture so you could see which ones I changed and how they're highlighted when you do change them.


I hope this was helpful - you can use the new Multileader functionality in 2008 and you don't have to give up any custom keynote blocks you're already using.
Keep cool until next time!

Monday, July 16, 2007

Feature Line Labels

So, you have a feature line that you would like to label and you want to see the elevations of the verticies. Well, I've got good news for you. You can create a general line label style that can do that.

First thing you'll need to do is create a label style. The general line label styles are found on the Settings tab of your workspace -> General -> Label Styles -> Line. Right click on Line and select New...


Give your new label a name. In this example, I'm creating a label for the end of the line so it's called "End Elevation" (original, I know). On the layout tab, go ahead and remove all the components (select the component name and hit the red X) so we are starting with an empty style.

Now, let's go ahead and build the style. If you've looked at the anchor components, one thing you'll notice is there is no apparent way to attach a piece of text to anything other than the anchor point; which is the middle of the line. Well, we can get around that fairly simply. What we need is a component that goes from the start point of the line to the end point of the line and the component that does that is the direction arrow. So let's go ahead and add the direction arrow to our label.


A couple things to keep in mind. First, we don't want to see the direction arrow, we just want to use it so make sure to set the visibility to false. Second, we want the direction arrow to go from the start of the line to the end of the line so make sure the fixed length is also set to false. Now that have the start and end points of our line, via the direction arrow, we can attach text to them.


A couple notes on this component. We want the anchor component to be the direction arrow and the anchor point to be the end. This will place the label at the end point of the feature line. Now, we need to compose the text value of our lable. Click on the ellipses (that's the three little dots) in the value cell for the text contents to bring up the Text Component Editor.



For the text properties, we want to use the General Segment End Z, format it how ever you like, and then hit the blue arrow to insert it into the label. That's all there is to it. You've just created a style to label the end points of your feature lines. You'll probably need to repeat the process to create a label for the start point, as well as labels for the start and end of curves. Now, when you want to add the label, simply go to the General menu, Add Labels... and select Line and Curve for your feature and the styles you just created for the label styles and away you go!

Tuesday, July 10, 2007

What? Me use Sheet Set Manager?

I've noticed a disturbing trend in the classes I've been teaching recently. Apparently, not many engineers out there are using the Sheet Set Manager in AutoCAD. In my humble opinion, this is by far the best thing that came out of AutoCAD 2005. If you look through the help file, you may find yourself thinking, "Yeah, so it can help me open, plot, and create sheets. Big deal!" These things are nice but the real beauty of the Sheet Set Manager is the fields.



Let's look at a for instance. Say you have a set of drawings that consists of 100 sheets. That's a big set but not too extravagant in this day and age. Now, you've set aside sheets 3-8 for the surveyor's plat and you've gone out and created the rest of your sheets. The day of the submittal roles around and your surveyor forgot to mention that he had to add an additional sheet to his plat. Oh great! Now you have to go open all 90+ sheets to renumber them. Not if you are using Sheet Set Manager.


The way to set this up is to have the piece of text in your title block that displays the sheet number consist of a field. In this example, the sheet number, the project name, number, and address are all fields that are referencing the sheet set. To create these fields, simply edit the text, right click where you want the field to be, and select "Insert Field..." The dialog box for creating the field has a lot of different options (I use this for labeling my labeling my assemblies as well but that's a topic for a different post).


The field you'll want to use to get the sheet number in your title block is CurrentSheetNumber. Set your Field Catagory to Sheet Set and then under Field Names: select CurrentSheetNumber. Now, whenever your sheet number changes in your sheet set, the drawing will reflect that value. The nice thing is, you don't even have to open any of the drawing to make this change. Simply open the sheet set, right click on the sheet you want to renumber, select Rename & Renumber and away you go. The next time the sheet is opened (even if through publishing) the sheet number will be updated.


Now, back to our example, the surveyor added another sheets and now you have to renumber them. Well, since you're using the Sheet Set Manager, simply open the sheet set, runumber the sheets, and your done. Shouldn't take more than a few minutes to do this.


You can use this for other things as well, such as the sheet name, project number, client information, etc. but there are other (possibly easier?) ways to handle that information.


As a last word, if you aren't utilizing the power of the Sheet Set Manager, you really must learn it. It's definitely a huge time saver!

Monday, July 2, 2007

Saving Back with Annotative Styles




I received a question about what happens to these annotative objects when you have to send your drawing to someone with an older version of AutoCAD. A really good question, and one I'd want to know the answer to before I started making all new styles of text and
dimensions. Happily, the answer is short and easy.



Here is the example drawing I'll be using. I made some text and dimensions that only had one scale, and some that had several. Then I saved it back to a 2004 type file, and went and opened it in AutoCAD 2006.

As you can see, when you look at all the viewports in paperspace, it's almost perfect! The only thing you lose is the layer color or linetype per viewport. But everything is showing only in the viewports it's supposed to, and at the right scale.


You can see why - AutoCAD copied my layers and added the appropriate scale factor to the layer name. How clever is that? You can also see that the correct layers are frozen per viewport - so it all works, and someone can view your drawing in an older version. (by the way, if you save as an older version and then just open it in 2008, it doesn't do this. It looks just the same.)








The next logical question is, "What do these annotative objects become? Can I still edit the text, or change a dimension?"
In Model space, you can see everything all at once, so it looks a little confusing. When you click on an object that had several scale factors attached to it, you'll see that each size is there and they're all one object -they've been made into a block.



In the example, I exploded the block and it turned back into two dimensions. Instead of creating new dimension styles, Style Overrides are added. I chose both dimensions, did LIST, & took a picture of this so you could see it. (notice the dimscale)





Hopefully, this will increase your confidence in using the new annotative text. You can save back to earlier versions and still work with the objects formerly known as Annotative.

Monday, June 25, 2007

Getting Annotative Objects Right!

We're back from our 2008 Roadshow, demonstrating the new features of AutoCAD 2008 in Denver, Frederick, Cheyenne, Colorado Springs and Pueblo. It went very well, thanks to all of you who attended. In the fall we're traveling to the western slope to demonstrate out there.

I promised to talk a little bit more about Annotative Objects, so here we go.....

This time let's look at some of the pitfalls that can come upon you when adding Annotative objects from Model Space.

First of all, the best practice is to set the scale at which you want your annotative object to display right away, before you start the command. Even though you'll get a reminder screen asking you to set the scale, it's happened to me more than once that the text I put in there doesn't get the message and winds up still showing at 1:1 (meaning 1/8" tall in this example, whatever you set as the Paper space text height in the text style). If I go to add or delete scales, I can see that it thinks it's displaying at 1/8"=1', but it's not. So it will be a good habit in 2008 to always check the bottom right of your status bar before you put any annotations in. This will be on the test, so remember it.

Just in case you forgot AutoCAD 101, the status bar is that very thin bar at the bottom underneath the command line, where you turn off DYN and turn on POLAR.




I added some annotative dimensions after setting my scale to 1/2"=1'-0" on the status bar. Looking at this drawing in Paper space, you can see that the text is showing in the correct viewports and everything is the right size.





Here is where the errors will occur:

These two buttons are the ones you have to be careful of. In this picture, they are both 'off''. They both represent system variables, one on the left toggles whether all annotations are visible, or only the ones of the current scale. The command is actually ANNOALLVISIBLE; when set at 0, only the annotations of the current scale show, and the little lightbulb on the icon is dark. When you toggle it, that sets it to 1, and you can see all the annotations of each scale, as in the following picture.






The other button, on the right, is ANNOAUTOSCALE, and it can be set to a negative or positive number, to add quickly another scale to your annotations.

For example, I need another viewport with 1/4" scale, without the existing note & dimensions. Just to show you what can happen when you have the right side button on, (showing the lightning bolt symbol 'on', or yellow), I turned that on (changing the setting from 4 to -4) and in Model space, changed the annotative scale to 1/4"=1'-0". Immediately it added that scale to all my existing text and dimensions.

This was not exactly what I had in mind!

So be careful of that last little button! If it's on, and you just switch over to a different scale setting to see how things look, you could add that scale to every annotation you have.

There are 8 different setting for this system variable:

1 Adds the new scale to all annotative objects except those on layers that are off, frozen, locked or set to Viewport Freeze
2 Adds the new scale to all annotative objects except those on layers that are off, frozen or set to Viewport Freeze
3 Adds the new scale to all annotative objects except those on layers that are locked.
4 Adds the new scale to all annotative objects

-1, -2, -3, and -4 Do not add the new scale, and they all return the setting back to their corresponding positive number if you just toggle it. Make sure you look at the command line to see which setting you've got when you use this button!

There's a very old saying, "Forewarned is forearmed". I'm hoping that showing you how these two buttons work will help everyone avoid frustration and encourage you all to use the wonderful new annotative objects in AutoCAD 2008.

See you next time!

Monday, June 18, 2007

Change Vault Storage Locations

Often times, system administrators do not want to store the vault data on the root drive of their server. Sometimes, the drive just isn't big enough or some other reason. Setting the storage location for the file store and database of a vault can be changed to any location on the network.

To change this location for an existing vault, ADMS Console 2008 and log in as an administrator. Right click on the vault that you want to move the database for and select Detach. This will remove the vault from the console but will not change any of the database or filestore files. Now, simply move the files to the location you want. The database files, by default, are located in C:\Program Files\Microsoft SQL Server\MSSQL$AUTODESKVAULT\Data. Simpy move the files that start with the vaults name that you detached to the desired location. You can also move the filestore as well which by default is located here: C:\Documents and Settings\All Users\Application Data\Autodesk\VaultServer\FileStore.

Now that they are moved, you simply reattach them to the console. In the ADMS Console, right click on Vaults and select Attach. You'll be given a dialog box that will guide you through selecting the files and locations and that's all there is to it.

Wednesday, June 6, 2007

New Annotative Dimensions in 2008



Annotative Dimensioning works pretty much the same as Annotative Text, but while playing with it I've noticed a few things that can be a little confusing.

( a little confusing?)

So hopefully after reading this, some of the fog will clear away, and this new feature will make your life as much easier as you were anticipating. No more extra layers for every viewport scale!! No more worries about forgetting to turn off or on the correct layer per viewport!
To create an annotative dimension style from an existing style, do the usual steps to create a new style, and start with one you use all the time. In your Dimension Style Manager, on the Text tab, the text height will be the height you want it to print in Paper Space. On the Fit tab, where you have always put in the scale factor there is now a choice for Annotative. Just check that box and there you have it, a new annotative dimension style.



A little note about naming these styles - the new annotative symbol shows up in the Styles toolbar pulldown list in front of the style name, so you'll know right away whether you're choosing an annotative style or not.
The Style name doesn't have to have the word "annotative" in it - kind of nice, since those style names can get too long to see in the pulldown







The easiest way to have your annotative dimensions always turn out right is to create your viewports and set them to the correct scale first. Now you can lock your viewport from the status bar, with your viewport selected just click on the padlock on the status bar.

Next, use the Maximize Viewport button - also on the status bar - and then you're in model space, as if you jumped through the viewport. You can pan and zoom all you want and it won't change your viewport scale - even if you forgot to lock it. Add your dimensions, and then use the same button to go back to paper space.


Now I've added a new viewport scaled to 1/4" = 1'-0", but notice you can still see the 1/8" scaled dimensions. If you've done this, you might have thought they don't work the way you want them to - not so fast! Look at the bottom of this picture and you'll notice the annotation scale doesn't yet match the VP scale.






It's a simple fix - with the new viewport selected, click on the Annotation Scale flyout, and set it to the proper scale - zip zap zowee, all those dimensions go away. Notice also that the text is now the same height in both windows.










I used Maximize Viewport to go in and add a couple dimensions I want in my 1/4"=1' scaled window. All my dimensions (and text) will print out the same size on the paper! Yeeehaw!*






But what if I want a certain dimension to show in more than one window? There's an easy way, and a way that can really mess you up.

The easy way is to click into the viewport where the dimension already shows, so you're in model space. If you locked it, no worries about messing up your scale! Select the dimension you want to add to a differently scaled viewport, right click, and find "Annotative Object Scales", and then "Add or delete scales." Choosing "Add" will bring you to a dialog box showing all the scales available. Click on the one you want, in my case 1/4"=1'-0", and immediately it shows up in the viewport with that scale.
This is cool beans.





Next time I will show you the way to add more scales to your dimensions and text that can really mess you up if you're not careful! Maybe the title should be "How Not to Use Annotative Annotations".


*Ok, I'm sorry for the yeehaw. Last weekend I brought my son to Nashville for Dukesfest, a car show & reunion for fans of the Dukes of Hazzard TV show, and there was a lot of Yeehaw-ing going on. It was really fun, I have to admit.