Import Third-Party Survey Data Using Custom Scripts

Using predefined Python custom import scripts, TBC allows you to import third-party GNSS and total station data contained in the following ASCII formats.

Format

Python import script

DAT (.dat)

starnet.py

FBK (.fbk)

TopconFbk.py

FLD (.fld)

Liscad.py

GSI (.gsi)

LeicaCoordinates.py

LeicaGSI.py

LeicaGSI3.py

HeXML (.xml)

LeicaHeXML.py

JOB (.job)

GeodimeterJob.py

RAW (.raw)

TDSRaw.py

RW5 (.rw5)

Carlsonrw5.py

SDR (.sdr)

SDR33.py

TXML (.txml)

TopconXml.py

To perform the import, a customized Python import script converts the third-party data contained in the import file into a JobXML-formatted (JXL; .jxl) file. The JXL file is then imported into TBC using the JXL file importer. Python script files (*.py) supporting the file format types listed above are installed with Trimble Business Center and are (in a typical installation) stored in C:\ProgramData\Trimble\PythonImportScripts. You can use any script as-is if it meets your data import needs. Or, if necessary, you can copy and modify it as necessary. (See your dealer for more information.)

More on the custom import process...

Note: Python is an open-source programming language that can be used to quickly and efficiently build import scripts. If you need to create or modify any of the predefined Python scripts to better suit your import needs, see your dealer or a Python developer.

To import third-party data using a custom script:

  1. Select Import to display the Import command pane.

    Note: Although you can typically use drag-and-drop to import a file into a project, it is recommended that you use the Import command pane when using a custom import script.

  2. In the Import Folder list, select the folder containing the third-party file you want to import, or click the Browse button to browse to the folder.

    The files contained in the selected folder are displayed in the Select File(s) list.

    Based on the file extension used for the third-party file you want to import, TBC first attempts to find a suitable non-custom importer to use for the import. If it fails to find one, it attempts to find a suitable Python custom importer script (located in ...\PythonImportScripts) to use. If that fails, the file is labeled as Unknown in the File Type list and cannot be imported. (The File Type indicates the type of importer that will be used.)

    If the file extension used for the third-party file matches an extension that is also used for files that can be imported using a non-custom importer, the file may be labeled with the wrong file type in the Selected File(s) list, causing the import to fail. For example, if you try to import a Leica HeXML file with an XML (.xml) extension, TBC, by default, will apply the non-custom LandXML file type. In this case, you would need to change the file type to Leica HeXML, as described in the next step, to successfully perform the import.

  3. In the Select File(s) list, ensure the third-party file you want to import has the correct File Type selected. If it does not, right click the File Type and select the correct file type.
  4. Enter any additional Settings as applicable.

    Note: If multiple import scripts are displayed in the Settings: Script drop-down list for you to choose from, be sure to select the correct one based on the data you want to import. Otherwise, you may encounter unexpected results.

  5. Click Import.

    The Python import script creates a valid JXL file from the third-party data. TBC then uses the JXL importer to import the data into your project.

    If there are any import errors or duplicate data is being imported, you will be notified with a message so you can take appropriate action.

Related topics

Drag and Drop to Import

Import Data Formats

Run an Import Summary Report