Showing posts with label AutoCAD 2009. Show all posts
Showing posts with label AutoCAD 2009. Show all posts

Friday, April 3, 2009

Another Way to Save Customizations

Hello again, I hope this note finds you all in a good mood. Here in Boulder it's a beautiful sunny morning, but we're supposed to get another snowstorm tonight that could continue into tomorrow. At least tomorrow there won't be as many people who have to get to work, so there won't be as many idiots - those who refuse to slow down! - sliding into the ditches.

I think you'll like this little tip. I have explained previously about saving your .cui file, and how that's where your custom settings live. Well, that wasn't wrong exactly, but I found out there's a better way, thanks to the Techs at Autodesk.
Have you ever noticed that when you install a new version of an Autodesk product, a message pops up telling you it noticed you have a previous version and would you like to migrate your custom settings?
I love how computers can be so polite.
What I found out was that you can use that function at any time, to save any custom settings you have. It's better and safer than depending on your acad.cui file to keep any custom toolbars safe. How this came about was a man called who had copied his .cui file from one computer to another and lost his custom toolbar names. They were still there, only it was hard to find them, and they were renamed "Toolbar 1","Toolbar 2", and so on.

So, here's another way to save your custom settings and avoid the problem this gentleman came up against.

In your Start menu ( sorry I don't know where to start in Vista, but if you've gotten proficient at using that OS I bet you'll be able to figure this out) go to All Programs, then find Autodesk, and then whichever version you customized. Notice the menu in the picture. From here you can both save your custom settings by exporting them, and you can import custom settings from previous versions.


You'll get this little warning, as shown on the right here. Notice that you can choose to save settings that 'live' on your network.


Doing this creates a .zip file, just pay attention to where you save it!



Then some day when you want to restore those settings, just reverse the process. Go to the Start menu as before, and in the Autodesk program you want to import to, select "Migrate Custom Settings". Browse to the zip file you created earlier, and it imports them.


At the end you get a report of what was installed and what doesn't work. I had a few error messages, mostly that access to the font files was denied, and then General Information and Migration Details.
This is a better way to have all your custom toolbars, icons, etc, safe and in a way that you can surely get them back again. The thing about this that I never thought of before is that you can use it to save and move custom settings from one machine to another, besides the normal function of using it to migrate custom things from one version to another.


Have a nice Spring day! I hope the weather is getting nice, wherever you happen to live. And for anyone who lives south of the equator - enjoy your Autumn. It's my favorite season.

Tuesday, March 24, 2009

Putting Annotative Objects to Work

Yesterday I did a review of how to create Annotative Styles, in Text, Dimensions and Multileaders. It's pretty obvious that these styles are worse than useless if you don't know how to use them, so let's get right into that.
You can put Annotative Dimensions, Text and Multileaders in your drawing either in Model space or Paper Space through a scaled viewport. The benefit of putting these objects in through a viewport that has already been scaled is that you are already sure what your viewport scale is going to be, so you don't have to wonder. Also, you won't forget to set the scale, which frequently happens when adding Annotative Objects while in Model space.
That being said, most people I talk to put their notes and dimensions on their drawing long before they get it set up to print, so we need to look at both ways of doing this.

In Model Space, before you add notes or dimensions, choose the scale at which you want these objects to plot. In the lower-right corner of your screen, on the status bar, you can see the current scale. If you've never changed it, the default is 1:1. In the picture I've selected the flyout arrow, my current scale is 1/4"-1'-0", and I'm about to change it.


Notice the little button to the right of the Annotation Scale button. It is the Annotation Visibility button, and it controls whether you can see every Annotative object (ON) or only the ones that have the current scale (OFF). When you click this button, the light bulb changes from lit up (on), to dark grey (off), and on your command line you'll see
Command: ANNOALLVISIBLE
Enter new value for ANNOALLVISIBLE <0>: 1

If you prefer, you can type that command in, so then you need to know that 1=On, 0=Off
Take a look at these pictures, and notice how in the one with the light bulb icon 'on', you can see dimensions and notes of different sizes, but when the light goes dim, you can only see Annotative objects that have the current scale assigned to them:







In this next picture, notice how it looks when I leave the light bulb off and change the current scale in the list.





All the Annotative items created at the scale of 1:10 no longer show, and the ones with the 1:20 scale assigned to them are now visibile.


If you need certain Annotative objects to show in more than one scale, there are several ways you can make that happen. My first choice when I'm in Model space is to select the objects to which I want to add a scale, right click, and select either "Add current scale" - that's pretty self-explanatory - or select "Add/Delete Scales". You can add one or more scales to all the annotative objects you've selected.


As you can see from the picture above, they can be different types of objects and it still works. After you do this, these will all show up in any viewport that has that scale assigned to it. From this same menu, you can also delete any assigned scales. The Delete button is right below the Add button.


Another way to add scales to Annotative objects is with the ANNOAUTOSCALE command. It's the button in the picture - but be very careful with this button! If you have this on, as it looks in the picture, and you change the scale showing on the status bar, it will add the new scale to EVERY Annotative object you have! Everything, even if it's on a frozen or locked layer.


See the mess I made with this button! The Dimension layer was frozen, and the Notes layer (red) was locked. Thanks be that there is an "Undo" button!!



Another way to create Annotative text, dimensions or multi-leaders is to first set up your sheets, create the viewports you need, set their scales and lock them. Then on your layouts, double-click inside any viewport to put yourself in Model Space. When you put notes or dimensions in your drawing this way, they automatically are created at the proper scale.
In this last picture, the Annotative text, dimensions and multileaders were put in through the viewports. You can really see the benefit of using Annotative text (I HOPE!) because even though these viewports are at different scales, the dimensions in each one print out at the same size, as do the room names. You may notice that the room names have two scales assigned to them, so they show up in both viewports. Nevertheless, I was able to adjust the position of each word so it fit in the room.


I truly hope this was helpful to someone out there who is trying to figure out how to work with Annotative Objects!

Monday, March 23, 2009

Annotative Objects Revisited

Since Annotative objects became part of AutoCAD in the 2008 version, there have been some changes, mostly simply in how it looks when you're using them. I'm going to go through the basics again of how to use annotative text, dimensions and leaders ( called Multileaders now ). In my humble opinion, this was the best thing to come out of the 2008 release. If you ever print out your project with viewports at different scales, you will be so happy if you learn how to use annotative objects! This is one problem everyone has been struggling with since day 1. (well, everyone who printed any part of their project at a different scale than the rest of it) But now - Problem Solved!
First of all- Annotative Text, Dimensions and Multi-leaders work best if you create an Annotative Style. Any style you already use can be made into an annotative style.

In 2009 AutoCAD, if you're using the ribbons, on the 2D workspace Home tab there is a panel named Annotation. If you click the flyout for that ( the black triangle) you'll be able to edit or create text, dimension and multileader styles. In the picture I highlighted where you would click on each of those, in blue. (You cannot highlight them all the way I showed here. I did some copy and paste to make it look that way).


In 2008 or 'classic' AutoCAD, you get to the styles in the Format pulldown menu.


You can tell right away when you open any of the style managers whether a particular style is annotative or not.


To make an existing style annotative:

For Text styles, select the style you want to make Annotative. In the dialog box click on the box in front of the word "Annotative". Click "Apply".



For Dimension styles, choose the style you want to change, then select "Modify". Go to the 'Fit' tab, and check the "Annotative" box. Select "OK" to save the changes.




For Multileader styles, choose the style you want to change, then select "Modify". Go to the "Leader Structure" tab, and check the "Annotative" box. Select "OK" to save the changes.

When you're creating a new style, you'd do the exact same thing as above, at the time you are in the process of creating the style.

To create a new text style, in the style dialog box select 'New'. Give your new style a name, choose a font from the pulldown list, check the 'Annotative' box, and click "Apply".

To create a new dimension style, in the Dimension Style manager select 'New' and give it a name in the box that pops up. Go through the steps to choose how you want your dimension style to look, and when you get to the 'Fit' tab, choose "Annotative".

To create a new Multileader style, in the Multileader Style Manager, select 'New', then decide what kind of leader format you want, and whether you want it use Mtext or a block in the Content tab. Then in the 'Leader Structure' tab, be sure to check the box for "Annotative".

Now you've got it!

Not sure what do do with it?

Tune in tomorrow to find out how the Annotative Objects work. Same time! Same channel!

Friday, February 27, 2009

Creating a Ribbon from a Toolbar

Recently when I right-clicked on a toolbar in the CUI, I noticed that I could create a Ribbon right there. I thought that would be a pretty cool way to customize - but there are a few pitfalls you might want to be aware of!

So, to start off I created a custom Toolbar with a bunch of commands I wanted to use all together.

(This is really an easy process. 1. Right-click on the Toolbars node in the CUI. 2. Choose New Toolbar 3. Right-click on the new toolbar to rename it 4. Find commands you want in the Command window at the bottom of the CUI, and drag them onto your new toolbar. 5. If you want separators, like I have, just right-click again on the toolbar and choose "Add separators" from the list)

Once my toolbar was created, I right-clicked on it and chose "Create Ribbon from Toolbar"


Here's my new ribbon - it doesn't look like much, does it? I tried clicking the "Apply" button but it didn't make my buttons show in the preview. If you want a preview of your new Ribbon, close the CUI and then open it again, and you'll see how all the buttons look on it when you select it from the list in the left hand panel.

So the next step would seem to be to assign this ribbon to show up in one of the tabs, right? Right! That's just a simple matter of finding your ribbon in the list of ribbons, and dragging it up onto whichever tab you want it to show up in.

Once you drag a ribbon in to one of the tabs, it will show up in that tab no matter which Workspace contains that particular tab.

You can right-click on any ribbon panel and uncheck any panel from the list, if you don't want it to show. That setting would be saved per Workspace.

In order to see your new ribbon, close the CUI, and make sure to select the correct tab.
What you'll notice right away is that the ribbon you created from the toolbar has all small buttons. I spent a lot of time trying to change the button sizes, and what I found is, you just can't. If you create a custom ribbon from a custom toolbar, even if you go into the properties of the buttons of that ribbon, and make them "Large", they just don't change. Not on my machine anyhow!! I tried over and over, NOTHING.










However, when you drag a command onto a new or existing ribbon, you then can determine it's size. It's one of the settings in the panel on the right side. So if you create your own custom ribbons from scratch, you can set the button size.
Have fun customizing! I'm enjoying playing with the ribbons in the 2009 interface, I hope you are too.

Wednesday, January 21, 2009

Disappearing Ribbons

I received a question from Filipa from Portugal about what to do when the Quick Access Toolbar disappears, and I've had it happen too. In fact, I've opened AutoCAD 2009 and not had any toolbars show up! It kind of throws you off balance when that happens, but usually it's an easy thing to fix.
The first thing to do is open the CUI, and the easiest way to do that is to type CUI (and then of course hitting the Enter key) on the command line. In the upper-left panel, you'll see the word ACAD. Click on that, and right-click. You'll see a choice in the menu to Reset ACAD.cui. Pick that, and everything should reset itself to the way it's supposed to be.

If there's something terribly wrong, you may need to do a repair of your software. This is also quite easy. From your Start menu, find the Control Panel, and once you're there, select "Add and Delete Software"
You're not going to Uninstall at this point, so don't worry!
Find your Autodesk application in the list, once it eventually finishes populating itself.
Select the "Change/Remove" button. (I know it feels like you're going to lose your program, but you won't accidently delete it, so stay with me here.) That button brings up the menu pictured here, the Installation Wizard. Choose the Repair or Reinstall button, and it will repair most program errors - just like that!

As long as we're on the subject, I wanted to mention something about the .cui file, and avoiding possible problems. There are two things I always do before I start modifying any toolbars or workspaces or anything else. First I make a copy of the acad.cui file (and the same would go for any other Autodesk product, only the name would change, depending on what you have. Like you didn't know that! I apologize for stating the painfully obvious) I know there's a backup file, but I just like to save one in a completely different location.

