TinSurfaceCreateFromLandXML(Database, String, String, String) Method |
Creates a new instance of a TinSurface from a specified surface in the LandXML file,
and adds it to the specified database.
If the specified surface name does not exist in the LandXML file, this function will
create an empty surface in the specified database.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId CreateFromLandXML(
Database database,
string newSurfaceName,
string landXMLfileName,
string landXMLSurfaceName
)
Public Shared Function CreateFromLandXML (
database As Database,
newSurfaceName As String,
landXMLfileName As String,
landXMLSurfaceName As String
) As ObjectId
public:
static ObjectId CreateFromLandXML(
Database^ database,
String^ newSurfaceName,
String^ landXMLfileName,
String^ landXMLSurfaceName
)
Parameters
- database Database
- The database where the new surface is created.
- newSurfaceName String
- The name of the surface.
- landXMLfileName String
- The full file path of the LandXML file.
- landXMLSurfaceName String
- The name of the surface which is saved in the LandXML file.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when :
- The newSurfaceName is invalid or existed.
- The file landXMLfileName doesn't exist.
- The landXML file can't be loaded.
|
See Also