M

NumberingSchema.Create

Description:
Creates a numbering schema and registers it with a document.
public static NumberingSchema Create(
	Document aDoc,
	string schemaName,
	ElementId numberingParameterId,
	ElementId filterId,
	int priority
)
  • aDoc
    The target docment where this schema will be created.
  • String
    schemaName
    Name of the schema.
  • numberingParameterId
    The id of the parameter that represents the number of the numbered element.
  • filterId
    The filter used to determine the scope for this numbering schema, if one is provided, scopeCategories are ignored
  • Int32
    priority
    The 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