Showing posts with label Points. Show all posts
Showing posts with label Points. Show all posts

Friday, 7 March 2014

Importing Point Files - warning message

If you are importing point files into C3D and you are getting an error message like below:

Your point file might be in one of the typical formats (PENZD) when you open it and look at it but C3D still doesn't appear to recognise it. This usually happens because there is something in the file that C3D doesn't understand. Typically this will be a number in a column where it is expecting alpha characters or vice versa. Check your point file to make sure that, for example, the 'P' column contains only numbers. Looking at my file I see that the first point was a base station and this point does not have a number, rather it uses the STN code in the 'P' column.
C3D doesn't know what to do with the STN as it is expecting a number. Edit the point file and try reimporting and it should work ok.

Tuesday, 14 January 2014

Stringing Survey Points

An oldie but a goodie. Worth posting as it can save literally hours for anyone that is manually stringing survey points - (If you don't have Civil 3D set up to automatically process survey data). The drawing used below is from the Civil 3D Essentials book by Eric Chappell.

If you have surveyed a string of points and the numbers are sequential then you can use transparent commands when you are joining them in Civil 3D to speed up the process. Below I have a fence that was surveyed from start to finish (1 to 5 in the image).
There are 27 points surveyed along the fence, starting at point number 123
and ending at 150...
To string these quickly start the 3DPOLY command (or polyline command). Select your start point by clicking with the mouse. When it looks for the end point type 'PN (apostrophePN). Then press enter. Type 123-150 and press enter. Civil 3D will automatically string all the points between the numbers for you.

Wednesday, 8 January 2014

Cogo Points from Text

Very often I come across survey drawings that have AutoCAD blocks and text representing the surveyed points.
If we want to create a surface in Civil 3D from these points we will need to add in the blocks (cross where the point was surveyed in image above) if they have levels. If they have no levels then second best is to add in the text (13.18) if this has a level. (the insertion point of the text wont be at the same location as the surveyed point but the difference this would make for a topo survey would be negligible in most cases). In my case neither has any level information - they are both at zero elevation. There is a workflow available that uses queries in Map 3D to raise the text up the elevation value in the text itself. I am going to show a different approach here using the AutoCAD Data Extraction command to create a csv file which contains the x ,y coordinates of the text and also the contents (elevation). we then import this back into C3D as cogo points.

First isolate all the 'elevation' pieces of text. Then type DATAEXTRACTION. On page 1 of 8 create a new extraction and save it. On 2 accept the defaults and click next. On 3 tick Text or MText - whichever the elevation text is, click next. On 4 on the RHS tick Geometry and Text, on the LH pane tick Contents, Position X & Position Y, click next.
On 5 untick Show Count Column and Show Name Column, click next. On 6 select 'Output to external data file' and choose a save location and file type. Step 7 is skipped if you just export to external file so on 8 just click finish. Job done. You now have a csv file with x,y,z for the survey points (with the point location at the insertion point of the text but close enough for a lot of surveys!)
You can then inport this back into Civil 3D as you would normally and create cogo points from it. One thing to be aware of is the first line of your csv file will be header info so delete this before trying to import into C3D or it will fail.

Thursday, 19 December 2013

Getting Set Out Info. from your Corridor

The reporting end of Civil 3D can be frustrating. Generally I have found that there will not be a report that gives you exactly what you want. Some reports will give you one bit of what you want and also probably a lot of information you don't need.
I have found that you usually need to export bits from multiple reports and edit them in excel to create one final report with the info you want. This can be time consuming and for something simple like x,y and z points for say road edges and centreline I prefer to create points from corridor and then export these to csv file for set out. There is a report in Civil 3D that looks like it will get you this information and it does to a certain extent but it is not in a format that is easily unloadable to a GPS logger for setting out. Below is the procedure, which is by no means a one-click solution but it does the job.

First set your corridor frequency to the chainage interval that you want setout info for. In my case every 10m.
Next we will edit the assembly we are using to add Mark Points with specific codes for the points we are setting out - Road Edge Left, REL, Road Edge right, RER and Centreline, CL. Open your tool palettes (CTRL+3) and open the Civil Subassemblies and on the Generic tab browse to the Mark Point subassembly. This just inserts a point into the assembly and corridor - a point which we can give our own unique code to.
When you go to insert this into your assembly you can set the point code in the properties dialog box.
Set the code and then select the relevant location in your assembly - right edge of carriageway in my example above, just click on the existing marker at the end of the lane subassembly where you want to point to be. You will probably not notice anything different happen on the assembly as it is just inserting a point. Repeat this for any other points that you want to extract from the corridor, naming the point code appropriately.

Next select your corridor in plan and click on Launch pad on the top right of the ribbon and then select Points from Corridor and only select the codes from the Mark Point subassemblies.
This will create cogo points from the corridor at 10m intervals for each of the mark points using the point code for the cogo point description (RER, CL, REL). Next step is to separate these points into point groups based on their descriptions and export them to csv file. Create point groups for each code (RER, CL, REL) and include points related to that groups code. i.e for the point group CL only include points with description CL.
Next export each of the point groups to csv - right click on the point group and export points and fill out the info in the following dialog box.
When Civil 3D creates points from corridor it does so for each string along the length of the corridor. This doesn't suit from a setting out point of view where it will probably be set out in a cross section manner rather than doing each string separately. When you export each of the point groups to excel you will need to renumber the points and then copy and paste them into one excel file to create one complete set out file. In my case I have 3 points at each chainage so I renumber all the REL points 1,4,7... CL points 2,5,8... and RER points 3,6,9.... This is easy done in excel and then copy paste into one excel file and sort by number. You now have set out points at each chainage. By no means the smoothest of workflows but it gets the job done. There are 3rd party add-ons you can get for Civil 3D that allow you to create custom report formats. I haven't explored what sort of results you get from using the Trimble add on or similar to export a corridor to a logger.



Tuesday, 28 February 2012

Creating Custom Point Properties

This week I was presented with survey data in ASCII point file format that contained numerous attributes for each point. For example a point might have a description of 'spot height' and also another attribute denoting ground type at the same point.


Initially I thought it wasn't possible to get this extra information into Civil 3D in a usable format until I discovered the 'User Defined Property Classifications'. (Toolspace<Settings tab<Points). Right click and select Create New.


Next right click on the new classification and select to create new user defined property. Here we create the property that will accept the attribute from the survey data. In my case I am creating a Ground Type property. Set the property field type to suit the attribute type in the point file - in my case string (text). 


Once we have created our user defined property we need to add this to a new point file format to match the point file. Toolspace<Settings tab<right click on Point File Formats and select new. Select User Point file.


Give the new format a name, set the default file extension and set other options as necessary. Click on each of the column headers where it reads <unused> and select the appropriate column name. In my case P,E,N,Z,D and finally my user defined property 'Ground Type'.



To test click Load at the bottom of the dialog box and load in a test file, click on Parse and the values from the point file should populate the columns as below.


Now we can import our point file using the new point file format...


Once the points are imported we can then use the custom property to add information to point labels. Select a point, choose Edit Label Text from the ribbon. You can select your custom property to add to the label as shown below.





You can also use the custom property to populate point groups... Create a new point group (in this case I am creating a point group for Soft Ground points only). In the PG properties on the Query Builder tab you can build a query as below to add the points of a particular ground type to the point group. 




There are probably plenty of more uses for these user defined properties. Please post if you have any suggestions...

Monday, 20 February 2012

Setting Out Points Along Land Take Line

In the screen grab below we see part of a 15km proposed new canal design. The thick orange line is the land take line along which a fence needs to be erected. We need to create points along this line at 15m intervals and then export these out to csv file for upload to our GPS logger for setting out. Needless to say you don't want to be manually specifying each point location so the following is a workflow for speeding up the process.



We will use the point creation tools to create the points but before we do we will modify the command settings so that we are not prompted to enter a description for each point. In the Settings tab of toolspace expand points<Commands and right click on CreatePoints and select edit command settings. Here we change the settings as below to enter a default point description of FENCE SETOUT and set the prompt value to Automatic. In my case I have set the prompt for elevations to Automatic also which will pick up the level of the chosen surface but this may not be needed.


Next go to Points on the Home ribbon and select point creation tools. On the Create Points toolbar select Along Polyline/Contour as below. 



Select your surface if prompted/ needed. Specify distance between points and then select the polyline representing the fence. This will create points along the polyline with the default description.

Next to get these points out to a point file to import into your logger you can create a new point group and export this.

On the Prospector tab of toolspace right click on Point Groups and select new. Give the point group a name and set the point and label styles.


On the Include tab tick the box beside With Raw Descriptions Matching and enter the point description. This will dump all your fence set out points into one point group giving us easier control over them.


Now to export to point file, right click on the point group name and select export.



Choose the point file format and specify destination (you specify file type (csv, txt, xls) here also. Tick the box to limit to a point group and click ok. 



This will get your fence setout points to a file format that can easily be uploaded to logger for set out.

Monday, 13 February 2012

Civil 3D Point File Coordinate Conversion

Its not uncommon to have a drawing which is at one coordinate system and for the same project to have a survey that was undertaken to a different coordinate system. You need to import the point file from the survey into C3D so that it appears at the coordinate system of the drawing.


Firstly you may have already seen the tick box in the import points dialog box to 'Do coordinate transformation if possible' (see image). Just ticking the box will have no effect without a bit of setting up first. This is where the 'if possible' bit comes into play. In order for C3D to perform the transformation it needs to have a coordinate system defined in both the drawing and on the imported point file. When you import points and tick this box C3D will transform the points to the coordinate system of the drawing.
Assigning the coord sys to the drawing is straight forward. Type MAPCSASSIGN at the command line and select. In my case for Ireland the drawing is to ITM. You can use the filters here to help you search.
Next we need to define the second coordinate system on a new point file format which we will then use to import the point file.

First open the import points dialog - click on points menu<Import/Export points<Import points.
In this dialog box click on the icon in the image below to create a new point file format.This is made easier by making acopy of one that already matches the format of the point file you are going to import.
In the point file format dialog box set your default file extension and the coordinate system of the point file. The next bit is very important... you must make sure that that the columns for easting and northing are set to Grid Easting and Grid Northing otherwise the conversion will not work and cue hours of frustration!
With the point file format set up and back in the import points dialog box browse to your point file, selct the point file format just created and then tick the box to do coord transform and that should be it!