NumberingSchema.Create
Description:
Creates a numbering schema and registers it with a document.
Creates a numbering schema and registers it with a document.
public static NumberingSchema Create(
Document aDoc,
string schemaName,
ElementId numberingParameterId,
ElementId filterId,
int priority
)
-
aDocThe target docment where this schema will be created.
-
StringschemaNameName of the schema.
-
numberingParameterIdThe id of the parameter that represents the number of the numbered element.
-
filterIdThe filter used to determine the scope for this numbering schema, if one is provided, scopeCategories are ignored
-
Int32priorityThe priority of the schema
Return Value
NumberingSchema
Return schema which has not been added to a document or
registered with a numbering tracker. If schema was not created,
an exception is raised.
-
The given schemaName has is invalid or allready in use. -or- The input schemaName already exists in the target document. -or- The given numberingParameterId is not compatible with the filterId provided for this numbering schema.
-
A non-optional argument was null