ObjectVersionCheckerIsEntityReferenceCreatable Method |
Checks whether it is allowed to create a reference to an entity of the specified class from an external drawing.
Namespace: Autodesk.CivilAssembly: AeccDrainageDesignMgd (in AeccDrainageDesignMgd.dll) Version: 13.9.960.0
Syntaxpublic static bool IsEntityReferenceCreatable(
Database database,
RXClass rxClass,
string sourceDrawing
)
Public Shared Function IsEntityReferenceCreatable (
database As Database,
rxClass As RXClass,
sourceDrawing As String
) As Boolean
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
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