TinSurfaceCreateFromIMX Method

Creates a new instance of a TinSurface from a specified IMX file to the specified database.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId CreateFromIMX(
	Database database,
	ObjectId styleId,
	string imxFileName,
	string surfaceName,
	string gitHash,
	string query,
	bool doCoordSysConversion
)

Parameters

database  Database
The database where the new surface should be created.
styleId  ObjectId
The object id of the surface style. Passing AcDbObjectId::kNull will create with the default style.
imxFileName  String
The full file path of the IMX file.
surfaceName  String
The name of the surface within the IMX file.
gitHash  String
The git hash value.
query  String
The query value.
doCoordSysConversion  Boolean
true to perform coordinate system conversion if possible

Return Value

ObjectId
Exceptions
ExceptionCondition
[!:System.ArgumentException] Thrown when :
  1. 1.The file imxFileName doesn't exist.
  2. 2.The IMX file can't be loaded.
See Also