Wednesday, January 9, 2013

Depth Profiles from EG


  

Lets talk about 3 options to get create a Depth Profile in Civil 3D: 

First Option:
Creating a copy of the EG surface profile it will be and exact match. We will then drop the copy the needed amount. However if the Alignment path were to change or Surface was to be edited the copy would NOT be up-to-date

     1. Use the AutoCAD command to copy the EG Profile. 

     2. Go into Profile Properties dialog box: Rename it, set a different Style and change the Update Mode to “Static”.

     3. Lower it using the Edit Geometry tools > Raise/Lower PVI Elevations command.



Second Option:
Creating a Feature Line from the Alignment and EG Profile that can be Projected and Lowered.

     1. From the Ribbons Home Tab > Feature Line > Create from Alignment.

     2. Choose of what profile to follow, Uncheck the Dynamic Link box and option set options to weed out vertices.

     3. Next add Feature Line to grid, Select the Profile View > from Ribbon > Project Objects to Profile View button.

     4. Make sure the “Use Object” is set for elevations in the Dialog Box Options.

     5. Lower the Feature Line the Ribbon or Right Click command to Raise/Lower.



Third Option:
Create a surface with EG pasted into it, NOT just a copy for we want the copied surface to be dynamically tied to the original. The down side here is duplicating a TIN surface will increasing the drawing size.

     1. Use the AutoCAD copy command to make a copy of the TIN Surface.

     2. From the Properties Rename it and set appropriate Style.

     3. Then use the Surface Edit command Raise/Lower to drop the elevation.

     4. Sample the new Surface to have it display in Profile View Grid.

Tuesday, January 8, 2013

Digitizing Points to Profile

I’ve been thinking about the many different ways to profile a “single file” or “in line” survey.  Surveys like this are common for a proposed utility run or cross section survey.  The need is simple, to profile these field points, but the issue is creating a TIN is just too cumbersome for the lack of supplementing point data.


We could add supplementing points manually or copy in parallel, but in this case we will do it without creating a TIN Surface:

1.      Draw 2D Polyline that connects the needed sequence of points
2.      Create Alignment from Polyline.
3.      Create empty Profile View from the Alignment
4.      Draw 3D Polyline connecting the needed sequence of points
5.      Project 3D Polyline to Profile View.

First, start by using the AutoCAD POLYLINE command to connect the needed points.


Second, using the CIVIL 3D command, from the Home Tab, to Create Alignment from Objects.


Once done with selection you will be prompted for alignment direction and choice to reverse.


Then on to the Alignment Creation dialog box, note that the option for Add curves between tangents is left unchecked.


Once command is complete, the Alignment and its Labels will appear.


Third, Select the created Alignment and from the Ribbon pick on the Profile View button to create an EMPTY grid.


From the Create Profile View dialog box, accept the defaults by selecting the Create Profile View button.

When prompted select a point on screen to create the empty Grid (this will be the grids lower left corner).


Forth, similar to before, using the AutoCAD 3D POLYLINE command to connect the needed points.  I found that if I freeze or turn off the display to the previously created Alignment, this will be easier.


Fifth, select any point on the Profile View grid, then from the ribbon select the Project Objects to Profile View button.


Once in the Project Objects to Profile View dialog box, make sure the option to Use Object elevation is set.

This will automatically populate the previously selected Profile View gird with the line.


This projected line work is dynamically tied to the original 3D POLYLINE, if it is edited, stretched, trimmed, etc.., it’s view in the grid will update.

Monday, January 7, 2013

Using Reference Text To Label Two Station Values for a Manhole

Within Civil 3D labeling functionality is a tool called reference text.  Reference text allows the user to label multiple objects at once, or allows us to label more than one type of object at the same time.  Examples of this would be labeling two surfaces at once, or adding an elevation to a station offset label.  The example that I'm going to illustrate here is labeling a manhole at the intersection of two roads that displays both station values.
                                                                            
            
 

As you can see from the screen capture above, once you select reference text from the label style composer, you will be given an option to choose what type of object you would like to make reference text for.  In my example, I will be choosing alignment.


In the capture above, you can see that I have added a reference text component called reference text.1.  I will rename this to something logical like second alignment station.  From this point on, we create the component like we normally would, and anchor the label.  In my label, you can see that I have anchored the label to the outgoing pipes, with it being displayed as ???.



Now that I have chosen the label that I created and selected the manhole, you notice that I have a pick box and some instructions on the command line asking me to select the second alignment.  I can now pick the appropriate alignment, or right click and I will be given the option to choose the alignment from the list.


Once I have chosen the appropriate alignment, you should see the question marks change to a station and offset value like the one seen below.


