Ad

Saturday, June 30, 2007

Adding a VBA Macro To a Toolbar

  1. Type CUI at the command line.
  2. Press the new command button
  3. Create a new Toolbar
  4. Type in the following format of the vba macro to get it to load and run, notice that the folder separators go in the wrong direction:
  5. ^C^C-vbarun;"C:/Documents and Settings/user/My Documents/Autodesk/PipeNetworkQuantity-0.1.dvb!ExcelExportLengthCount.ExportToExcelLengthCount";
  6. Add an icon and drag the command from the lower left area up to the new toolbar

Thursday, June 28, 2007

Pipe Networks Style Overrides

This is a basic one, but somehow I overlooked it, you can have pipes and structures in different profile views, in the same drawing, have different styles using the Style Override column in the Pipe Networks tab of the Profile View Properties.

Just put the check mark in the box and select the style you want it to be. In 2007 you need to have the style already created, in 2008 the ability to create or copy and edit a style from the command is there.

Wednesday, June 27, 2007

Mapcheck Report in 2008

I told my coworker I was going to post on something else, but I found this new feature too cool to pass up and solves the problem he was having exporting a mapcheck report for multiple parcels. This post is mainly borrowed from the tutorials document on the Autodesk website.

Exercise 3: Exporting Parcel Data

In this exercise, you will generate a mapcheck report for the parcels in the residential road at the top right of the drawing.

In AutoCAD Civil 3D you can export inverse or mapcheck reports for either a single parcel, a series of parcels, or all parcels in a site.

For more information, see the AutoCAD Civil 3D Help topic Exporting a Parcel Inverse or Mapcheck Report.

To export parcel data

On the Toolspace Prospector tab, expand Sites Site 1 Parcels.

In the list view below the Prospector tree, click the heading of the Number column to sort the parcels by number.

  • Select parcels that you need a report for. You can use any of the standard windows methods to select and deselect the parcels.

    In the list view, right-click and select Export Analysis.

  • In the Export Parcel Analysis dialog box, specify the following settings:
    • Destination File: Place it in a place and with a name you can remember the tutorial uses a txt file like this: ExportAnalysis.txt
    • Analysis Type: Mapcheck Analysis
  • Click OK.

The ExportAnalysis.txt file automatically opens in the text editor associated with AutoCAD Civil 3D and is saved in the location you specified in step 5.

No more copying and pasting for each parcel or exporting into another program to get the reports, unless of course you need it in another format.

Tuesday, June 26, 2007

Sewer Lateral Layout

Here is a way to layout sewer laterals with Civil 3D to use as line work in a base file. It assumes you have an alignment at your pipe centerline.

  1. First create a dynamic block or use the one found here.
  2. Add the label to a line and curve label, I have created a sample at the same location in step 1.
  3. Add the label at the locations along the alignment where you want the laterals to go.
  4. Flip any labels to the other side of the line or have two styles on for left and one for right.
  5. Make any adjustments you need to make.
  6. Explode the line and curve labels twice.
  7. If you are using Civil 3D you will need to save, close and reopen the drawing. Civil 3D 2007 crashes when you try to move a grip of the dynamic block. Civil 3D 2008 tends to like this a little more.
  8. Move the grips to the property line or whatever location the lateral needs to go to.

There may be other unforeseen problems, but should save step in rotating each sewer lateral block.

Monday, June 25, 2007

Combining Pipe Networks

To combine pipe networks export the network you want to put into another pipe network to an xml file. Next delete the just exported pipe network and rename the pipe network to the name of the exported pipe network. Then import the xml file back into the drawing. The pipe network will now be combined. This also works with pipe networks in different files.

When you do this make sure the pipes and structures have different names or change them after you do the import. Having pipes or structures of the same name will cause problems in the drawing.

Saturday, June 23, 2007

DWG Version Converter

If you need to open a newer version of software because you are using an older version of AutoCAD you can use DWG TrueView available as a free download from Autodesk (there is even a 64 bit version available). It is also handy to send it to clients or other engineers instead of doing all of the work in converting the files to an older version.

