ObjectVersionCheckerIsEntityReferenceCreatable Method

Checks whether it is allowed to create a reference to an entity of the specified class from an external drawing.

Namespace: Autodesk.Civil
Assembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntax
public static bool IsEntityReferenceCreatable(
	Database database,
	RXClass rxClass,
	string sourceDrawing
)

Parameters

database  Database
The target database where the reference would be created.
rxClass  RXClass
The runtime class of the entity type to check.
sourceDrawing  String
The file path to the source drawing containing the entity to reference.

Return Value

Boolean
True if a reference to the entity can be created; otherwise, false. Returns false when there are data compatibility issues that prevent reference creation.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when database, rxClass, or sourceDrawing is null.
ArgumentExceptionThrown when sourceDrawing is empty or the file does not exist.
Remarks
For host drawing, all the entities should be compatible with App version; While for source drawing, the specified class should be compatible or older with App version.
See Also