If you don't know where your acad.cui file is stored, go to Options and pick the Files tab. In the Customization folder, you can see the path to where your program is looking for the .cui file. This is also where you would change it if needed - if the file you've been using becomes corrupt there is a file named acad.bak.cui in the same folder as the acad.cui file. You can browse and point to that file if your acad.cui gets corrupted somehow. Or you could do a "Repair" as outlined above.

The second thing I always do is save a copy of my Profile. (This doesn't exist in AutoCAD LT, so if that's your software, just skip this part.) This is done in Options, on the Profile tab. I usually make a copy of my profile right out of the box, and another after I've got things changed just the way I like them. That way, if I lose something or on the practically unheard of chance that I might mess something up, I can set my backup profile as the current one.
Both of these precautions have a drawback - you lose all the customization you did after you saved the backup copy. However, if it's a matter of your program not working at all versus not having a few favorite tools, I'd rather be set back to my original install than not be able to work at all.

And of course, there's nothing preventing you from making new backup copies of your .cui file and your Profile once you have them fixed up the way you like. Better safe than sorry, like my Grandmother would say.

Wednesday, January 14, 2009

Building Dynamic Blocks

I have been working on a custom class called Advanced Blocks, it'll have elements from level 2 & level 3 classes. In that class I'm going to be showing people how to add attributes to blocks, how to extract them, and how to add Dynamic functions to blocks. With this in the back of my mind, I was looking through my archives and I realized that I haven't written about Dynamic Blocks yet.

