Application Hierarchy
 
The rules of object orientation require a certain hierarchy of object creation when you start a Creo Object TOOLKIT Java application. The method invoked must be pfcGlobal.GetProESession, which returns a handle to the current session of the Creo application. To get the full scope of Creo Object TOOLKIT Java functionality, the application should cast the session object to WSession.
The application must iterate down to the level of object you want to access. For example, to list all the datum axes contained in the hole features in all models in session, do the following:
1. Get a handle to the session:
2. Get the models that are active in the session:
3. Get the feature model items in each model:
4. Filter out the features of type hole:
5. Get the subitems in each feature that are axes:
Was this helpful?