Civil 3D Reminders Pack 2011 - Free Edition

A new version. The program may be found here. I've tested the code on Civil 3D 2011 64 bit, but it should work on a 32 bit computer.

To run the program unzip the file to a non-network location, type NETLOAD at the command line and select the C3DRemindersPackFree.dll file. All of the commands start with C3DR. Typing C3DR and then pressing the tab key will toggle through the available commands. Each time you want to run a command the NETLOAD command has to be run, though there are methods available online to get the commands available during startup.

The C3DReminders2011FreeSourceCode.zip contains the source code may be found here (not the current version). Unzip the files and open with Microsoft Visual Studio. If the references are updated the code will work in Civil 3D 2010. The original 2010 version may be found below.

Commands:

C3DRAddPointToPointGroup    
I've been told there is a magical right click shortcut menu in Land Desktop that lets you add the selected point to a point group. While you have to add this routine to shortcut menu, this routine will add the functionality to Civil 3D. You don't even have to add it to the shortcut menu, type C3DRAddPointToPointGroup at the command line and if a point, or points, are selected then you will be prompted on which point group you want to add the points to.
C3DRChangeMannings
This command lets you change the manning's value for all of the pipes in a pipe network. The code prompts you to select a pipe in the network and then the new mannings value. To run the program, type C3DRChangeMannings at the command line.
C3DRCreateEGSurface
This routine creates an EG Surface. While that doesn't sound impressive, it does do a bit more than that. The way it is set up to work is that you open up your template drawing, import points and then run the routine. The routine will then create a Point Group called "EG Surface Point Group" and build the query for the point group. An EG named surface is created and the point group is added to the surface's definition. To run the routine type CreateEGSurface at the command line.
C3DREGContourLabelSettings
Changes the contour label settings, probably won't work in your drawing, but you can modify the source code to get it to work with your standards.
C3DRendPipeInfo
Does something, but the command isn't finished.
C3DRFlattenFeatureLine
Will convert the elevations of a feature line to 0. An easy way to put the elevations down to 0 and then explode to a polyline instead of a 3DPolyline.
C3DRGroupBreaklinesByMidOrdDistance
A start of a command that got stopped by a problem in the API. It was going to extract the breaklines of a surface based on Mid Ord Distance and then add them back with a more appropriate mid ord distance for the design.
C3DRPipeInfo
This command lets you hover over pipes to get more information than the regular Tooltips. It provides slope or invert information depending on where you are hovering over the pipe with the cursor. Run the program, type C3DRPipeInfo at the command line. To end the command type EndPipeInfo.
C3DRPIW
The command will move the ends of a pipe from the center of a structure to the inside walls. A move of the structure or other certain actions will move the pipe back to the center.
C3DRRemovePIWEvents
A start of a group of command to get the C3DRPIW to be dynamic. I haven't gotten around to finishing the commands.
C3DRRenumberSheets
Will renumber the sheets within a Sheet Set in Sheet Set Manager. When running the command only one sheet set may be open.
C3DRUpdateTotalSheets
Will update the total number of sheets in the sheet set. A sheet set property called "TotalSheets" must be present in the sheet set for the command to work. The property then may be used as a field in drawings.
C3DRScalePoints
This command lets you change the scale points and keep the original elevation. The code prompts you to select a points, scale factor and the base point to scale from. The program then scales the points and assigns the original elevation to the point before being scaled. To run the program, type C3DRScalePoints at the command line.
C3DRSubgradeSurface
You created a parking lot surface FG and you want a Datum surface. Creating the Datum surface may be a pain, this portion of the program helps make it easier. Just create polylines for each of the pavement depths. Run the program, C3DRSUBGRADESURFACE, for each of the pavement thicknesses and each will be added to a Datum surface or Subgrade.
C3DRSwapParts
Select multiple pipes and structures and then swap them all at one time. Saves you from having to swap pipe network pipes one at a time
C3DRXREFCorridor3DPolyline
This command lets you extract a 3DPolyline from a corridor through an XREF. The code prompts you to select a corridor and then a code name.  To run the program, type C3DRXREFCorridor3DPolyline (or create a command alias) at the command line.
C3DRTIN
Do you find it a pain to change a surface style to get triangles to show? Then this routine my be for you. Just type C3DRTIN at the command line, select the surface and BAM!! the triangles are shown. Want to turn the triangles off just repeat and BAM!! the triangles turn off.