So let me start out with something easy, and you can build on it from there. You could even call it building blocks...

When you first create a block, there is a an additional checkbox marked "Open in Block Editor", it's only been there since AutoCAD 2006. (I mentioned the block editor when I wrote about how you could edit blocks in AutoCAD LT without exploding them. Creating Dynamic Blocks is actually the original intended use for the Block Editor) Anyhow, check that box and as soon as you hit OK you'll be inside the Block Editor.

I drew a triangle with a circle on top of it and made that into a block, just for something to work with that was simple enough that you all could imagine it being something else, something you could use.

To give a block Dynamic Functions, and that cool lightning bolt in its preview, you need to add a Parameter, and to that Parameter you add an Action. That's about it, really. Let me show you with my simple shape here.
I chose the Parameters tab of the Dynamic Blocks Palette, and from the list I picked " Flip Parameter". Inserting this Parameter is a 2-click process. On my block I picked the edge where I want it to flip, and then picked directly above it to determine the direction it would go- in this case, my block will flip on a vertical axis. If I had picked a point to the right or left, the triangle would have flipped up and down.



The next step is to add a Flip Action to the Flip parameter (these two work together). Select the Flip Action from the palette; your command line will tell you to select a parameter. The Parameter is showing an exclamation mark until you give it an Action, so it's kind of hard to miss. Once you pick it, you're prompted to select the objects you want to flip. In this picture I'm selecting the 2 triangles. Then you just need to place the action someplace near the flip arrow.

