SystemZoneElementType.CreateSpaceBased
Description:
Creates a new element type for space-based system-zone elements and adds it to the document.
Creates a new element type for space-based system-zone elements and adds it to the document.
public static SystemZoneElementType CreateSpaceBased(
Document doc,
string name
)
-
docThe document where the new type is created.
-
StringnameThe name of new 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.