Share

TinSurface.CreateFromIMX 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.280

Syntax

C#

public static ObjectId CreateFromIMX(
	Database database,
	ObjectId styleId,
	string imxFileName,
	string surfaceName,
	string gitHash,
	string query,
	bool doCoordSysConversion
)

VB

Public Shared Function CreateFromIMX ( 
	database As Database,
	styleId As ObjectId,
	imxFileName As String,
	surfaceName As String,
	gitHash As String,
	query As String,
	doCoordSysConversion As Boolean
) As ObjectId

C++

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

Reference

Was this information helpful?