A place to put reminders on how to do things or commands that I will use rarely, but are useful to know.
Ad
Thursday, February 28, 2008
Repetative Feature Line High Low Point
^C^CAeccInsertFeatureHighLowPoint;\\\1;1;;
Change the 1's to the two grades you want to use. Drag the command to the toolbar you want to add it to.
Wednesday, February 27, 2008
Offset Layer
Friday, February 22, 2008
MapClean at a Press of a Button
To do this first go through the mapclean command and set all of the setting you want to run. Then press save in the lower left hand corner. Save the mapclean profile in a location that is good for you.
Next go into the cui and create a toolbar to place a button. Create a new command and place it on a toolbar (new or existing it's your choice). Next type in the Macro contents. The macro should have the format similar to this: ^C^C-mapclean;c:/a.dpf;
Note that the backslash is going the wrong way. The -mapclean calls the command, the ; is an enter, and the c:/a.dpf is the name of the profile I saved. When you exit out of cui you should have a one button solution to doing mapcleanup. I would create several commands with the variations of map cleanup that you use.
Sunday, February 17, 2008
Labeling A Point on A Parabolic Vertical Curve
If you need to label 25' intervals on a vertical curve, this may be one way to do it. I haven't tried yet in production, but I think this will be easier than the way we are doing it now.
The formula for the vertical curve is (From Help): 
We will use this formula in an expression to place the label at the correct location. For the first 25' label the expressions would be:
Station: {Profile Curve Start Station}+25
Elevation: (({Grade In}/1)*25+(({Grade Out}-{Grade In})/(2*{Profile Curve Length}))*25^2)
X Offset: 0.6125
Y Offset: (({Grade In}/1)*25+(({Grade Out}-{Grade In})/(2*{Profile Curve Length}))*25^2)/(4*12)
For each interval just add 25 for each additional label you need, you will have to figure out the math for the X Offset yourself. Since Civil 3D stores the decimal value the 100 and 200 are changed to 1 and 2 respectively. Use the above values in your label for the visible values in the label and the X Offset and Y Offset to get the label in the correct location. The /(4*12) scales the offsets to the correct distance. You could add some if then statements to prevent the labels from showing up if the vertical curve isn't long enough or just add the labels for each vertical label.
A sample file with 25 and 50 expression may be found here with the 02-17-2008 date.
Thursday, February 14, 2008
Structure Label with Expression
A pictorial Post
The insert property is wrong in the shot below, it should have been:
{Insertion Rim Elevation}