Friday, December 18, 2009

Missing plot styles...

I am sure this has happened to you a time or two. You go to plot a file, usually one you got from another office or agency and when you go to pick a plot style you see no plot styles or maybe just e a few plot styles. This could mean a few thing. If no plot styles show up at all then it is probably a lost network connection and the file is fine. If you you see a few plot styles that don't look familiar, take a closer look. If you see the plot styles end in .stb instead of .ctb it means the file you are in is set up to use plot styles.

I won't get too much into the details about these settings, but to convert or "FIX" just type

CONVERTPSTYLES

This converts the file from a style dependant plot file to a color dependent file. Here is some info from the AutoCAD help file (do a search for CONVERTPSTYLES)

"CONVERTPSTYLES converts a currently open drawing from color-dependent plot styles to named plot styles, or from named plot styles to color-dependent plot styles, depending on which plot style method the drawing is currently using."

I hope this post helps you guys

Thursday, July 16, 2009

I have let this blog slide a little, but here are a couple quick tips

The first little tip I wanted to let you guys know about is a tool that I recently found reading though another CAD blog. It is the SETBYLAYER command. I have no idea how long this has been around but man do I wish I had this 8 years ago.

What SETBYLAYER does is takes objects and blocks and set all its properties to By Layer. This tool shouldn't get a lot of use but every so often you find a block that has the color set to a specific color and you can't change the color for the life of you unless you the blocks. With this command you just type SETBYAYER, select the block(s) and hit enter a few times and BAM... done. It is very helful on files that were converted from Microstation that have cells that were converted to blocks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Next command i wanted to share is TEXTTOFRONT. It isnt to hard to figure out what this command does. It brings all the text to the top of the draw order... BAM!

Wednesday, March 18, 2009

Hatch Pattern Too Dense... WHAT?

Have you ever tried to hatch something and got the "Hatch Pattern Too Dense" error and wonder what the heck? Basically, there is a setting in AutoCAD that controls max number of elements a hatch can create. The default value is set to 10,000. To make sure you don't get this error again copy and past the following into your AutoCAD command line....

(setenv "MaxHatch" "100000000")

This is a LISP command and it is case sensitive, so if you are typing it make sure you type it exactly as it appears above.

Tuesday, March 10, 2009

Where is my dialog?

What is FILEDIA? Well, it is a system variable that controls weather or not commands bring up the dialog box. I am sure this has happened to a few of you guys and gals. You click the open or save button and the dialog box doesn't open but instead it asks you to type in the file name... WITH THE WHOLE PATH!!! WHAT!!!! I know a few of you who couldn't fix it ended up typing out the entire part.

First, to fix this all you have to do (usually) is type FILEDIA and set it to 1. Now everything should be set back to the way they should be. Another variable that might control this is CMDDIA. This should be set to one also, unless you like typing everything out.

I used to deal with this happening a lot with Land Desktop, usually when trying to set an alignment current. What happens is a lisp routine that switches the FILEDIA to 0 got interrupted and FILEDIA never got set back to 1. This happens when you start a command and then half way through you hit the Esq key to get out, usually about 20 times because you realized that you could mess things up.

If this post helps one person out I will feel as though it was success.

Monday, March 2, 2009

Hatch Origin

I am sure this has happened to everyone. You go to do a concrete hatch (AR-CONC) of an area and the hatch looks like this....


Now, this doesn't quite look the way you expected it to. The concrete pattern doesn't have the closed triangles. To test it out you go to another drawing and you get a correct hatch...



Now why does this happen? If you want me to bore you with why this happens go ahead and e-mail me and I will try my best to explain it, but basically it has to do with the base point of the hatch pattern. This is the origin of the pattern. The farther away from the origin of your drawing (0,0) the more likely your hatch will come out a little out of whack. Usually this happens when you are working on something that is based on GIS coordnates and your X:Y is 6,000,000:6,000,000 and the hatch origin is at 0:0

Before AutoCAD 2005 there were some lisp routines to fix this or you could type SNAPBASE and pick a new base point. Now (since 2006+) it is built into the hatch command (and the hatch edit command). In the lower left corner you will now see the hatch Origin options...

For the best results I recommend checking the box "Default to boundaey extents" box. Doing this will pretty much give you consistent results.

