Every document of this class must have N pages

This type of structure rule can be added only at the class level. This means that the number of pages in a document cannot be specified on the Project Class and inherited by all child classes. The reason for this is because it is rare for a project to contain classes that have the same page count or document structure. You can add a document structure rule for a class that specifies the number of pages that need to be present in a document by following these steps:

  1. Open the Project Tree window if it is not already open.
  2. Open the Details window if it is not already open.
  3. Expand the Project Tree and select the class where you are adding the document structure rule.
  4. On the Ribbon Design tab, in the Create group, select Structure Rule Add Structure Rule icon.

    A new document structure rule is added to your class, the class contents are displayed automatically, the Document Structure Rule properties are displayed in the Details window, and the name of the new rule is editable.

  5. Type a descriptive name for the document structure rule and press Enter.
  6. In the Details window, configure the Document Structure Rule properties by selecting a Rule type.

    If you are using a Document Review Script Method, select it from the Script method list or click Methods to open the Project Settings - Document Review tab to edit or add new methods.

    If you select Every document of this class must have N pages, configure the following options:

    1. Type a helpful Error description. This message should include the cause of the error as well as a suggestion about how to fix the issue.

      For example, "Every document in the Invoice class should have 4 pages exactly. If a document has too few or too many pages, examine the pages carefully and split or merge the documents so that the pages contained within and the page count are correct."

    2. Before specifying a value for the "Number of pages" option, first specify the Page match.

      If the class documents are all the same length, select "Exactly". If the documents have no more than a certain number of pages, select "At Most", and if the documents have varying lengths but always have a certain minimum number of pages, select "At Least".

    3. Type a Number of pages value.