Next, I selected the Parameter and opened up the Properties Palette. Under the Heading "Property Labels", I edited the Flip Description to read "Triangle Flipper". Whatever you type there is what you'll see when you hover over corresponding grip, in this case the flip grip.


I usually save and close the block at this point, and test it out in my drawing. It works!






Now, just for fun, I'm going to make that circle on top scalable, as if it might need to be adjustable. I double-click on the block ( that will open the Block Editor) and click OK after I check to make sure the correct block name is in the dialog box.
First I add a Linear Parameter, from the bottom quadrant of the circle to the top.

I'm adjusting it's Properties as you can see from the picture, very similar to what I did with the Flip parameter. This time, however, I want to adjust the Value Set - I set the Distance Type to Increments, the Distance Increments to 0.2, Minimum to 0.4, and Maximum to 1.2. This defines the sizes that my circle can become.


Next I add a Scale Action to the Linear Parameter, the one I renamed 'Diameter'. When I add the Action, I pick the circle when my command line asks me to Select objects, and then of course hit "Enter" to end the selection process.






Pick a spot for the Scale Action to sit, and you're done!

Save, close the block editor, and insert a few of your new fancy dynamic blocks to test them out.
In the picture on the right, I'm showing how the circle size can be adjusted. It works perfectly, just the way I wanted it to!


I hope this give you some idea of how easy it is to add Dynamic Functions to a block, and also that it gives you some ideas of how you could build some of your own. If AutoCAD has a Fun part, I promise you, this is it!

Monday, December 22, 2008

A Little Text Thing

Hi all! Great weather we're still having, eh? Especially all of you poor folks back east!

I wanted to add a couple tiny tips about text, one new for 2009, the other is old but you may not know about it.

In this picture I have an Mtext object, I just made it on Friday when I was showing someone how fields work. There is some text I typed and a Date field, formatted so that every time I saved the drawing, he could see the seconds update, to show just how cool these fields are!
Cool as North Dakota in the wintertime! And you could say that North Dakota is one Big field!
Of course, you could say the same thing about eastern Colorado, or Kansas, or Nebraska, etc, etc.

Today, I double clicked on the text and started to change it. I wanted the note to be different, and I didn't want the field to update any more. One of the new features of the AutoCAD 2009 ribbon is when you're in the text editor, the ribbon automatically changes to a text editing ribbon. If you don't pay attention you might not even notice it.

