ISO 10303-21


STEP-File is a widely used data exchange form of STEP. ISO 10303 can represent 3D objects in Computer-aided design and related information. Due to its ASCII structure, a STEP-file is easy to read, with typically one instance per line. The format of a STEP-File is defined in ISO 10303-21 Clear Text Encoding of the Exchange Structure.
ISO 10303-21 defines the encoding mechanism for representing data conforming to a particular schema in the EXPRESS data modeling language specified in ISO 10303-11. A STEP-File is also called p21-File and STEP Physical File. The file extensions .stp and .step indicate that the file contains data conforming to STEP Application Protocols while the extension .p21 should be used for all other purposes.

History

Some details to take note of:

Example

A typical example looks like this:

ISO-10303-21;
HEADER;
FILE_DESCRIPTION;
FILE_NAME,
/* organization */,
/* preprocessor_version */ ' ',
/* originating_system */ 'IDA-STEP',
/* authorization */ ' ');
FILE_SCHEMA );
ENDSEC;
DATA;
  1. 10=ORGANIZATION;
  2. 11=PRODUCT_DEFINITION_CONTEXT;
  3. 12=APPLICATION_CONTEXT;
  4. 13=APPLICATION_PROTOCOL_DEFINITION;
  5. 14=PRODUCT_DEFINITION;
  6. 15=PRODUCT_DEFINITION_FORMATION;
  7. 16=PRODUCT;
  8. 17=PRODUCT_RELATED_PRODUCT_CATEGORY;
  9. 18=PRODUCT_CONTEXT;
  10. 19=APPLIED_ORGANIZATION_ASSIGNMENT;
  11. 20=ORGANIZATION_ROLE;
ENDSEC;
END-ISO-10303-21;

HEADER section

As seen in the above example, the file is split into two sections following the initial keyword ISO-10303-21;:
The HEADER section has a fixed structure consisting of 3 to 6 groups in the given order. Except for the data fields time_stamp and FILE_SCHEMA all fields may contain empty strings.
The last three header groups are only valid in second edition files.
The DATA section contains application data according to one specific express schema. The encoding of this data follows some simple principles.
Possibly the only advantage of STEP files is that they are widely adopted in many CAD software. On the other hand, its format, and specially the EXPRESS has a few disadvantages: