Skip to content

AutoCAD Import/Export

FieldTwin does not support AutoCAD DWG read and write directly, but by using the Shape file import/export functions together with the FT Rule Engine you can easily transfer your field layouts between AutoCAD Map and FieldTwin Design. This How to guide will demonstrate the steps needed to both import and export data between the applications.

Alt text

You will need the AutoCAD MAP 3D toolset that is included with AutoCAD to be able to export the data with the correct geolocation(s).

DWG to SHP Export

The first step is to open and set the correct CRS and prepare for the export to SHP format inside AutoCAD MAP. Open the DWG file you want to export from:

Alt text

Then clean up the AutoCAD drawing if needed. Make sure that all lines have the right naming convention that you will need in your project.

Alt text

Make sure that the coordinate system is correct:

Alt text

If not, you can change it here, hover the mouse pointer over the small globe and select LIBRARY, search for the right CRS.

Alt text

Then click ASSIGN.

When all is set, use the command line and type in MAPEXPORT. Click ENTER.

Alt text

Make sure that file type: ESRI Shapefile is selected. Click OK.

Alt text

On the Selection Tab, select the check Line option and set selection to Select Manually. Click on the icon to proceed:

Alt text

Select the objects you want to export and click ENTER

Alt text

On the Data Tab, scroll down and click attributes>Properties, open roll down menu and check Layer. Click OK

Alt text

Make sure all is selected like below, and click OK

Alt text

The .SHP file are now saved in your designated location. It should have these files as shown below.

Alt text

Make sure to archive all files into one (1) .ZIP archive

Alt text

SHP Import

Now that you have exported your field layout from AutoCAD MAP to SHP following the steps above you can now import it into FieldTwin. In FieldTwin go to the Import Menu and select Data from files using rules engine:

Alt text

Click Create a new import:

Alt text

Select your Zipped archive file:

Alt text

Press the Next button:

Alt text

Then select your wanted Simplification tolerance value:

Alt text

Inside the Rules Engine, click on the +Add button:

Alt text

Select the first input box and choose “Geometry” – Equal -

Alt text

Then select LineString as the 3rd input:

Alt text

Click +Add child to create a child-rule to this parent rule:

Alt text

Select LAYER, keep equal and select chosen Pipeline layer type in the 3rd input:

Alt text

Select Action : Create or update connection:

Alt text

Map name to : LAYER

Alt text

Set Type to the corresponding Pipeline type in FieldTwin (in this case Production):

Alt text

If the Description field is in the .shp file you can also map this to the description field. We are going to leave this open in this example

Alt text

Create additional child rules to map all pipeline types as needed and then press Next:

Alt text

FieldTwin will now execute on all your created rules while parsing the SHP file and create the field layout in FieldTwin. When this is complete the following dialog box will be displayed:

Alt text

You can now locate your newly imported pipelines by using the Project View tree view:

Alt text

To complete your field layout add you subsea assets from the Asset Library and connect them:

Alt text

SHP Export

To export your field layout from FieldTwin to e.g. AutoCAD perform a multiple select on the entire field (connections & assets) and export as .shp

Alt text

Choose name for your export and press Save (this will create a .zip archive):

Alt text

And save it to your Downloads folder:

Alt text

Now Unzip the exported ZIP archive file from FieldTwin. Then launch AutoCAD Map, and select the Insert Tab and press Map Import as shown below:

Alt text

Select ESRI Shapefile (*shp) as Field of type and click OK.

Alt text

On import, select Drawing Layer and click on the highlighted small button.

Alt text

In the new window, check the button for Use data field for layer name, and select the name. Click OK. Then click OK again on the remaining window.

Alt text

Use the View Tab>Extents to center the viewport. The result should look like this after import:

Alt text

To save the imported SHP file as DWG in AutoCAD, from the top toolbar, select the Save As icon, and save as AutoCAD 2018 Drawing (*dwg):

Alt text

Or as in the illustration below, select save as AutoCAD 2018 Drawing (*dwg)

Alt text