Skip to content

Export Hexagon/Leica XML

R3Survey provides two commands for exporting selected drawing entities to Hexagon (Leica) LandXML format — the XML format used by Leica field instruments and office software.

Commands

Command Platform Description
R3EXPORTLEICAXMLACAD AutoCAD + Civil 3D Export selected entities to Hexagon LandXML
R3EXPORTLEICAXMLC3D Civil 3D only Export selected entities and CogoPoints to Hexagon LandXML

These export to the Hexagon/Leica XML format, which is distinct from the NSW LandXML format used by NSW LRS. Use R3EXPORTLANDXMLNSW for NSW ePlan submissions.


R3EXPORTLEICAXMLACAD

AutoCAD and Civil 3D

Exports selected AutoCAD entities (lines, arcs, polylines) to a Hexagon LandXML file. Each entity becomes a FeatureGeom element. Shared vertices are deduplicated and exported as CgPoints.

Usage

  1. Type R3EXPORTLEICAXMLACAD
  2. Select the entities to export
  3. Choose a save location for the .xml file

What is exported

  • Lines, arcs, and polylines from the selection
  • Each unique vertex becomes a numbered CgPoint
  • Feature names come from PlanFeature XData if set (see R3PFNAME below)
  • Entities without a PlanFeature tag are exported with a default name

R3EXPORTLEICAXMLC3D

Civil 3D only

The Civil 3D version of the Hexagon XML export. Functions identically to R3EXPORTLEICAXMLACAD but also includes Civil 3D CogoPoints from the selection, and defaults the save folder to the MLS C3D project directory.

Usage

  1. Type R3EXPORTLEICAXMLC3D
  2. Select the entities and/or CogoPoints to export
  3. Choose a save location (defaults to the MLS C3D project folder)

R3PFNAME

Command: R3PFNAME

Tags selected entities with a PlanFeature name stored in XData. This name is used as the feature identifier in the exported Hexagon XML.

Usage

  1. Type R3PFNAME
  2. Enter the PlanFeature name (e.g. L7, BDY, RM1)
  3. Select the entities to tag

The name is stored as PFNAME in the entity's XData and appears as the feature name in the Hexagon XML export.


R3EXPORTPLAN / R3IMPORTPLAN

These commands transfer survey plans between drawings using a shared temporary folder — useful for combining plans from multiple source drawings.

R3EXPORTPLAN

Exports one or more survey plans from the current drawing to a temporary folder (%TEMP%\R3SurveyPlanExport\).

Usage: 1. Type R3EXPORTPLAN 2. Select an entity from the first plan to export, then press Enter 3. Repeat to select additional plans, or press Enter to finish 4. Each plan is written as: - {PlanName}.r3plan — plan metadata (name, components, settings) - {PlanName}.dwg — geometry with XData intact

R3IMPORTPLAN

Imports plans from the temporary folder (%TEMP%\R3SurveyPlanExport\) into the current drawing.

Usage: 1. Type R3IMPORTPLAN 2. All .r3plan files in the temp folder are imported, matching source component types to the target drawing's component configuration

Note

R3EXPORTPLAN and R3IMPORTPLAN use a shared temp folder — export from drawing A, then switch to drawing B and import. The temp folder is not automatically cleared between sessions.


See also