DataShortcutsRepairBrokenDRef(ObjectId, String, Boolean) Method |
A reference entity was broken means its referenced drawing or entity was not found.
Update the broken reference entity's referenced drawing path with the target drawing path to fix the broken issue in host drawing.
If autoRepairOther == true and the specified broken DRef can be repaired successfully, we will try to repair all other broken reference entities with the same source drawing.
Namespace: Autodesk.Civil.DataShortcutsAssembly: AeccDataShortcutMgd (in AeccDataShortcutMgd.dll) Version: 13.7.0.1190
Syntaxpublic static bool RepairBrokenDRef(
ObjectId brokenDRefId,
string targetDwgFullPath,
bool autoRepairOther
)
Public Shared Function RepairBrokenDRef (
brokenDRefId As ObjectId,
targetDwgFullPath As String,
autoRepairOther As Boolean
) As Boolean
public:
static bool RepairBrokenDRef(
ObjectId brokenDRefId,
String^ targetDwgFullPath,
bool autoRepairOther
)
Parameters
- brokenDRefId ObjectId
- Object id of the broken Data Shortcut reference entity.
- targetDwgFullPath String
- Full path of the specified drawing as the new referenced drawing.
- autoRepairOther Boolean
- This indicates whether to repair other broken DRefs or not.
Return Value
BooleanReturns the repairing result.
See Also