For Civil 3D files you will need to make sure Proxygraphics is set to 1 before sending out for them to see something other than empty rectangles. Also the labels don't rotate to match the paperspace viewport, only rotate per Model Space.

Evan Almighty

Sorry for the rant, but I saw Even Almighty and was mighty disappointed on the viewpoint of the film and the profession I have chosen to do in life.


First the whole dam portion of the plot was ridiculous and totally out of whack with reality. For one a dam is in no way governed by building codes as mentioned more than once in the movie. Dams, at least in the State of California, are governed by the Water Resources, Division of Safety of Dams or the Army Corps of Engineers. While the supporting structures are governed by the building codes, the dam is in no way contained in the building code.


The premise of a Congressman being able to control the building process enough to have a dam of the size shown built shabbily is also ridiculous considering the amount of people involved in the construction of a dam. First you have the agency who needs the dam for drinking water storage or for Storm flow storage. Since most agencies no longer keep a large number of staff on hand an engineering company is hired to design the structure, then you have a Contractor who is going to build the dam. Then you have all of the people who are against dams, regardless of the benefits, that would point out any and all perceived design flaw. Each participant has some liability in the final output (except for the anti-dam people), I could concede that one participant could do the faulty construction, I do not think a Congressmen could pull this off, let alone profit from it. While Civil Engineers are not specifically singled out, the film does shed Civil Engineers in a bad light since it is guilt by association.


My next beef with the film is the impression that development is inherently bad because it occupies land previously undeveloped. All I have to ask is where are these people supposed to live? All these people are are children and immigrants (both legal and illegal). The only way to stop the destruction of natural places is to stop the production of people. I don't think that is a realistic solution to the problem. Another solution is infill in existing cities and towns. Unfortunately this also has problems, since a portion of people are adamantly against this. For instance any development project in the award winning downtown in the city San Luis Obispo, where I work, is derided as not fitting in and potentially destroying the character of downtown. How can this be, since this is how the downtown was created in the first place. The downtown of San Luis Obispo was created by various building dating from the mid 1700 to current day. People are also against building up, at least a portion of people in my town, so it looks like the current proposal to increase the height of buildings may not go through. An increased height would potentially increase the density of downtown and prevent the development of agricultural or raw land.

Quite frankly I am tired of going to movies and being preached at on environmental issues. It is especially galling that the movie cost $175 million dollars to make. If they really wanted to make a difference they would have saved 20% ($35,000,000) of the cost of the movie, bought the land they profess should be saved, and prominently provide an advertisement of where people could add to the fund (either at the beginning or end of the movie or both). But I guess they really don't believe it and are only trying to sell tickets.

Tuesday, June 19, 2007

One Vertical Curve for Sag and Crest

To have one style for sag and crest vertical curves with and without high and low points. So you can just have on main label style for sag and crests.

  • Add a line to the label. Set the Start point anchor component to the Anchor Curve High Point and the End Point Anchor to the Midpoint of the Dimension Line. Give the line a name so you can remember what it does.


  • Next create a line construction line which will be hidden in the style, but will help rotate the text parallel to the dimension line. It is needed because we have to tie to the previous line created and have a way to make it look like the other text in the label. If you skip this line then it will be nearly impossible to get the rotation right as the label is moved up and down.


  • Next add the text to the label for the HP. Use the anchor point of the start of the construction line you created in the last step. Add whatever text you require for the HP.


  • Here is a picture of how the label looks.


  • Just change the visibility of the HPtoMidDimensionLine and the ConstRotationLine to false so it not seen in the final style.
  • Repeat the steps for the low point, using different names for the components.
  • Since the low point and high point portions of the label are anchored to the low or high point the those portions of the label won't show if there isn't a high or low point of the curve.

    I have also uploaded the HP portion of the label here.

Friday, June 15, 2007

Sheet Set Manager

I'm a big fan of Sheet Set Manager, if you aren't using it I think you should. You can also use it in conjunction with fields to help with sheet numbers, sheet titles and other repetitive items. This way you don't have to go through every file when you change/add/delete a sheet, you just have to change it in Sheet Set Manager and print. It also makes it easy to print a whole set of plans at one time. There are many sources of information if you do a search on your favorite search engine.

