ViewPosition.Create
Description:
Creates a new view position element.
Creates a new view position element.
public static ViewPosition Create(
Document document,
string name,
XYZ position,
ViewAnchor viewAnchor
)
-
documentThe document to which the ViewPosition will be added.
-
StringnameThe name of the view position element.
-
positionThe position of the view.
-
viewAnchorThe method the view will be positioned on the sheet.
-
document is not a project document. -or- name is an empty string or contains only whitespace. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- The given value for name is already in use as a view position name.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration