Build Sample Part With Geometry
The GEOMETRY sample program demonstrates how to construct a product structure with an empty shape representation to hold some geometry. This program builds all of the STEP backbone entities that go into creating a product with geometry.
This structure is common to all of the STEP application protocols. Depending on the AP, the product may also need some configuration management information, like a design owner, approvals, category, etc. For simplicity, we do not create any of that in this sample, but a real application would.
This program creates the data set and saves it as a STEP Part 21 file called "output_file.stp". This is a text file, so you can look at it with a text editor or the STEP Part 21 file browser to see how the information is represented.
In the list above, select your Visual Studio version or platform, then right click on the link to save the zipped project files to your local disk. Unpack the zipfile.
On Windows, open the enclosed project file with Visual Studio and compile the program by selecting "Build All". The project creates a Console application that you can run from the command line. When using the 64bit version of ST-Developer, change the platform from "win32" to "X64" in the Visual Studio Configuration Manager before building.
On MacOS, Linux, and other Unix systems, the project directory contains a makefile that builds the sample program. The makefile uses the ROSE, ROSE_INCLUDE, and ROSE_LIB environment variables described in the ST-Developer installation notes. Compile the program by typing "make".
The Windows projects also include a makefile that you can use by typing "nmake", but you must run vcvars32.bat (found in the Visual Studio C++ bin directory) to make sure that the C++ compiler is in the command line search path.