Tuesday, June 12, 2007

Profile and Profile View Labels

When creating profile or profile view labels and not all of the items are flipping, in my most recent experience a vertical line in the label wasn't flipping, change it so only on piece of the label is attached to the feature. Doing this corrected the problem and the label worked as expected and flipped quite nicely.

Monday, June 11, 2007

Working Between Civil 3D 2007 & 2008

This probably applies while working with 2007 or 2008 in AutoCAD, but make sure that the drawing settings for scale is the same as the viewports to get the Civil 3D objects to show up correctly.

Autodesk University

Somehow I got selected to be a speaker at Autodesk University 2007. I have a real exciting title of "Sanitary Sewer Design".

I went last year and had a fun time.

Sunday, June 10, 2007

Google Analytics

Since I seem to be a sucker for Google products I added the code for Google Analytics to this site. I just added it on June 4, but I am amazed at what type of information it provides. I can tell where all of the viewers are coming from, how many pages they saw, what browser they are using and much more.

Its really eye opening to see where Civil 3D users are that visit the site, or visit it accidentally. So far a total of 21 countries are represented:

United States - Canada - Costa Rica - Peru - Spain - Bosnia and Herzegovina - Italy - Serbia and Montenegro - Germany - Belgium - Netherlands - United Kingdom - Romania - India - Iran - Malaysia - Isreal - South Korea - Australia - New Zealand - Kenya

Most of the viewers are from the United States though, with 25 states and the District of Columbia represented, mostly from California though.

Most of the users where refered by caddigest.com

Thursday, June 07, 2007

XML Notepad

Microsoft provides a free XML Notepad program for editing XML file.

It makes it alot easier to see and change values in the XML file.

Tuesday, June 05, 2007

Taskbar

One session of Civil 3D, two files open with Taskbar setting of 0:

One session of Civil 3D, two files open with Taskbar setting of 1:
The first one is the default and to switch between drawings use alt+tab, for the second one switch between drawings with alt+tab.


The option to change it in Microsoft Office products is under options. This is from Microsoft Office 2007.

The change in the UI for the Microsoft Office is a bigger change the CTRL click for subentities in AutoCAD.

Increase Command Line History

This post in the news group is helpful in making the command line history longer and outputting it to a file. It is helpful in getting a list of all of the commands loaded in Civil 3D. Type ARX and then C for commands.

http://discussion.autodesk.com/thread.jspa?messageID=4145019

ConvertLineworkToMaskBlock

I used this one, it is in the DG on how to use it for hiding alignment extensions. I used it to hide part of a profile. To start the command just type ConvertLineworkToMaskBlock. Select a closed polyline that you want to use as the mask.
A box will pop up. I usually choose the Select AEC Objects to Mask option and let the computer name the Mask Block. I also check the Erase layout geometry so it deletes the original polyline. After you hit OK you will be asked to select which objects you want masked, in this case I am masking a profile.
Before:
After:

I masked the top profile.

Make sure you place the Mask Block on a non plot layer so it doesn’t show up. To add or remove objects just select the Mask Block right click and the option is there. You can also edit the shape using the edit profile in place option in the right click.

Monday, June 04, 2007

Other Commands with Multiple

If you have lots of repetitive things to do in Civil 3D and you are constantly right clicking to get to the command stop and watch the command line. Often times the name of the command is listed. Type multiple then the command which was at the command line and see if it will let you repeat the command over and over again. Sometimes it won't work, but it is worth a try.

Sunday, June 03, 2007

Packeteer and Civil 3d

I wish Civil 3D and Packeteer played nicer together. But who knows maybe they will make up soon and start playing nice. I've read on the Discussion Group that it plays nice with Riverbed which does the same thing.

If you don't know Packeteer, at least the product I am using at work, creates what is called a Wide Area File Service. For most of the other programs, including plane AutoCAD, it works great. It seems like we are using the same file server even though the offices are hundreds of miles apart. I think the main problem is data shortcuts and Packeteer wanting to make sure all of the data is up to date, but I'm not an IT guy.

LinkWithin

Blog Widget by LinkWithin