It is important to note that reference text component allows the user to change from one alignment to another.  If you look at the label in the AutoCAD properties box, you will note the reference text option at the top.


From within here, the user can select different alignments or components depending on the object created in the label.  If you hit the green box, you will be given the option to again select another alignment  .A great example where this can be utilized is when labeling a proposed surface. How often do we build multiple proposed surfaces to give the client various options of how the site can be graded.  A typical surface label is tied to the surface that we select when labeling, whereas a reference text label allows the user to use the same label, but change the surface it is getting the values from.


As you can see from the example label I created, the value of the reference text allows us to do multiple  labels within one label, or change randomly from object to object.

Wednesday, January 2, 2013

Labeling Contours at Given Intervals

I was recently asked by a client what was the best method for quickly labeling contours intermittently.  By intermittently,  I mean labeling every other contour, or every third contour.   The client explained that they go through this process by using the contour single command and manual picking every two or three contours, depending on the interval required.  After giving this process some thought,  I figured there had to be a much more efficient way of doing this using an expression.  As most of you know, Civil 3D allows us to create a mathematical expression from other data residing within the software.  In the case of the random intervals, I can create an expression that will see if the contour is at the appropriate interval, and display it. If it is not, then it will be hidden.  In the screen capture below, here is the expression I have created.


Here is the expression:  IF({Surface Elevation}/2=TRUNC({Surface Elevation})/2), {Surface Elevation}, -1)

The expression starts of with the IF command, which tells the expression to check for given output.  The surface elevation/2 is telling the interval at which we want our contours to be displayed.  In this example, we want to label every other contour, but this could  be set to /3, which would check for every third contour, etc.  By using the TRUNC command, we are checking to see if the contour is divide by 2 evenly.  For example, a surface elevation of 102 would generate a value of 51 and a truncated value of 51, where as a surface elevation of 101 would generate a value of 50.5 and a truncated value of 50.  In the example, the surface elevation 102 would be labeled, while 101 would not.  This portion is taken care of by the last part of the expression which is {Surface Elevation}, -1.  If the statement is true, then it uses the surface elevation, if not it generates a -1 value for a false statement.    


The reason we are having the statement generate a negative value is that the label style composer, as seen above, the Sign option allows us to hide negative values.  Note, in my expression, I'm having a false statement generate a value of -1, but in theory, it could be any number as long as it is negative.  This is ultimately how we can have Civil 3D label contours at a given interval.  



Here is what your new label should look like.  Why spend anymore time then needed to quickly label your contours.

Wednesday, December 5, 2012

AutoCAD Civil 3D Service Pack 1 is Available

Autodesk has released  Civil 3D 2013 Service Pack 1..  Autodesk has released this service pack to address a variety of issues discovered by users and Autodesk personnel.


As always, please take a look at the readme file prior to installation.  It is also important to note that you cannot run an automatic uninstall to remove this update.  You will need to do an uninstall and re install to restore your version of the software.



Wednesday, November 28, 2012

Project Chronicle Updated

Autodesk Labs has released an update for Project Chronicle.  For those of you not familiar with this tool, Project Chronicle is a technology preview that makes it easy for users to share and capture software workflows.  The utility consists of two main components.  The first component is the recording utility.  It allows the user capture worflow from either Revit or AutoCAD based software.  The utility records a continuous video with optional narration.  Some cool features of chronicle are that it is also is recording the timeline and details of the workflow, such as the commands used to create the objects or data.  The second component is the web site.  After capturing the data, it is uploaded to the Project Chronicle website where other users can view the videos, along with the timeline and other recorded components.  It is important to note that viewing can be made public, or can be restricted to a specif user or users.  Your chronicles can also be shared to such public media sites as Facebook or Twitter.


Wednesday, November 14, 2012

Flatten my Linework

This is topic that seems to come up frequently, so I thought I would refresh everyone's memory on this.  Lots of users tend to use their Civil 3D points to manually draw line work  and aren't real happy with lines they have created because they are elevated from the chosen points.




As you can see from the screen capture above, the line is elevated as we would expect.  Now the user has two options.  The first option we will look at is in the point style.




As you can see in the capture above, we can simply set the point display mode to flatten points to elevation, and set the elevation to zero.  It is important to note that this setting will have no impact on the creation of a surface using these points.  The second option is to set the osnapz variable to 1.  By setting the variable to 1, osnap substitutes the z value of the specified point to the value of the current UCS.  It is worth mentioning that Civil 3D does not save this variable, and thus why it defaults back to 0 each time you open the software.  The only way that I can see to permanently change this would be to add the following line of code to the acaddoc.lsp file.