Well, good luck!

Thursday, February 26, 2009

CAD usergroup AFTERMATH!!!!

We had a good user group meeting yesterday. I think it went really well and it could have gone on for another hour easy.

Lineweights
The first thing we touched on was AutoCAD lineweights for the Willdan CAD Standard. With the new standards being developed we want to use object/layer lineweights to control plotted line thickness instead of the using color to determine plotted lightweights. Also, we want the ability to plot full or half scale using the same pen table.

AutoCAD comes with 24 lineweights but with a 400 DPI plotter like the Xerox 510 there are about 11 of the different plotted lineweights. For example, a lineweight of 0.13mm plots exactly the same as a 0.20mm line. With a 600 DPI plotter there are a few more but it is basically the same. I have gone though these lineweights and found six lineweights that can represent all our plotting needs and have the ability to be scale in half to create legable half scale plots.



0.18mm will be a zero weight line, the reason we dont use a smaller lineweight is that when plotted half scale

0.35mm is similar to a weight 1 one in Microstation and will be used for text and call outs.

0.50mm and 0.70mm will be used for proposed linework. For now these two are interchangeable. They do plot different but the 0.70mm lineweight plots better on half scale plots, but both are acceptable. The standard template use the 0.70mm lineweight.

The final 3 lineweights (1.00mm, 1.40mm, and 2.00mm) are there for any other need for thinker linework. Do not vary from these lineweights because half scale results may not result in an acceptable plot.

These changes have been incorporated into the CAD standard document that can be downloaded here "Willdan CAD Standards rev 0.3". Refer to page 21-23 for lineweights.

Drawing Template and import of Layers
I have updated the AutoCAD templates on the Anaheim server. If you are not in the Anaheim office and want to use these templates you can get them on
(\\soc-dc1\config\ACAD CONFIG\Templates)
or
e-mail me and I can send them to you.

I have also created another way to bring in layers into a drawing using the Tool palette


These Tool palette commands will import the layers, color, linetype, lineweight, and descriptions with basically a push of a button. These tools need a little more work and only work in the Anaheim office, for now. I also need to study up a little more on AutoLISP to get them to work perfect, but for now if you are in the Anaheim office and need to bring in the annotation layers you now have a tool. Some setup in your options need to be set but it is easy.

System Variables for Linetypes
With the new annotative scale (AutoCAD 2008+) there is a new system variable that tells linetypes in model space to use the annotative scale to adjust the appearance of linetypes.

MSLTSCALE (system variable)
This variable scales linetypes displayed in model space by the annotation scale
0 - Linetypes displayed in model space are not scaled by the annotation scale
1 - Linetypes displayed in model space are scaled by the annotation scale

The preferred method to get linetypes to display properly is to set all the following variables to "1"
MSLTSCALE - scales linetypes displayed in model space by the annotation scale
LTSCALE - sets the global linetype scale factor
PSLTSCALE - controls linetype scaling of objects in paperspace viewports



This works for linetypes that need to adjust when different scales are used but do not work with linetypes that need to stay the same size at all scales, like lane lines.

Related links
Willdan CAD Standards revision 0.3
Layer Name Format
Layer Codes (based on National CAD Standard)


Wednesday, February 18, 2009

CAD Usergroup meeting Feb 25th

It has been a while since we have done our CAD user group meetings and it is time to get them going again. The next one will take place Wednesday February 25th. If you didn't get an invite and want to come feel free to e-mail me at rshadowen@willdan.com and I will add you to the list. I need everyone to RSVP by Tuesday

Here is an agenda. I hope we CAD hit everything...

Discuss CAD standards

I have made some updates to the CAD Standards manual I have been working on. the main upgrades have to do with lineweights. For the most up to date PDF of the CAD manual, copy and paste the following link into explorer.

\\soc-dc1\config\Willdan CAD Standards\Willdan Anaheim CAD Standards_rev 0.3_.pdf

Annotative elements and Linetypes

In the last two releases of AutoCAD they have introduced annotative scales. I believe we can take advantage of this new feature. Plus get into some of the system variables that control how linetypes appear

AutoCAD 2009 interface changes

AutoCAD 2009 looks quite a bit different than older version. Don't be scared, it does all the same things, they just might be in different places. Also, some of the tools have got upgrades, I will try to show as many of these as I can.

