Library | Package Java Toolkit

Class pfcGlobal

package com.ptc.pfc.pfcGlobal;

public class pfcGlobal



Description

Contains global CIP definitions for module "pfcGlobal"



Method Summary
static stringseqGetProEArguments ()
    For non-C++ toolkit bindings (Java, VB, javascript) this method returns the command line arguments passed by Creo Parametric to the the application.
static StringGetProEBuildCode ()
    For non-C++ toolkit bindings (Java, VB, javascript) this method returns the Creo Parametric build code (for example, "2000010") of the invoking application.
static SessionGetProESession ()
DEPRECATED: since Creo 4
SUCCESSOR(S): GetCurrentSession

    Retrieves an object representing the application session, with the application information set to defaults.
static StringGetProEVersion ()
    For non-C++ toolkit bindings (Java, VB, javascript) this method returns the Creo Parametric version of Creo Parametric.

Method Detail

GetProESession

static SessionGetProESession ()

DEPRECATED: since Creo 4
SUCCESSOR(S): GetCurrentSession


    Retrieves an object representing the application session, with the application information set to defaults.
Manual References:
Session Objects: Getting the Session Object
Returns:
The session object, which is the top level object used to access information in Creo Parametric.


GetProEArguments

static stringseqGetProEArguments ()


    For non-C++ toolkit bindings (Java, VB, javascript) this method returns the command line arguments passed by Creo Parametric to the the application.

The arguments are the ones starting with +*, where * is any alphabetic character (A-Z, a-z), or -#, where # is any capital alphabetic character (A-Z). The arguments may only be accessed in synchronous mode.

For the C++ bindling, this method should not be used. Use instead the arguments passed to user_initialize.
Manual References:
Session Objects: Getting Session Information, Session Objects: Getting Session Information
Returns:
The array of command-line arguments.


GetProEBuildCode

static StringGetProEBuildCode ()


    For non-C++ toolkit bindings (Java, VB, javascript) this method returns the Creo Parametric build code (for example, "2000010") of the invoking application.

This data may only be accessed in synchronous mode.

For the C++ bindling, this method should not be used. Use instead the arguments passed to user_initialize.
Manual References:
Session Objects: Getting Session Information
Returns:
The build code


GetProEVersion

static StringGetProEVersion ()


    For non-C++ toolkit bindings (Java, VB, javascript) this method returns the Creo Parametric version of Creo Parametric.

This data is only accessible in synchronous mode.

For the C++ bindling, this method should not be used. Use instead the arguments passed to user_initialize.
Manual References:
Session Objects: Getting Session Information, Session Objects: Getting Session Information
Returns:
The Creo Parametric version