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.DataShortcuts
Assembly: AeccDataShortcutMgd (in AeccDataShortcutMgd.dll) Version: 13.7.0.1190
Syntax
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

Boolean
Returns the repairing result.
See Also