Tapping Into Civil 3D

Wednesday, November 08, 2006

Right Click, Transparency

Scott and I were at a local surveying firm today showing the ins and outs of C3D to some new users. Obviously, being a survey firm, they would need to know how to draw a line by direction so we showed them the "Bearing Distance" button on the transparent command toolbar. One of the users then asked, "Can I get to that with a right click?" Makes sense...almost everything else can be accessed through a right click. However, out-of-the-box c3D does not allow you to access the transparent commands with a right click. But, just because it doesn't come OOTB, doesn't mean we can't add it in!

Type CUI at the command line to bring up the Customize User Interface. Expand Shortcut Menus and locate "Context menu for command mode"


Once you've located the menu, right click and add a sub menu.


In the lower left corner of the CUI dialog box there is a section call "Command List:" this is where we will locate the commands to drag into our new sub-menu. In order to help find the commands, sort the commands by Source. After sorting, scroll down until you find "Angle Distance", this will be the beginning of the transparent command list. Now just left pick on a command and drag it under the new sub-menu. Add as many or few commands as you like.


When your all done, you should have something that looks like this.



-Enjoy!

Monday, November 06, 2006

Not Everything Flows Downhill!

Water Lines, Gas Lines, Electrical Conduit and everything else that doesn't have to flow down hill can be a bit tricky to show using pipes in C3D. That doesn't mean it's not possible though. Follow along to see how.

I start out by drawing a polyline across my surface. This represents the centerline alignment of my water line.


Turn the polyline into a feature line.

I like to keep my drawings organized so I choose to create an "H20-1" site to place the feature line in. Style is not important and erasing the existing entities will not affect the end result.


Project the feature line to the Surface.


Notice now that we have quite a few vertices in our feature line, in fact, too many! We need to "weed" out some of those vertices to prevent our pipe network from being a bunch of little pipe segments. To accomplish this, we will use the "Weed vertices" button on our feature line tool bar. I choose to set the criteria to %0.60, you may find that a different percentage or a combination of angle and distance yields a better result for your situation.


Select the Feature line, right click, and go to the elevation editor. This is where you will use the Lower Incrementally button to set the depth of your water line. In my case, 4' below natural ground.*

*The feature line will define the center of the pipe. So, since I lowered my feature line 4' and I am building a 12" water line, I will have 3 1/2' of cover.


The next step is to create a parts list from which our network will be created. On the pipes tab add waterever pipe material and size of pipe that suits your design need. If you can't find the material you like, look here. On the structures tab DO NOT add any structures. Simply modify the style and the rules being used.


The rules being applied to the pipes and structures are key in this process. Here is how they should be set up.

Pipes:

No, there is no mistake here. I've actual created a rule set that has no rules.

Structures:


Before we turn our feature line into a pipe network we need to edit our "CreateNetworkFromObject" command setting.


There are three setting that need to be adjusted:
Default parts List, Pipe Default Rules, Structure Default Rules



With the settings set...we can now turn our feature line into a pipenetwork


After selecting the feature line the below dialog box will show up. Notice that the option to choose a structure has been grayed out. Also be sure NOT to select a surface and make sure "Use vertex elevations" is NOT checked.


At first glance, it appears that we have now placed structures at all the remaining vertices....


But, as we roll the model up into 3-D, we see that indeed, no structures were placed in our network


At this point we have completed laying out our network, but we still need to get it into a profile. And what's the first step of creating a profile? Well, we need an alignment, so let's create an alignment from network parts.


Choose the first "structure", then the last "structure", and then hit enter to confirm the selection.

Well organized sites and thought out names for objects and styles make it easy to breeze through dialog boxes like this. Make sure to check "Create profile and profile view"

Add the Natural ground surface, and then draw it in a profile view.


Adjust the profile view to your liking.


Place the profile view somewhere in your drawing and you should have something that looks like this!



The final step is to clean up the plan view. Browse to the structures of the H20-1 network in the prospector. In the preview pane select all the structures, move your cursor to the heading of the styles column, right click and select edit. Select and more appropriate style, one that does not use a block in plan or profile view.


Looking back at the plan view you can see that everything looks as expected.


Look for some upcoming posts as we take this waterline profile a little closer towards a construction document.