M

ViewPosition.Create

Description:
Creates a new view position element.
public static ViewPosition Create(
	Document document,
	string name,
	XYZ position,
	ViewAnchor viewAnchor
)
  • document
    The document to which the ViewPosition will be added.
  • String
    name
    The name of the view position element.
  • position
    The position of the view.
  • viewAnchor
    The method the view will be positioned on the sheet.
Return Value ViewPosition The newly created view position element.
  • 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