EntityGetReferenceInfo Method |
For Data Shortcut reference entity (IsReferenceObject == true), gets the entity's reference information.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic DataShortcutKey GetReferenceInfo()
Public Function GetReferenceInfo As DataShortcutKey
public:
DataShortcutKey^ GetReferenceInfo()
Return Value
DataShortcutKeyReturns 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().
1if (entity.IsReferenceObject)
2{
3 var shortcutKey = entity.GetReferenceInfo();
4}
See Also