Civil 3D Reminders Pack 2010

General - Parcels - Grading - Alignments - Profiles - Corridors - Pipes - Surfaces - Programming

_

Intro

The Civil 3D Reminders Pack is the collection of vb.net routines created from blog posts. It currently includes three routines. The program is provided as-is with no promises that they will actually work. Currently the dll is set up to run using Civil 3D 2010.

Routines

Create EG Surface

This routine creates an EG Surface. While that doesn't sound impressive, it does do a bit more than that. The way it is set up to work is that you open up your template drawing, import points and then run the routine. The routine will then create a Point Group called "EG Surface Point Group" and build the query for the point group. An EG named surface is created and the point group is added to the surface's definition. To run the routine type CreateEGSurface at the command line.

Toggle TIN Surface Triangle

Do you find it a pain to change a surface style to get triangles to show? Then this routine my be for you. Just type TIN at the command line, select the surface and BAM!! the triangles are shown. Want to turn the triangles off just repeat and BAM!! the triangles turn off.

Add Point to Point Group

I've been told there is a magical right click shortcut menu in Land Desktop that lets you add the selected point to a point group. While you have to add this routine to shortcut menu, this routine will add the functionality to Civil 3D. You don't even have to add it to the shortcut menu, type AddPointToPointGroup at the command line and if a point, or points, are selected then you will be prompted on which point group you want to add the points to.

Subgrade Surface Creator

You created a parking lot surface FG and you want a Datum surface. Creating the Datum surface may be a pain, this portion of the program helps make it easier. Just create polylines for each of the pavement depths. Run the program, SUBGRADESURFACE, for each of the pavement thicknesses and each will be added to a Datum surface or Subgrade. 

Pipe Info

This command lets you hover over pipes to get more information than the regular Tooltips. It provides slope or invert information depending on where you are hovering over the pipe with the cursor. Run the program, type PipeInfo at the command line. To end the command type EndPipeInfo.

Change Manning's

This command lets you change the manning's value for all of the pipes in a pipe network. The code prompts you to select a pipe in the network and then the new mannings value. To run the program, type C3DRChangeMannings at the command line.

 Scale Points, Keep Elevation

This command lets you change the scale points and keep the original elevation. The code prompts you to select a points, scale factor and the base point to scale from. The program then scales the points and assigns the original elevation to the point before being scaled. To run the program, type ScalePoints at the command line.

Extract 3DPolyline from Corridor Through XREF

This command lets you extract a 3DPolyline from a corridor through an XREF. The code prompts you to select a corridor and then a code name.  To run the program, type C3DRXREFCorridor3DPolyline (or create a command alias) at the command line.

Instructions

    1. Download this file, put it on your local machine. Putting in a network location doesn't work.
    2. Type Netload at the command line and select the file. 
    3. Type at the command line any of the routines from above, add them to a toolbar, the ribbon or a shortcut menu.
    4. If you want to change anything download the source code and have fun modiying the code. Have any questions check out my blog.
    5. Check back to see if anything new has been added.

If you want to have the program ready to run at all times (newer commands haven't been added) download this registry file C3DRemindersPackVista.reg for Vista/7 operating system and this file C3DRemindersPackXP.reg for XP. Double click on the file to add the program to the registry. Place the Civil3DReminders.dll in the C:\Program Files (x86)\AutoCAD Civil 3D 2010\ folder for Vista/7 and C:\Program Files\AutoCAD Civil 3D 2010 for XP. When you type the commands it will run within Civil 3D without typing NETLOAD.

Disclaimers

This pack is created as post ideas come up. Not a whole lot of debugging occurs during the development, so this pack may or may not work properly all of the time. Use at your own risk. If you find any bugs let me know and I'll try to fix them.

Wishes

Want something added? Send me an Email , if I find it interesting/useful I may add it. If don't find it interesting I'd be willing to barter to create it.