0% found this document useful (0 votes)
134 views9 pages

Coordinate Converter July

The document describes specifications for a coordinate converter tool for AutoCAD Civil 3D. It details how the tool will collect coordinates from a drawing, convert them between coordinate systems like NAD83 and NAD27, and output the results to a text layer or CSV/Excel file.

Uploaded by

Ashis Meher
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
134 views9 pages

Coordinate Converter July

The document describes specifications for a coordinate converter tool for AutoCAD Civil 3D. It details how the tool will collect coordinates from a drawing, convert them between coordinate systems like NAD83 and NAD27, and output the results to a text layer or CSV/Excel file.

Uploaded by

Ashis Meher
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Longh orn Geom atics Lim ited w ww .longh orngeomatics.

com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

Summary: Coordinate Converter


Specifications
AutoCAD Civil3D 2012/2013 tool Language can be selected by developer (Not VBA) Deliverables o Compiled program o Source code

Tool Overview
1. Collect coordinates in projected autocad drawing 2. Convert coordinates from drawing coordinate system (NAD83 UTM) to NAD 27 geographic, NAD 27 UTM and NAD 83 geographic 3. Conversion between NAD27 and NAD83 completed using Canadian converion NTV2.gsb (File on box site) parameters 4. Output coordinates to TB-TEXT layer in layout view

Resources
Available from: https://www.box.com/s/44d3jtaltrof4st65v83 Binary grid shift file for use in AutoCAD. This .gsb file contains the parameters necessary to transform NAD83 to NAD27 using Canadian parameters. Readme.txt The autocad read me file describing the use of the .gsb file ACAD-wellsitezone11_A.dwg : An autocad drawing of a blank wellsite the output coordainte table is visible on page 2/3

Contact
Feel free to ask any question. David Birkigt Email: [email protected] Skype: david1-b

I have made a mistake here and there needs to be an option to select the coordinate units the drawing is in. This is because the drafters often draft without a coordinate system defined. See this document. https://app.box.com/s/kwtn61ogvp11t470uhuk

Interface Operation
The interface or user interaction can be changed as required during development as long as it meets the following criteria. 1. 2. 3. 4. 5. Reads and displays drawing coordinate system Has the 4 options with pre-set descriptions (Vertical, Horizontal, Surface and Other) Description column is user editable with the ability to add rows Option to output description field (not shown in interface below) Option to output file (either CSV or excel (whatever is easier))

The interface in the images below was made by me to help explain what I want and you can make any interface changes that you feel work better or make the tool better. If you decide an approach without an interface (command line) is best then an interface is not required. 1. Start Tool: Coordinate system is read from drawing

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

2. Select well type: Horizontal, Directional, Vertical, Other

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

3. Selecting and changing well type auto-populates description field, changing well type should reset the description column.

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

4. The description column should be editable by the user with the ability to add more records. In the image below User pt 1 and User pt 2 were added by the user.

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

5. When the description column is complete: a. All rows in the description column should be read to a list b. Each list element should be iterated with the user prompted either at the command line or on the mouse cursor to collect the coordinates for the current list element. c. Coordinates from model space are collected interactively. d. The snapping parameters of the active document should be used.

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

6. Execute tool by clicking Calculate. Selecting Output CSV will launch a dialogue to specify an output location for a csv or excel file when calculate is clicked. The output file will contain the converted coordinates. Excel or csv output can be selected by the user. The output file should contain the description column in addition to the input and output coordinates.

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

Tool Calculation
1. Form elements read and written to array
Table 1. Table of example coordinates read from form
Description Surface ICP End X Coordinate 556078.2 556200.7 556215.7 Y Coordinate 5934540.2 5934311.7 5932940.9

2. Pass coordinate pairs to AutoCAD coordinate converter object a. Convert from drawing coordinate system (usually NAD83 UTM zone 10, 11, 12 or 13) to NAD27 UTM (Corresponding zone), NAD 27 Geographic, NAD 83 Geographic. OBJECT ARX Reference: http://wikihelp.autodesk.com/AutoCAD_Map_3D/enu/2013/Help/0001ObjectAR0/0029-Converti29/0030-Converti30
Table 2. Table showing the different European petroleum survey group (EPSG) coordinate code and output format.
Code
EPSG: 4267 EPSG: 26711* EPSG: 4269 EPSG: 4269 EPSG: 26911*

Name
NAD27 Geographic NAD 27 UTM NAD83(Original) GEOGRAPHIC NAD83(Original) GEOGRAPHIC NAD83(Original) UTM

Format
Meter Degree Minute Sec Degree Minute Sec Decimal Degree Meter

Description
http://spatialreference.org/ref/epsg/4267/ http://spatialreference.org/ref/epsg/26711/ http://spatialreference.org/ref/epsg/4269/ http://spatialreference.org/ref/epsg/4269/ http://spatialreference.org/ref/epsg/26911/

* Code zone dependent

3. The transformation between NAD27 and NAD83 must be completed using the Canadian transformation parameters. In the box folder I have included the NTV2.gsb file required by AutoCAD for the transformation. https://www.box.com/s/44d3jtaltrof4st65v83 4. Below are the coordinates transformed and formatted
5333'24.032" N 11609'11.067" W 5333'16.592" N 11609'01.843" W 5332'32.235" N 11609'01.917" W 5934316.3 N 556155.1 E 5934087.8 N 556277.6 E 5932717.0 N 556292.6 E 5333'24.288" N 11609'12.419" W 5333'16.848" N 11609'05.910" W 5332'32.489" N 11609'05.982" W 53.556747 116.153450 53.554680 116.151642 53.542358 116.151662 5934540.2 N 556078.2 E 5934311.7 N 556200.7 E 5932940.9 N 556215.7 E

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

Tool Output
1. After coordinates are converted the user should be prompted by AutoCAD to specify the insertion point for the coordinates to be placed in the coordinate section of the correct layout page (Drawing in folder https://www.box.com/s/44d3jtaltrof4st65v83 page2/4 is an example wellsite template). I think you should decide if just the text of the coordinates or the coordinates formatted in a table with a table style should be pasted, whatever is easier. In the end we just want the coordinates to be in the drawing in a style like that seen below. Empty Table

Table with coordinates. from surface location and referred to section boundary are not calculated by this tool.

Perhaps just the coordinates should be added and the drafter will align them in the table.

Longh orn Geom atics Lim ited w ww .longh orngeomatics.com

Suite 172, 104-1240 Kensington Rd NW Calgary, AB T2N 3P7

ph one 403-289-8800 toll free 1-877-289-8847 fax 1-866-215-6827

You might also like