Minimal Part 21 C++ example

Minimal C++ example based on P21read

Important Classes

 * Registry (contains information about types present in the current schema)
 * InstMgr (holds instances that have been created or that have been loaded from a file)
 * STEPfile (takes care of reading and writing Part 21 files, and creates an SDAI_Application_instance for every instance read)
 * SDAI_Application_instance (the base class for every type of instance that STEP deals with)

Include Paths
Stepcode's includes are not relative the top level of the stepcode include directory, so multiple include paths are needed to compile this example:


 * include/stepcode
 * include/stepcode/cldai
 * include/stepcode/cleditor
 * include/stepcode/clstepcore
 * include/stepcode/clutils

Related Pages

 * How to use STEPcode in an application