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:
- Open the Project Tree window if it is not already open.
- Open the Details window if it is not already open.
- Expand the Project Tree and select the class where you are adding the document structure rule.
- On the Ribbon Design tab, in the Create group, select Structure Rule .
- Type a descriptive name for the document structure rule and press Enter.
Details window, configure the
Document Structure Rule properties by selecting a
If you select Every document of this class must have N pages, configure the following options:
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."
Before specifying a value for the
"Number of pages" option, first specify the
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".
- Type a Number of pages value.
- 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.