Creo Toolkit Sample Applications
This section describes the sample applications provided with Creo TOOLKIT.
Installing Sample Applications
When you install Creo TOOLKIT from the Creo Parametric CD, Creo TOOLKIT is installed under the loadpoint of Creo Parametric, that is, <creo_loadpoint>\<version>\Common Files\protoolkit\protk_appls. In Creo Parametric 6.0.0.0 and later, these sample applications are digitally signed. Refer to the Fundamentals section for more information on Installation of Creo TOOLKIT.
The Creo TOOLKIT directory contains all the headers, libraries, example applications, and documentation specific to Creo TOOLKIT. The following diagram illustrates the applications installed under the protk_appls directory after installation.
Image
Details on Sample Applications
The sample applications provided with Creo TOOLKIT are available in directories under the following path <creo_loadpoint>\<version>\Common Files\protoolkit\protk_appls.
pt_inst_test
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_install_test
make_install
The application pt_inst_test is used to check the Creo TOOLKIT Installation. It verifies the ProMenubar and custom user interface dialog box functions.
Image
pt_inst_cxx
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_install_cxx
make_install_cxx
The application pt_inst_cxx is used to check the C++ version of the Creo TOOLKIT installation. It verifies the ProMenubar and custom user interface dialog box functions that use the C++ compiler and classes.
pt_inst_test_md
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_install_test
make_install_md
The application pt_inst_test_md provides the version of the makefile for Windows platforms that uses MD libraries.
MD libraries are intended for building a DLL for Windows. Some Microsoft libraries must be linked with these libraries. For more information on MD libraries, refer to Alternate Libraries.
pt_autoaxis
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_autoaxis
make_autoaxis
The sample application pt_autoaxis automatically creates axes on revolved surfaces if they don't already exist. It is intended for manufacturing engineers who receive a model with holes which were not made with standard Creo Parametric hole features. It covers functions for feature creation and geometry analysis.
pt_userguide
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_userguide
make_userguide
The sample application pt_userguide consolidates examples that access the User Interface.
pt_examples
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_examples
make_examples
The sample application pt_examples consists of Creo TOOLKIT application examples. It provides a user interface to access many areas of Creo TOOLKIT. This application covers Creo TOOLKIT functions and modules, including ProMenubar and ProMenu based UI functions. The directory pt_examples includes sub-directories containing useful utility functions.
pt_geardesign
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_geardesign
make_geardesign
The sample application pt_geardesign provides the user interface to create gear models. This application covers feature creation using element trees and the custom user interface dialog box functions.
Image
pt_async
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_async
make_async
The sample application pt_async provides an example for the full asynchronous mode.
pt_async_md
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_async
make_async_md
The sample application pt_async_md provides an example for the asynchronous mode compilation of a DLL using MD libraries on Windows. The application requires two binaries, namely, pt_async_md.dll, and the wrapper executable pt_async_md_wrapper.exe which will load the DLL and invoke it. The application is identical to pt_asyncin all other respects. For more information on MD libraries, refer to Alternate Libraries.
pt_simple_async
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_simple_async
make_simple_async
The sample example pt_simple_async provides an example for the simple asynchronous mode.
pt_basic
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_basic
make_basic
The sample application pt_basic provides the Creo TOOLKIT application template. It verifies the user interface, notifications, and the application setup.
pt_af_examples
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_af_examples
make_af_examples
The sample application pt_af_examples provides production examples using annotation features and annotations.
pt_udf_examples
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_udf_examples
make_udf_examples
The sample application pt_udf_examples demonstrates production examples using UDF placement capabilities. These include a flexible user interface for placing UDF libraries interactively, by reading the properties of the UDF library file.
pt_mech_examples
Location
Makefile
<creo_toolkit_loadpoint>/protk_appls/pt_mech_examples
make_mech_examples
The sample application pt_mech_examples provides production examples using the ability to assign, create and modify Creo Simulate item properties.