CreateFromLandXML Method

Creates a new instance of a TinSurface from a specified LandXML file, and adds it to the specified database.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0

Syntax

C#

public static ObjectId CreateFromLandXML(
	Database database,
	string surfaceName,
	string landXMLfileName
)

Visual Basic

Public Shared Function CreateFromLandXML ( _
	database As Database, _
	surfaceName As String, _
	landXMLfileName As String _
) As ObjectId

Visual C++

public:
static ObjectId CreateFromLandXML(
	Database^ database, 
	String^ surfaceName, 
	String^ landXMLfileName
)

Parameters

database
Type: Database
The database where the new surface is created.
surfaceName
Type: System.String
The name of the surface.
landXMLfileName
Type: System.String
The full file path of the LandXML file.

Exceptions

ExceptionCondition
System.ArgumentException Thrown when :
  1. The surfaceName is invalid or existed.
  2. The file landXMLfileName doesn't exist.
  3. The landXML file can't be loaded.

See Also