Method AddCustomProperty
AddCustomProperty(string, string, CadSheetSetPropertyFlags)
Adds a custom property as Add Custom Property does (D10). The name must not be empty, must not hold a dot or a double quote (a field could not carry it) and must not be one of the set's properties already, letter case ignored. A property of the sheet set's own is held by the set alone. A property of every sheet is held by the set as its definition, with the default value, and given at that value to every sheet in the set, in subsets and out of them; a sheet made later takes it at the default.
public void AddCustomProperty(string name, string defaultValue, CadSheetSetPropertyFlags owner)
Parameters
namestringThe name.
defaultValuestringThe value, or the default value of a sheet property; null or empty for none.
ownerCadSheetSetPropertyFlags
Exceptions
- ArgumentNullException
Thrown when the name is null.
- ArgumentException
Thrown when the name is empty, holds a dot or a double quote, or is a property's already, or the owner is neither Set nor Sheet.
- InvalidOperationException
Thrown outside Change(Action<CadSheetSet>).