ViewRemoveLinkOverrides Method |
Deletes the graphical link overrides in the current view.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void RemoveLinkOverrides(
ElementId linkId
)
Public Sub RemoveLinkOverrides (
linkId As ElementId
)
public:
void RemoveLinkOverrides(
ElementId^ linkId
)
member RemoveLinkOverrides :
linkId : ElementId -> unit
Parameters
- linkId ElementId
-
The id of the RevitLinkType or RevitLinkInstance.
Exceptions
Remarks
If the input linkId references
RevitLinkType, then the link overrides will be set to default.
If the input linkId references
RevitLinkInstance, then the link overrides will be removed and the settings of
RevitLinkType will be used for this instance.
Examplepublic static void RemoveLinkOverridesInView(View view, ElementId linkId)
{
using (Transaction transaction = new Transaction(view.Document, "Remove link overrides"))
{
transaction.Start();
view.RemoveLinkOverrides(linkId);
transaction.Commit();
}
}
See Also