# Validation of STEP Files

- Validate against Express
- Validation Results

``

`
Validate` is an application program used to validate exchange structures, that is, files prepared according to 'ISO 10303-21: Implementation methods: Clear text encoding of the exchange structure'. After importing the submitted exchange structure to a temporary repository, validation is performed in two stages:

- validation of all entity instances contained in all models of the repository;
- validation of all global and uniqueness rules for all schema instances of the repository.

In the first stage for each entity instance the following operations are performed:

- validate required explicit attributes assigned;
- validate inverse attributes;
- validate explicit attributes references;
- validate aggregates size;
- validate aggregates uniqueness;
- validate array not optional;
- validate where rule.

In the second stage the following two operations on schema instances are performed:

- validate global rule;
- validate uniqueness rule.

## Validate against Express

Run validation of the created STEP file (family1.p21) file:

- Right click on the Express project Family node and select the Validate against Express menu item.
- The dialog window to select the part21 file you want to validate appears (see Figure 1).
- Select family1.p21 file from JSDAI Java project ('FamilyJava') and click Open button.

Figure 1. Select the part21 file to validate dialog window
To top

## Validation Results

The following results are produced by the program:

- the name of the exchange structure and the name of the repository to which this structure is imported;
- for each model the total number of instances and a list of instances not conforming to the validation; for each such instance also a more specific information (like violated rules or atributes with mandatory values not set) is displayed; in the case when a where rule is violated its parent item (either partial entity data type or defined type) is indicated;
- for each model the number of instances not conforming to the validation;
- for each schema instance the total number of global rules and a list of global rules which are not satisfied by the population associated with this schema instance; for each such global rule violated where rules are given;
- for each schema instance the number of global rules for which validation has failed (`false` was returned);
- for each schema instance a list of violated uniqueness rules (if any); for each such rule entity instances not conforming to the validation are displayed;
- for each schema instance the number of violated uniqueness rules.

You should see the list of errors in the:

- Problems panel (see Figure 2). Click on the error line to view the line in the Editor panel.
- Console panel (see Figure 3).

Figure 2. Problems panel with provided validation errors
Figure 3. Console panel with validation results
To top

Copyright © 2005-2008 LKSoftWare GmbH. All Rights Reserved. JSDAI is a registered trade mark of LKSoftWare GmbH.