Share

TinSurface.CreateFromLandXML(Database, String, String) Method

Note: This API is now obsolete.

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.8.0.280

Syntax

C#

[ObsoleteAttribute("Use the function with 4 parameters instead, and pass the name of the surface in the LandXML file you want to create as the 4th paraemter.", 
	false)]
public static ObjectId CreateFromLandXML(
	Database database,
	string surfaceName,
	string landXMLfileName
)

VB

<ObsoleteAttribute("Use the function with 4 parameters instead, and pass the name of the surface in the LandXML file you want to create as the 4th paraemter.", 
	false)>
Public Shared Function CreateFromLandXML ( 
	database As Database,
	surfaceName As String,
	landXMLfileName As String
) As ObjectId

C++

public:
[ObsoleteAttribute(L"Use the function with 4 parameters instead, and pass the name of the surface in the LandXML file you want to create as the 4th paraemter.", 
	false)]
static ObjectId CreateFromLandXML(
	Database^ database, 
	String^ surfaceName, 
	String^ landXMLfileName
)

Parameters

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

Return Value

ObjectId

Exceptions

ExceptionCondition
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

Reference

Was this information helpful?