M

SystemZoneElementType.CreateSketchBased

Description:
Creates a new element type for sketch-based system-zone elements and adds it to the document.
public static SystemZoneElementType CreateSketchBased(
	Document doc,
	string name
)
  • doc
    The document where the new type is created.
  • String
    name
    The name of new type.
Return Value SystemZoneElementType The newly created system-zone element type.
  • name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- name is an empty string. -or- This name is already used by an existing system-zone element type in the document.
  • A non-optional argument was null
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements).
  • The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
  • The document has no open transaction.