Import LandXML (R3IMPORTLANDXML)¶
Command: R3IMPORTLANDXML
Imports a NSW LandXML file into the current drawing — creating survey plan layers, drawing parcel polylines, placing reference marks, and storing plan metadata in AutoCAD XRecords.
Beta feature
R3IMPORTLANDXML is still in testing. Verify output against the source data before using in a final product.
Coordinates vs legal dimensions
R3Survey imports a survey plan using the coordinates in the XML file. Legal dimensions (bearings and distances as recorded on the plan) are imported as metadata and can be viewed in the R3Properties panel alongside the geometric bearings and distances derived from the coordinates. See LandXML concepts for further details about how R3Survey can be used to override the geometric properties with legal dimensions and notations.
Usage¶
- Type
R3IMPORTLANDXMLor click Import LandXML in the ribbon - Select the LandXML file (
.xml) from the file dialog - Click a point in the drawing as the insertion point — the first CgPoint in the LandXML is placed here and all other geometry is offset accordingly
- The importer creates plan layers, draws the parcels and reference marks, and reports the count of parcels imported
What is imported¶
Parcel boundaries¶
Closed polylines are drawn for each parcel in the LandXML file. Straight segments become line segments; curved boundaries are stored as arc segments (polyline bulges). Parcels are placed on the survey plan's Boundaries component layer.
Reference marks¶
Reference marks from the Monuments section are placed as AutoCAD point entities on the plan's Reference Marks layer.
Plan metadata¶
The following information is extracted from the LandXML SurveyHeader and stored in AutoCAD XRecords on each parcel entity:
| Field | LandXML source |
|---|---|
| Plan number | SurveyHeader@name (prefixed DP) |
| Survey date | AdministrativeDate[Date Of Survey] |
| Registration date | AdministrativeDate[Registration Date] |
| Surveyor name | Personnel@name |
| Surveyor firm | SurveyHeader@surveyorFirm |
| Survey type | SurveyHeader@type |
| LGA | AdministrativeArea[Local Government Area] |
| Parish | AdministrativeArea[Parish] |
| County | AdministrativeArea[County] |
| Locality | AdministrativeArea[Locality] |
| Purpose of survey | PurposeOfSurvey@name |
| Coordinate datum | CoordinateSystem@datum |
| MGA zone | CgPoints@zoneNumber |
Parcel XRecords¶
Each parcel polyline stores:
| XData key | Description |
|---|---|
PlanNo |
Plan identifier (e.g. DP123456) |
ParcelName |
Lot or parcel identifier from the XML |
Class |
Parcel class (e.g. Lot, Road, Easement) |
State |
proposed or existing |
ParcelType |
Parcel type |
ParcelFormat |
Parcel format |
Use R3PROPERTIES to view this metadata — select an imported parcel entity to see its XData.
Survey plan creation¶
If a survey plan matching the plan number does not already exist in the drawing, it is created automatically using the current survey plan component configuration. Parcels and reference marks are placed on the appropriate component layers.
If survey plan layers do not exist yet, set up your components in R3PLANLAYERSETTINGS before importing.
Coordinate handling¶
The importer asks you to pick an insertion point for the first CgPoint in the file. All other geometry is shifted by the same offset. This allows you to place the plan at a known location (e.g. a matching reference mark already in the drawing).
For MGA-based files, the zone number is read from the XML but coordinate transformation to/from MGA is not performed automatically — the geometry is imported as-is at drawing units.
LandXML versions supported¶
LandXML 1.2 (NSW LRS / ePlan schema) is the primary supported version.
See also¶
- LandXML concepts — background on the format and NSW schema
- Survey Plans — how plan layers are structured
- R3EXPORTLANDXMLNSW — export a plan back to NSW LandXML