Monday, December 16, 2013


How to scale Civil 3D Points without scaling Elevations

As you might be aware, when you use the AutoCAD Scale command to scale Civil 3D Points, the elevations of the points are scaled along with the x and y coordinates.
We have a few different methods of working around this limitation.
1. Delta Engineering Systems has written a VisualLISP routine that will scale the points while maintaining the elevations. You select the points on the screen, give a basepoint and scale factor, and the routine does the rest. If you are interested in obtaining this routine, free of charge, please contact Tim Corey at Delta Engineering Systems, or 530.221.2994.
2. Use the Survey database (Survey tab of the Ribbon) to import the points from an Autodesk Fieldbook file (*.fbk). Most data recorders include software that will convert their files to Autodesk .fbk format. Once you have that file, add the line: SCALE FACTOR <>, for example: SCALE FACTOR 1.00043, to the .fbk file before any new points are listed. Import the fbk using Import Events in the Survey Database.
3. Use Civil 3D's Drawing Settings, Transformation tab to apply a scale factor to existing points. The Grid Easting and Grid Northing columns of the Point List will now have the scaled coordinates. Create a Point File Format the includes the Grid Easting and Grid Northing along with Point Number, Elevation, and Description. Export to this format. Erase the points. Now import the previously exported file using a Point File Format that uses Northing and Easting instead of Grid Northing and Easting. The new points will have the same points numbers and elevations as before, but the coordinates will have changed to the scaled values.
4. Chris at has written a VB.NET program you can copy here:
We have not tested Chris's solution, but wanted to be sure you know about it as a possible solution.
Happy scaling!

Friday, November 1, 2013

Creating a context-sensitive Ribbon tab
One very common customization question we've been asked is how to make a context-sensitive Ribbon tab that offers useful tools when a polyline object is selected. AutoCAD Civil 3D developers have done a nice job with the context-sensitive Ribbon tabs for Civil 3D objects, but civil designers use polylines often. There should be a Ribbon tab....

Open the CUI. (Type CUI from the command prompt.)

Our opinion is that you should create a new Cuix file for your customizations, but this will also work if you build it right into the c3d.cuix. It just won't be as easy to move it up when you upgrade the software.

From the Customize User Interface dialog, find and activate the Transfer tab.

Hit the Save button on the far right of the dialog (we'll be working only on the right hand side until we go back to Customize tab) and save the new .cuix file somewhere you know where it is. I place mine in my user support folder, C:\Users\\AppData\Roaming\Autodesk\C3D 2014\enu\Support. That's where Civil 3D first looks for support files, so it will be found here. If you put it in a custom folder, be sure you update your support file search path.

Right-click where it says Workspaces and select Load File as Partial.

This will place a reference to the file in the Partial Customization Files section when you move back to the Customize tab. Move back to the Customize tab now.

Expand Partial Customization Files, find your newly added file (my example is called Tim) and expand it, expand the Ribbon collection. Right click Tabs, select New Tab. Give it a meaningful name like "Polyline Selected."

Change the tab's Default Display to Do not add to workspaces.

Right click Panels, select New Panel. Give the panel a new name, like Polyline Tools. Expand the new Panel and find Row 1.



In the Commands list find Create Feature Line from Objects. Drag-n-drop that command onto Row1 of your new Panel.

Continue by dragging-n-dropping Add to Surface as Breakline, Create from Polyline (this creates an alignment from polyline), Create from Objects (creates a parcel from objects). Add Polyline Edit to get the Pedit command.
To add a layer pulldown, change from Custom Commands to Ribbon Control Elements. Drag-n-drop Layer List Combo Box to your panel.
Continue adding tools until you're satisfied, unless you're the type of person who is never "satisfied". If that's the case, continue adding tools for ten minutes and then stop. It's good enough for now, especially if you're on the clock.
Drag-n-drop the new Panel up onto the new Tab.

Big step now, just below where you have been adding commands to panels, find and expand Contextual Tab States. Drag and drop your new tab (we called it Polyline Selected) onto the Polyline object. Also drag it onto Polyline 3D Selected.

For each command that you place on your panel, select the command on the row and then modify its properties to control a text label, orientation and button image.

Press ok all the way out. Select a polyline.