| • | ie_browser— Specifies that Creo Parametric will use the Internet Explorer browser engine in a Creo agent process initiated from the Creo process. |
| • | chromium_browser—This is the default value. Specifies that Creo Parametric will use the Chromium browser engine in a Creo agent process initiated from the Creo process. |

| 1. | Ensure that Web.Link is set up to run properly. See the section Setting Up Web.Link for more details. |
| 2. | Type the URL for the page directly into the embedded browser address bar, follow a link in the embedded browser to a Web.Link enabled page, or load the web page into the embedded browser via the navigation tools in the Creo Parametric navigator. The Creo Parametric navigator contains the following navigation tools:
|
| 3. | Depending upon how the application web page is constructed, the Web.Link code may run upon loading of the page, or may be invoked by changes in the forms and components embedded in the web page. |
| 4. | Navigate to a new Web.Link enabled page using the same techniques defined above. Note
The Web.Link pages do not stay resident in the Creo Parametric session; the application code is only accessible while the page is loaded in the embedded browser.
|
| • | Creo Parametric-Related Classes—Contain unique methods and properties that are directly related to the functions in Creo Parametric. See the section Pro/ENGINEER-Related Classes for more information. |
| • | Compact Data Classes—Classes containing data needed as arguments to some Web.Link methods. See the section, Compact Data Classes, for additional information. |
| • | Union Classes—A class with a potential for multiple types of values. See the section Unions for additional information. |
| • | Sequence Classes—Expandable arrays of objects or primitive data types. See the section Sequences for more information. |
| • | Array Classes—Arrays that are limited to a certain size. See the section Arrays for more information. |
| • | Enumeration Classes—Defines enumerated types. See the section Enumeration Classes for more information. |
| • | Module-Level Classes—Contains static methods used to initialize certain Web.Link objects. See the Module-Level Classes section for more information. |
var window;
window.SetBrowserSize (0.0);// The window has not yet
//been initialized.
Repaint(); // There is no invoking object.var session = pfcCreat ("MpfcCOMGlobal").GetProESession();
var window = session.CurrentWindow;
// You have initialized the window object.
window.SetBrowserSize (0.0);
window.Repaint();| • | pfcObject |
| • | pfcChild |
| • | pfcActionSource |
| • | pfcModelItem |
| • | pfcFeature |
| • | pfcComponentFeat |
var instrs = pfcCreate ("pfcBOMExportInstructions").Create();class ParamValue
{
pfcParamValueType discr;
string StringValue;
integer IntValue;
boolean BoolValue;
number DoubleValue;
integer NoteId;
};var models = pfcCreate ("pfcModels");| • | Item() |
| • | Set() |
| • | Append() |
| • | Insert() |
| • | InsertSeq() |
| • | Remove() |
| • | Clear() |
var point = pfcCreate ("pfcPoint3D");var modelType = pfcCreate ("pfcModelType");| • | PARAM_INTEGER—A value in the pfcParamValueType enumeration class that is used to indicate that a parameter stores an integer value. |
| • | ITEM_FEATURE—An value in the pfcModelItemType enumeration class that is used to indicate that a model item is a feature. |
var session = pfcCreate ("MpfcCOMGlobal").GetProESession();pfcCefCreate (className);<creo_weblink_loadpoint>/weblinkexamples /jscript/pfcUtils.js| • | boolean—a JavaScript Boolean, with valid values true and false. |
| • | integer—a JavaScript Number of integral type. |
| • | number—a JavaScript Number; it need not be integral. |
| • | string—a JavaScript String object or string literal. |
pfcModelItems ListItems (/*optional*/ pfcModelItemType Type);/*optional*/ pfcModel GetModel(string Name,
pfcModelType Type);|
Parent
|
Child
|
|---|---|
|
pfcSession
|
pfcModel
|
|
pfcSession
|
pfcWindow
|
|
pfcModel
|
pfcModelItem
|
|
pfcSolid
|
pfcFeature
|
|
pfcModel
|
pfcParameter
|
|
pfcModel
|
pfcExternalDataAccess
|
|
pfcPart
|
pfcMaterial
|
|
pfcModel
|
pfcView
|
|
pfcModel2D
|
pfcView2D
|
|
pfcSolid
|
pfcXSection
|
|
pfcSession
|
pfcDll (Creo TOOLKIT)
|
|
pfcSession
|
pfcApplication (J-Link)
|
|
Exception
|
Purpose
|
|---|---|
|
pfcExceptions.XBadExternalData
|
An attempt to read contents of an external data object which has been terminated.
|
|
pfcExceptions.XBadGetArgValue
|
Indicates attempt to read the wrong type of data from the pfcArgValue union.
|
|
pfcExceptions.XBadGetExternalData
|
Indicates attempt to read the wrong type of data from the pfcExternalData union.
|
|
pfcExceptions.XBadGetParamValue
|
Indicates attempt to read the wrong type of data from the pfcParamValue union.
|
|
pfcExceptions.XBadOutlineExcludeType
|
Indicates an invalid type of item was passed to the outline calculation method.
|
|
pfcExceptions.XCannotAccess
|
The contents of a Web.Link object cannot be accessed in this situation.
|
|
pfcExceptions.XEmptyString
|
An empty string was passed to a method that does not accept this type of input.
|
|
pfcExceptions.XInvalidEnumValue
|
Indicates an invalid value for a specified enumeration class.
|
|
pfcExceptions.XInvalidFileName
|
Indicates a file name passed to a method was incorrectly structured.
|
|
pfcExceptions.XInvalidFileType
|
Indicates a model descriptor contained an invalid file type for a requested operation.
|
|
pfcExceptions.XInvalidModelItem
|
Indicates that the item requested to be used is no longer usable (for example, it may have been deleted).
|
|
pfcExceptions.XInvalidSelection
|
Indicates that the pfcSelection passed is invalid or is missing a needed piece of information. For example, its component path, drawing view, or parameters.
|
|
pfcExceptions.XJLinkApplicationException
|
Contains the details when an attempt to call code in an external J-Link application failed due to an exception.
|
|
pfcExceptions.XJLinkApplicationInactive
|
Unable to operate on the requested pfcJLinkApplication object because it has been shut down.
|
|
pfcExceptions.XJLinkTaskNotFound
|
Indicates that the J-Link task with the given name could not be found and run.
|
|
pfcExceptions.XModelNotInSession
|
Indicates that the model is no longer in session; it may have been erased or deleted.
|
|
pfcExceptions.XNegativeNumber
|
Numeric argument was negative.
|
|
pfcExceptions.XNumberTooLarge
|
Numeric argument was too large.
|
|
pfcExceptions.XProEWasNotConnected
|
The Creo Parametric session is not available so the operation failed.
|
|
pfcExceptions.XSequenceTooLong
|
Sequence argument was too long.
|
|
pfcExceptions.XStringTooLong
|
String argument was too long.
|
|
pfcExceptions.XUnimplemented
|
Indicates unimplemented method.
|
|
pfcExceptions.XUnknownModelExtension
|
Indicates that a file extension does not match a known Creo Parametric model type.
|
|
pfcXToolkitError Child Class
|
Creo Parametric TOOLKIT Error
|
#
|
|---|---|---|
|
pfcExceptions.XToolkitGeneralError
|
PRO_TK_GENERAL_ERROR
|
-1
|
|
pfcExceptions.XToolkitBadInputs
|
PRO_TK_BAD_INPUTS
|
-2
|
|
pfcExceptions.XToolkitUserAbort
|
PRO_TK_USER_ABORT
|
-3
|
|
pfcExceptions.XToolkitNotFound
|
PRO_TK_E_NOT_FOUND
|
-4
|
|
pfcExceptions.XToolkitFound
|
PRO_TK_E_FOUND
|
-5
|
|
pfcExceptions.XToolkitLineTooLong
|
PRO_TK_LINE_TOO_LONG
|
-6
|
|
pfcExceptions.XToolkitContinue
|
PRO_TK_CONTINUE
|
-7
|
|
pfcExceptions.XToolkitBadContext
|
PRO_TK_BAD_CONTEXT
|
-8
|
|
pfcExceptions.XToolkitNotImplemented
|
PRO_TK_NOT_IMPLEMENTED
|
-9
|
|
pfcExceptions.XToolkitOutOfMemory
|
PRO_TK_OUT_OF_MEMORY
|
-10
|
|
pfcExceptions.XToolkitCommError
|
PRO_TK_COMM_ERROR
|
-11
|
|
pfcExceptions.XToolkitNoChange
|
PRO_TK_NO_CHANGE
|
-12
|
|
pfcExceptions.XToolkitSuppressedParents
|
PRO_TK_SUPP_PARENTS
|
-13
|
|
pfcExceptions.XToolkitPickAbove
|
PRO_TK_PICK_ABOVE
|
-14
|
|
pfcExceptions.XToolkitInvalidDir
|
PRO_TK_INVALID_DIR
|
-15
|
|
pfcExceptions.XToolkitInvalidFile
|
PRO_TK_INVALID_FILE
|
-16
|
|
pfcExceptions.XToolkitCantWrite
|
PRO_TK_CANT_WRITE
|
-17
|
|
pfcExceptions.XToolkitInvalidType
|
PRO_TK_INVALID_TYPE
|
-18
|
|
pfcExceptions.XToolkitInvalidPtr
|
PRO_TK_INVALID_PTR
|
-19
|
|
pfcExceptions.XToolkitUnavailableSection
|
PRO_TK_UNAV_SEC
|
-20
|
|
pfcExceptions.XToolkitInvalidMatrix
|
PRO_TK_INVALID_MATRIX
|
-21
|
|
pfcExceptions.XToolkitInvalidName
|
PRO_TK_INVALID_NAME
|
-22
|
|
pfcExceptions.XToolkitNotExist
|
PRO_TK_NOT_EXIST
|
-23
|
|
pfcExceptions.XToolkitCantOpen
|
PRO_TK_CANT_OPEN
|
-24
|
|
pfcExceptions.XToolkitAbort
|
PRO_TK_ABORT
|
-25
|
|
pfcExceptions.XToolkitNotValid
|
PRO_TK_NOT_VALID
|
-26
|
|
pfcExceptions.XToolkitInvalidItem
|
PRO_TK_INVALID_ITEM
|
-27
|
|
pfcExceptions.XToolkitMsgNotFound
|
PRO_TK_MSG_NOT_FOUND
|
-28
|
|
pfcExceptions.XToolkitMsgNoTrans
|
PRO_TK_MSG_NO_TRANS
|
-29
|
|
pfcExceptions.XToolkitMsgFmtError
|
PRO_TK_MSG_FMT_ERROR
|
-30
|
|
pfcExceptions.XToolkitMsgUserQuit
|
PRO_TK_MSG_USER_QUIT
|
-31
|
|
pfcExceptions.XToolkitMsgTooLong
|
PRO_TK_MSG_TOO_LONG
|
-32
|
|
pfcExceptions.XToolkitCantAccess
|
PRO_TK_CANT_ACCESS
|
-33
|
|
pfcExceptions.XToolkitObsoleteFunc
|
PRO_TK_OBSOLETE_FUNC
|
-34
|
|
pfcExceptions.XToolkitNoCoordSystem
|
PRO_TK_NO_COORD_SYSTEM
|
-35
|
|
pfcExceptions.XToolkitAmbiguous
|
PRO_TK_E_AMBIGUOUS
|
-36
|
|
pfcExceptions.XToolkitDeadLock
|
PRO_TK_E_DEADLOCK
|
-37
|
|
pfcExceptions.XToolkitBusy
|
PRO_TK_E_BUSY
|
-38
|
|
pfcExceptions.XToolkitInUse
|
PRO_TK_E_IN_USE
|
-39
|
|
pfcExceptions.XToolkitNoLicense
|
PRO_TK_NO_LICENSE
|
-40
|
|
pfcExceptions.XToolkitBsplUnsuitableDegree
|
PRO_TK_BSPL_UNSUITABLE_DEGREE
|
-41
|
|
pfcExceptions.XToolkitBsplNonStdEndKnots
|
PRO_TK_BSPL_NON_STD_END_KNOTS
|
-42
|
|
pfcExceptions.XToolkitBsplMultiInnerKnots
|
PRO_TK_BSPL_MULTI_INNER_KNOTS
|
-43
|
|
pfcExceptions.XToolkitBadSrfCrv
|
PRO_TK_BAD_SRF_CRV
|
-44
|
|
pfcExceptions.XToolkitEmpty
|
PRO_TK_EMPTY
|
-45
|
|
pfcExceptions.XToolkitBadDimAttach
|
PRO_TK_BAD_DIM_ATTACH
|
-46
|
|
pfcExceptions.XToolkitNotDisplayed
|
PRO_TK_NOT_DISPLAYED
|
-47
|
|
pfcExceptions.XToolkitCantModify
|
PRO_TK_CANT_MODIFY
|
-48
|
|
pfcExceptions.XToolkitCheckoutConflict
|
PRO_TK_CHECKOUT_CONFLICT
|
-49
|
|
pfcExceptions.XToolkitCreateViewBadSheet
|
PRO_TK_CRE_VIEW_BAD_SHEET
|
-50
|
|
pfcExceptions.XToolkitCreateViewBadModel
|
PRO_TK_CRE_VIEW_BAD_MODEL
|
-51
|
|
pfcExceptions.XToolkitCreateViewBadParent
|
PRO_TK_CRE_VIEW_BAD_PARENT
|
-52
|
|
pfcExceptions.XToolkitCreateViewBadType
|
PRO_TK_CRE_VIEW_BAD_TYPE
|
-53
|
|
pfcExceptions.XToolkitCreateViewBadExplode
|
PRO_TK_CRE_VIEW_BAD_EXPLODE
|
-54
|
|
pfcExceptions.XToolkitUnattachedFeats
|
PRO_TK_UNATTACHED_FEATS
|
-55
|
|
pfcExceptions.XToolkitRegenerateAgain
|
PRO_TK_REGEN_AGAIN
|
-56
|
|
pfcExceptions.XToolkitDrawingCreateErrors
|
PRO_TK_DWGCREATE_ERRORS
|
-57
|
|
pfcExceptions.XToolkitUnsupported
|
PRO_TK_UNSUPPORTED
|
-58
|
|
pfcExceptions.XToolkitNoPermission
|
PRO_TK_NO_PERMISSION
|
-59
|
|
pfcExceptions.XToolkitAuthenticationFailure
|
PRO_TK_AUTHENTICATION_FAILURE
|
-60
|
|
pfcExceptions.XToolkitMultibodyUnsupported
|
PRO_TK_MULTIBODY_UNSUPPORTED
|
-69
|
|
pfcExceptions.XToolkitAppNoLicense
|
PRO_TK_APP_NO_LICENSE
|
-92
|
|
pfcExceptions.XToolkitAppExcessCallbacks
|
PRO_TK_APP_XS_CALLBACKS
|
-93
|
|
pfcExceptions.XToolkitAppStartupFailed
|
PRO_TK_APP_STARTUP_FAIL
|
-94
|
|
pfcExceptions.XToolkitAppInitializationFailed
|
PRO_TK_APP_INIT_FAIL
|
-95
|
|
pfcExceptions.XToolkitAppVersionMismatch
|
PRO_TK_APP_VERSION_MISMATCH
|
-96
|
|
pfcExceptions.XToolkitAppCommunicationFailure
|
PRO_TK_APP_COMM_FAILURE
|
-97
|
|
pfcExceptions.XToolkitAppNewVersion
|
PRO_TK_APP_NEW_VERSION
|
-98
|