EntityGetReferenceInfo Method

For Data Shortcut reference entity (IsReferenceObject == true), gets the entity's reference information.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public DataShortcutKey GetReferenceInfo()

Return Value

DataShortcutKey
Returns the information of its referenced entity.
Example
Only if the entity is a DRef, it has reference information about its referenced entity. So this example shows API users should check the property of IsReferenceObject before calling GetReferenceInfo().
C#
1if (entity.IsReferenceObject)
2{
3    var shortcutKey = entity.GetReferenceInfo();
4}
See Also