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.4.2516.0

Syntax

C#
public static bool RepairBrokenDRef(
	ObjectId brokenDRefId,
	string targetDwgFullPath,
	bool autoRepairOther
)
Visual Basic
Public Shared Function RepairBrokenDRef ( _
	brokenDRefId As ObjectId, _
	targetDwgFullPath As String, _
	autoRepairOther As Boolean _
) As Boolean
Visual C++
public:
static bool RepairBrokenDRef(
	ObjectId brokenDRefId, 
	String^ targetDwgFullPath, 
	bool autoRepairOther
)

Parameters

brokenDRefId
Type: ObjectId
Object id of the broken Data Shortcut reference entity.
targetDwgFullPath
Type: System..::..String
Full path of the specified drawing as the new referenced drawing.
autoRepairOther
Type: System..::..Boolean
This indicates whether to repair other broken DRefs or not.

Return Value

Returns the repairing result.

See Also