In the picture you'll also notice that I have Spell-check ON, it's blue. When I misspelled a word, now the Text Editor underlines the word in red, just like most word processing software now. Also, if you right-click exactly on that underlined word, a list of possible words you might have meant to type is there in your right-click menu. (another reason to start using right-click menus!) I purposely misspelled "created" as "creatid" and it gave me "created" which was exactly what I wanted, plus a few other odd words. If the automatic spell-check bothers you, just click the spell-check button to turn it off.

But please, for your own sake, do a spell check before you send any drawings out! It's such a simple thing to do, and you look the opposite of intelligent when you send out documents with misspelled words in them. I'm sure I've done that here in this blog, and I'm sure you've noticed it! Spelling errors stand out!

The next thing I did in the text editor is select the Date field, and right-click. The old thing I meant to tell you about is that you can change a field into text.

If you used a field to get information from an object - or in this case, a certain date - and you don't want it to keep updating, right-click on the field and choose "Convert field to text". That is exactly what it does, so now you have text where there once was a field. You can edit all or part of it just like any other bit of text.





I hope someone, somewhere said "I never knew you could do that!" Maybe someone who is outstanding in their field, even.

Wednesday, October 22, 2008

New Multileaders and Old Quickleaders

It's 3 in the afternoon and I just made a fresh pot of coffee, so I'm wide-awake and ready to roll through the rest of the day. This blog entry, like so many, comes from a problem one of our clients was having. Being the kind-hearted person that I am, I thought I'd be helpful to some unknown CAD operator out there and keep them from tearing their hair out in frustration. So here's my little tip about Leaders...

Last July, I wrote about the new Multileaders, one of the new features of 2008. I still think they're a huge improvement on the old Quickleaders, but there is a wrinkle I ought to have been aware of. When you use Multileaders, if the drawing is opened in an older version, the Multileaders become Proxy objects and might not be visible. ARRRGH!
So...
If you open it in AutoCAD 2007 and earlier versions, set PROXYSHOW to 1.
Here is a link to the official Autodesk solution - Take me to your Leader

This isn't exactly great news if you are collaborating on a project with someone who has 2007 (or even older!) AutoCAD products. What if they have to be able to edit these leader objects? You'll want to be able to insert the old style Quickleaders, right? I'm going to do a little review of how we create a custom toolbar using the Customizable User Interface, so we have a button for our leaders.
By the way, the old Quickleaders can be made to attach blocks, but that's a whole new subject.
For you real old-timers, excuse me, I mean for you very experienced CAD users - you can just type in QLEADER, and it will work like it used to. Quickleaders are visible and editable in older versions. If you're used to typing everything in anyhow, you can skip the rest of this entry. The rest is written for the new people who've just been learning this program, or for anyone who just doesn't feel comfy with the CUI.
Type in CUI, and you'll see the dialog box come up as in the picture here. For an example, I'll copy the dimension toolbar and customize it with the buttons I use the most, and add the Quickleader button on it.
First of all, expand the toolbars and find the Dimensions toolbar, right click on it and choose Copy. Then right-click on the Toolbar heading, and choose Paste. The 'copy of Dimensions' toolbar will show up at the bottom of the list. Click on it to choose it, and right-click to find "Rename". If you're sharp eyed, you'll notice that I forgot to do this step. Oh well...

When you click on the plus in front of the toolbar name, it opens up so you can see everything that is on there. To remove buttons that you seldom or never use, right-click (again with the right-clicking!) and choose 'Remove' from the list of options. It only removes the command from that toolbar, not anything else at all.

To find a command that you want to add to a toolbar, type in as much of the command as you know, and the commands that contain those letters will start being filtered in the list below it. The Quickleader command shows towards the bottom when I type in "leader". When you see the command you want, just drag it up onto the toolbar and place it where you want.

Now, whenever you make a new toolbar, it will appear in every workspace. The easiest way to get rid of it in workspaces where you don't want it is to stay in the CUI, click on each Workspace title in the upper left panel of the CUI, and notice that in the upper right panel you can see what toolbars, and ribbons, and so on, show up in that workspace. If you don't want this toolbar in your workspace full of ribbons, just right-click on it as I did in this illustration and remove it. It's easier to do it this way than to open each Workspace and delete it from there.

AND, you can just as easily add this or any other button to your existing ribbons, if you've become comfortable using them. You do all the steps as above, except you drag the command onto the proper Ribbon, and onto whichever row you want it to show up. Voilà! You just customized the new Ribbon, and it was a piece of cake!