Hope to see you next Wednesday

Monday, February 9, 2009

Profiles.... USE THEM

Once thing I have noticed recently, especially after everyone made the upgrade to 2009, is that almost no one is using Profiles. Your Windows profile is what defines (and remembers) your background wallpaper, your screensaver, icon locations, etc. AutoCAD basically has the same thing. AutoCAD saves your user interface (menus, palettes and toolbars) and other various preferences like, background color, layout color, crosshair size, etc. in a profile


Hopefully 99% of the time you never will have to mess with your profile and you can just draft away at your hearts content. BUT… it is that 1% that can ruin your day. For some reason you open up AutoCAD and everything is out of whack. Your background is white, you go to plot and none of the plotters or pen tables show up, and other, none of your fonts look correct. I am sure AutoCAD has done this to you and most of the time something went screwy with your options. Now, if you have a profile and made a backup of this profile, then you can get it fixed with a few click. If you didn’t have your profile backed up, well then, you will spend the next few hours getting everything back to the way you had it, and you will never get it back exactly the way you had it.


This is what I recommend. Once you are in AutoCAD, go to your options…
Command Line: OP or OPTIONS
Right-Click command line and select Options…

Menu>Tools>Options




Click the “Profiles” tab at the top


Click the “Add to List…” button



Name the profile your name and maybe put the version of ACAD at the end.


***Set the new profile current***

Either by double clicking or highlighting and clicking the “Set Current” button


Now, everything you do to your options will be applied to your current profile.

Once you have everything set, then Export your profile to a safe place. I don't mean in the My Documents folder on your workstation. I mean to a safe network location, floppy disk, jump drive, R drive, or even save it locally and then email it home.


To Export all you need to do is choose Options and then the Profiles tab. From there you will see a button on the right for Export. This will create an .arg file. Name the file the same name as your profile, not the name of the file. This will make it easier to fine down the road.

Now if things get messed up, you can just go to your options profile tab and click the import button and bring in your backed up profile and save yourself the headache of setting everything up again.

In the future I will show ways to have AutoCAD stat up using a specific profile (either local or on the network) and even having multiple profiles for different jobs or tasks.

Friday, February 6, 2009

CAD oriented BLOG for Willdan CAD users

Hey Guys,

I have a bunch of little tips and tricks I have collected over the years. I thought it would be a good time to start a blog and share these tips with everyone plus it is a good way to archive them.

So I will start this first post of with a few quick tips for ACAD 2009 since our office got everyone upgraded to 2009 this week.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Hey, where did the menu bar go?

You might notice that all the file pull downs across the top are gone (File, Edit, View, etc...) They are still there. You just have to click the big A in the upper left hand corner. A little different, but they are all there. If you want them they way they used to be without switching your workspace to the classic view, which will get rid of all the cool new ribbon functionality, they just enter the following system variable at the command line


MENUBAR (system variable)
0 = no menu bar at the top of screen
1 = menu bar back at the top of the screen


OSNAPZ (system variable)
0 = default, give you the true distance between using the Z-value of the specified point
1 =Osnap substitutes the Z-value of the specified point with the elevation (ELEV) set for the current UCS

I know this has happened to you. you measue from the centerline to the topo curb line and you get a distance of 1400'. You realize that the centerline is drawn at a Z of zero but the topo lines are at elevation. So if you sent OSNAPZ to 1, you will get a distance in XY dirrection as if everything is at the same elevations.


You can Right Click on the command line to see a list of recent commands


TASKBAR (system variable)
0 = (default) displays only the name of the current drawing on the Windows taskbar
1 = display multiple open drawings as separate items on the Windows taskbar


SETBYLAYER (command)
This is a command to set any object back to bylayer. Including blocks and the elements within the blocks.... BAM!!!!


LAYDEL (command)
ever get that layer that just wont go away. Use LAYDEL to get rid of that layer. Just make sure these isnt ANYTHING you need on that layer still. You might want to backup the drawing before you do this command.


TEXTTOFRONT
(command)
Bring all of the text to the top of the draworder


TXT2MTXT (express tool)
converts single line text to multiline text. You can select multiple text objects and it will join them together into one multiline text object.