Verifies that the view can be added to the ViewSheet.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static bool CanAddViewToSheet( Document document, ElementId viewSheetId, ElementId viewId )
Parameters
- document Document
- The document in which the views reside.
- viewSheetId ElementId
- The ViewSheet on which the view will be placed.
- viewId ElementId
- The view which will be checked to see if it can be placed on the sheet.
Return Value
BooleanTrue if the view can be added to the ViewSheet, false otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |