Library | Module

Class pfcScript



Description

Contains old-style Web.Link methods.

Methods in this class are deprecated and are provided for backward compatibility with old-style Web.Link pages. Equivalent object-oriented methods exist elsewhere in the library.
Direct Parent Classes:
pfcObject



Method Summary

numbereval (string EnumName)
Returns a constant integer given its string name.
pfcPWLConstantsGetPWLConstants ()
Returns an object that contains Web.Link defined constants.
pfcPWLFeatureConstantsGetPWLFeatureConstants ()
Returns an object that contains Web.Link defined feature constants.
pfcAccessRequestReturnpwlAccessRequest (boolean WantProERead, boolean WantProEWrite, boolean WantDiskRead, boolean WantDiskWrite)
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pfcStandardReturnpwlApplicationStart (string AppName)
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pfcStandardReturnpwlAssemblyComponentReplace (string AsmNameExt, string NewComponentNameExt, number NumComponentIDs, intseq ComponentIDs)
Replaces one assembly component for another
pfcAssemblyComponentsGetReturnpwlAssemblyComponentsGet (string AsmNameExt)
Retrieves all the components in the specified assembly
pfcStandardReturnpwlAssemblyExplodeDefaultSet (string AsmNameExt)
Sets the assembly to use the default component locations when it is exploded
pfcStandardReturnpwlAssemblyExplodeStateSet (string AsmNameExt, string ExpldstateName)
Sets a predefined explode state to the specified assembly
pfcAssemblyExplodeStatesGetReturnpwlAssemblyExplodeStatesGet (string AsmNameExt)
Gets the number and names of the explode states for the specified assembly
pfcAssemblyExplodeStatusGetReturnpwlAssemblyExplodeStatusGet (string AsmNameExt)
Gets the current, predefined explode state of the specified assembly
pfcStandardReturnpwlAssemblyExplodeStatusSet (string AsmNameExt, boolean ExplodeStatus)
Set the explode status for the specified assembly
pfcDimensionInfoGetReturnpwlDimensionInfoGetByID (string MdlNameExt, number DimensionID, number DimensionType)
Gets the information about a dimension, given its identifier
pfcDimensionInfoGetReturnpwlDimensionInfoGetByName (string MdlNameExt, string DimensionName, number DimensionType)
Gets the information about a dimension, given its name
pfcStandardReturnpwlDimensionToleranceSetByID (string MdlNameExt, number DimensionID, number TolPlus, number TolMinus)
Sets the tolerance of the specified dimension
pfcStandardReturnpwlDimensionValueSetByID (string MdlNameExt, number DimensionID, number Value)
Sets the value of a dimension, given its identifier
pfcDirectoryCurrentGetReturnpwlDirectoryCurrentGet ()
Gets the current directory
pfcStandardReturnpwlDirectoryCurrentSet (string DirectoryPath)
Sets the current directory to the one specified by the argument DirectoryPath
pfcDirectoryFilesGetReturnpwlDirectoryFilesGet (string DirectoryPath, string Filter)
Lists the files and subdirectories in the specified directory. You can pass a filter to get only those files that have the specified extensions.
pfcEnvVariableGetReturnpwlEnvVariableGet (string VarName)
Gets the value of the specified environment variable
pfcStandardReturnpwlFamtabInstanceAdd (string MdlNameExt, string Name)
Adds a "row" to a family table
pfcStandardReturnpwlFamtabInstanceLockAdd (string MdlNameExt, string Name)
Locks the specified instance
pfcFamtabInstanceLockGetReturnpwlFamtabInstanceLockGet (string MdlNameExt, string Name)
Gets the locked status of the specified instance
pfcStandardReturnpwlFamtabInstanceLockRemove (string MdlNameExt, string Name)
Unlocks the specified instance
pfcStandardReturnpwlFamtabInstanceRemove (string MdlNameExt, string Name)
Removes a "row" from the family table.
pfcFamtabInstancesGetReturnpwlFamtabInstancesGet (string MdlNameExt)
Gets the rows of a family table
pfcFamtabInstanceValueGetReturnpwlFamtabInstanceValueGet (string MdlNameExt, string Name, number FamItemType, string ItemName)
Retrieves the value of a cell in a family table
pfcStandardReturnpwlFamtabInstanceValueSet (string MdlNameExt, string Name, number FamItemType, string ItemName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)
Sets the value of a cell in a family table
pfcStandardReturnpwlFamtabItemAdd (string MdlNameExt, number FamItemType, string Name)
Adds a column to the family table
pfcStandardReturnpwlFamtabItemRemove (string MdlNameExt, number FamItemType, string Name)
Removes a coulmn from the family table
pfcFamtabItemsGetReturnpwlFamtabItemsGet (string MdlNameExt)
Gets the columns of the family table
pfcFeatureChildrenGetReturnpwlFeatureChildrenGet (string MdlNameExt, number FeatureID)
Retrieves all the children of the specified feature
pfcStandardReturnpwlFeatureDeleteByID (string MdlNameExt, number FeatureID)
Deletes a feature, given its identifier
pfcStandardReturnpwlFeatureDeleteByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs)
Suppresses features using a list of identifiers
pfcStandardReturnpwlFeatureDeleteByLayer (string MdlNameExt, string LayerName)
Deletes all the features in the specified layer
pfcStandardReturnpwlFeatureDeleteByName (string MdlNameExt, string FeatureName)
Deletes a feature, given its name
pfcDimensionsGetReturnpwlFeatureDimensionsGet (string MdlNameExt, number FeatID)
Retrieves the feature dimensions of the specified model
pfcFeatureInfoGetReturnpwlFeatureInfoGetByID (string MdlNameExt, number FeatureID)
Retrieves the information about a feature, given its identifier
pfcFeatureInfoGetReturnpwlFeatureInfoGetByName (string MdlNameExt, string FeatureName)
Retrieves the information about a feature, given its name
pfcFeatureNameGetByIDReturnpwlFeatureNameGetByID (string MdlNameExt, number FeatureID)
Retrieves the name of a feature, given its identifier
pfcStandardReturnpwlFeatureNameSetByID (string MdlNameExt, number FeatureID, string FeatureName)
Sets the name of a feature, given its identifier
pfcNotesGetReturnpwlFeatureNotesGet (string MdlNameExt, number FeatureID)
Lists the notes of the specified feature This function does not apply to drawings
pfcStandardReturnpwlFeatureParametersDisplay (string SelString, number ItemType)
Shows various parameter types in the graphics window, given a feature

The possible values for ItemType are as follows:
  • PWL_USER_PARAM
  • PWL_DIM_PARAM
  • PWL_PATTERN_PARAM
  • PWL_REFDIM_PARAM
  • PWL_ALL_PARAM
  • PWL_GTOL_PARAM
  • PWL_SURFFIN_PARAM
pfcParametersGetReturnpwlFeatureParametersGet (string MdlNameExt, number FeatureID)
Lists the feature parameters
pfcFeatureParentsGetReturnpwlFeatureParentsGet (string MdlNameExt, number FeatureID)
Retrieves all the parents of the specified feature
pfcStandardReturnpwlFeatureResumeByID (string MdlNameExt, number FeatureID, boolean ResumeParents)
Resumes a feature, given its identifier
pfcStandardReturnpwlFeatureResumeByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs, boolean ResumeParents)
Resumes features using a list of identifiers
pfcStandardReturnpwlFeatureResumeByLayer (string MdlNameExt, string LayerName, boolean ResumeParents)
Resumes all the features in the specified layer
pfcStandardReturnpwlFeatureResumeByName (string MdlNameExt, string FeatureName, boolean ResumeParents)
Resumes a feature, given its name
pfcFeatureStatusGetReturnpwlFeatureStatusGet (string MdlNameExt, number FeatureID)
Gets the feature status
pfcStandardReturnpwlFeatureSuppressByID (string MdlNameExt, number FeatureID)
Suppresses a feature, given its identifier
pfcStandardReturnpwlFeatureSuppressByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs)
Suppresses features using a list of identifiers
pfcStandardReturnpwlFeatureSuppressByLayer (string MdlNameExt, string LayerName)
Suppresses all the features in the specified layer
pfcStandardReturnpwlFeatureSuppressByName (string MdlNameExt, string FeatureName)
Suppresses a feature, given its name
pfcStandardReturnpwlGeomSimprepActivate (string MdlNameExt)
Activates the geometry simplified representation for the specified model
pfcMdlOpenReturnpwlGeomSimprepOpen (string AsmNameExt, string Path, boolean DisplayInWindow)
Retrieves the geometry representation for the specified model
pfcStandardReturnpwlGraphicsSimprepActivate (string MdlNameExt)
Activates the graphics simplified representation for the specified model
pfcMdlOpenReturnpwlGraphicsSimprepOpen (string AsmNameExt, string Path, boolean DisplayInWindow)
Retrieves the graphics representation for the specified model
pfcStandardReturnpwlInstanceErase (string MdlNameExt, string Name)
Removes an instance from memory
pfcMdlOpenReturnpwlInstanceOpen (string MdlNameExt, string InstanceName, boolean DisplayInWindow)
Opens an instance in a Creo Parametric session
pfcStandardReturnpwlItemHighlight (string SelString)
Highlights the specified item
pfcItemIDToNameReturnpwlItemIDToName (string MdlNameExt, number ItemID, number ItemType)
Retrieves the name of an item, given its identifier
pfcStandardReturnpwlItemNameSetByID (string MdlNameExt, number ItemID, number ItemType, string ItemName)
Sets the name of an item, given its identifier
pfcItemNameToIDReturnpwlItemNameToID (string MdlNameExt, string ItemName, number ItemType)
Retrieves the identifier of an item, given its name
pfcStandardReturnpwlItemUnhighlight (string SelString)
Removes the highlighting from the specified item
pfcStandardReturnpwlLayerCreate (string MdlNameExt, string LayerName)
Creates a new layer
pfcStandardReturnpwlLayerDelete (string MdlNameExt, string LayerName)
Deletes a layer, given its name
pfcLayerDisplayGetReturnpwlLayerDisplayGet (string MdlNameExt, string LayerName)
Gets the display type for the specified layer
pfcStandardReturnpwlLayerDisplaySet (string MdlNameExt, string LayerName, number DisplayType)
Sets the display type for the specified layer

The possible values for DisplayType are as follows:
  • PWL_DISPLAY_TYPE_NORMAL -- List the normal layers.
  • PWL_DISPLAY_TYPE_DISPLAY -- List the layers selected for display.
  • PWL_DISPLAY_TYPE_BLANK -- List the blanked layers.
  • PWL_DISPLAY_TYPE_HIDDEN -- List the hidden layers. This applies to Assembly mode only.
pfcStandardReturnpwlLayerItemAdd (string MdlNameExt, string LayerName, number ItemType, number ItemID, string ItemOwner)
Adds an item to the specified layer

The possible values for ItemType are as follows:
  • PWL_PART
  • PWL_FEATURE
  • PWL_DIMENSION
  • PWL_REF_DIMENSION
  • PWL_GTOL
  • PWL_ASSEMBLY
  • PWL_QUILT
  • PWL_CURVE
  • PWL_POINT
  • PWL_NOTE
  • PWL_IPAR_NOTE
  • PWL_SYMBOL_INSTANCE
  • PWL_DRAFT_ENTITY
  • PWL_DIAGRAM_OBJECT
pfcStandardReturnpwlLayerItemRemove (string MdlNameExt, string LayerName, number ItemType, number ItemID, string ItemOwner)
Removes the specified item from the layer

The possible values for ItemType are as follows:
  • PWL_PART
  • PWL_FEATURE
  • PWL_DIMENSION
  • PWL_REF_DIMENSION
  • PWL_GTOL
  • PWL_ASSEMBLY
  • PWL_QUILT
  • PWL_CURVE
  • PWL_POINT
  • PWL_NOTE
  • PWL_IPAR_NOTE
  • PWL_SYMBOL_INSTANCE
  • PWL_DRAFT_ENTITY
  • PWL_DIAGRAM_OBJECT
pfcLayerItemsGetReturnpwlLayerItemsGet (string MdlNameExt, string LayerName)
Retrieves the items on the specified layer
pfcMdlCurrentGetReturnpwlMdlCurrentGet ()
Retrieves the current model in session
pfcMdlDependenciesGetReturnpwlMdlDependenciesGet (string MdlNameExt)
Retrieves all the top-level dependent models in the specified model
pfcDimensionsGetReturnpwlMdlDimensionsGet (string MdlNameExt, number DimType)
Gets the dimension identifiers of the specified model
pfcStandardReturnpwlMdlErase (string MdlNameExt)
Erases the specified model from memory
pfcMdlFeaturesGetReturnpwlMdlFeaturesGet (string MdlNameExt, number FeatureType)
Retrieves all the features in the specified model
pfcMdlInfoGetReturnpwlMdlInfoGet (string NameExt)
Retrieves information about the specified model
pfcMdlIntralinkInfoGetReturnpwlMdlIntralinkInfoGet (string NameExt)
Retrieves the Pro/INTRALINK information for the specified model.
pfcMdlLayersGetReturnpwlMdlLayersGet (string MdlNameExt)
 
pfcNotesGetReturnpwlMdlNotesGet (string MdlNameExt)
Lists the notes in the specified model
pfcMdlOpenReturnpwlMdlOpen (string MdlNameExt, string Path, boolean DisplayInWindow)
Retrieves the specified model into the current Creo Parametric session
pfcParametersGetReturnpwlMdlParametersGet (string MdlNameExt)
Lists the model parameters
pfcStandardReturnpwlMdlRegenerate (string MdlNameExt)
Regenerates the specified model
pfcStandardReturnpwlMdlRename (string OrigNameExt, string NewNameExt)
Renames the specified model in the current Creo Parametric session
pfcStandardReturnpwlMdlSaveAs (string OrigNameExt, /* optional */ string NewPath, /* optional */ string NewNameExt)
Saves the model under the specified path and name. To save under the original path and name pass null for NewPath and NewNameExt
pfcMdlSimprepsGetReturnpwlMdlSimprepsGet (string MdlNameExt)
Lists the simplified representations for the specified model
pfcMdlViewsGetReturnpwlMdlViewsGet (string MdlNameExt)
Gets the number and names of all the views in the specified model
pfcNoteNameGetReturnpwlNoteNameGet (string MdlNameExt, number NoteID)
Gets the name of the note, given its identifier This function does not apply to drawings
pfcStandardReturnpwlNoteNameSet (string MdlNameExt, number NoteID, string NewName)
Sets the name of the specified note This function does not apply to drawings
pfcNoteOwnerGetReturnpwlNoteOwnerGet (string MdlNameExt, number NoteID)
Gets the owner of the specified note
  • You cannot modify the owner of the note
  • The function pwlNoteOwnerGet does not apply to drawings
pfcNoteTextGetReturnpwlNoteTextGet (string MdlNameExt, number NoteID)
Gets the text of the specified note. Symbols are replaced by a "*"
pfcStandardReturnpwlNoteTextSet (string MdlNameExt, number NoteID, number NumTextLines, stringseq NoteText)
Sets the text of the specified note
pfcNoteURLGetReturnpwlNoteURLGet (string MdlNameExt, number NoteID)
Gets the Uniform Resource Locator (URL) of the specified note This function does not apply to drawings
pfcStandardReturnpwlNoteURLSet (string MdlNameExt, number NoteID, string NoteURL)
Sets the Uniform Resource Locator (URL) of the specified note This function does not apply to drawings
pfcStandardReturnpwlObjMdlsCheckOut (boolean LinkOrCopy, string WorkspaceName, number NumObj, stringseq ObjNames, intseq ObjVersions, number RelCriteria)
Checks out Pro/INTRALINK objects from the Commonspace to a Workspace.
pfcStandardReturnpwlParameterCreate (string MdlNameExt, number ItemType, number ItemID, string ParamName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)
Creates a new parameter
pfcStandardReturnpwlParameterDelete (string MdlNameExt, number ItemType, number ItemId, string ParamName)
Deletes the specified parameter
pfcStandardReturnpwlParameterDesignationAdd (string MdlNameExt, string ParamName)
Designates the specified parameter for Windchill
pfcStandardReturnpwlParameterDesignationRemove (string MdlNameExt, string ParamName)
Removes the designation from the specified parameter
pfcParameterDesignationVerifyReturnpwlParameterDesignationVerify (string MdlNameExt, string ParamName)
Determines whether the specified parameter has been designated for Windchill
pfcStandardReturnpwlParameterRename (string MdlNameExt, number ItemType, number ItemId, string ParamName, string NewName)
Renames the specified parameter
pfcStandardReturnpwlParameterReset (string MdlNameExt, number ItemType, number ItemId, string ParamName)
Resets the specified parameter value to its last regenerated value
pfcParameterValueGetReturnpwlParameterValueGet (string MdlNameExt, number ItemType, number ItemID, string ParamName)
Retrieves the value of the specified parameter
pfcStandardReturnpwlParameterValueSet (string MdlNameExt, number ItemType, number ItemID, string ParamName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)
Sets the value of the specified parameter
pfcPartMaterialCurrentGetReturnpwlPartMaterialCurrentGet (string MdlNameExt)
Gets the current material name of the specified part
pfcStandardReturnpwlPartMaterialCurrentSet (string MdlNameExt, string MaterialName)
Sets the current material name for the specified part. The material must already be associated with the part.
pfcPartMaterialdataGetReturnpwlPartMaterialDataGet (string MdlNameExt, string MaterialName)
Get the properties of the specified material
pfcStandardReturnpwlPartMaterialDataSet (string MdlNameExt, string MaterialName, number YoungModulus, number PoissonRatio, number ShearModulus, number MassDensity, number ThermExpCoef, number ThermExpRefTemp, number StructDampCoef, number StressLimTension, number StressLimCompress, number StressLimShear, number ThermConductivity, number Emissivity, number SpecificHeat, number Hardness, string Condition, number InitBendYFactor, string BendTable)
Sets the properties of the specified material
pfcPartMaterialCurrentGetReturnpwlPartMaterialGet (string MdlNameExt)
Gets the material name of the specified part. This function is identical to pfcScript.pwlPartMaterialCurrentGet() and is maintained for backwards compatibility.
pfcStandardReturnpwlPartMaterialSet (string MdlNameExt, string MaterialName)
Sets the material name for the specified part from a material file
pfcPartMaterialsGetReturnpwlPartMaterialsGet (string MdlNameExt)
Gets all the material names for the specified part
pfcStandardReturnpwlProEngineerConnect ()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pfcStandardReturnpwlProEngineerDisconnect ()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pfcStandardReturnpwlProEngineerDisconnectAndStop ()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pfcStandardReturnpwlProEngineerStartAndConnect ()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pfcSelectReturnpwlSelect (string SelectableFilter, number MaxSelectable)
Selects an item in Creo Parametric.

The form for SelectableFilter is a comma-separated list of any or all of the following:
  • dimension
  • feature
  • part
  • prt_or_asm
pfcSelectionCreateReturnpwlSelectionCreate (string TopModel, number NumComponents, stringseq ComponentPath, intseq ComponentIDs, number ItemType, number ItemID)
 
pfcSelectionParseReturnpwlSelectionParse (string SelString)
Parses the components from the specified selection string
pfcSessionMdlsGetReturnpwlSessionMdlsGet (number MdlType)
Lists the models of the specified type in the current Creo Parametric session.

The possible values for MdlType are as follows:
  • PWL_ASSEMBLY
  • PWL_PART
  • PWL_DRAWING
  • PWL_2DSECTION
  • PWL_LAYOUT
  • PWL_DWGFORM
  • PWL_MFG
  • PWL_REPORT
  • PWL_MARKUP
  • PWL_DIAGRAM
pfcSessionWindowsGetReturnpwlSessionWindowsGet ()
Lists the identifiers of the windows currently in the Creo Parametric session
pfcStandardReturnpwlSimprepActivate (string MdlNameExt, string SimprepName)
Activates a simplified representation for the specified model
pfcSimprepGetReturnpwlSimprepCurrentGet (string AsmNameExt)
Returns the current active simplified representation for the specified assembly
pfcStandardReturnpwlSimprepMasterActivate (string MdlNameExt)
Activates the master simplified representation for the specified model
pfcMdlOpenReturnpwlSimprepOpen (string AsmNameExt, string Path, string RepName, boolean DisplayInWindow)
Retrieves the specified simplified representation
pfcSolidMassPropertiesGetReturnpwlSolidMassPropertiesGet (string MdlNameExt, string CoordinateSys)
Gets the mass properties for the specified solid
pfcStandardReturnpwlSolidXSectionDisplay (string MdlNameExt, string CrossSectionName)
Displays the specified cross section
pfcSolidXSectionsGetReturnpwlSolidXSectionsGet (string MdlNameExt)
Retrieves the cross sections from the specified model
numberpwlTypeFromModelItemType (pfcModelItemType Type)
Converts a pfcModelItemType to the corresponding PWL constant
numberpwlTypeFromModelType (pfcModelType Type)
Converts a pfcModelType to the corresponding PWL constant
pfcModelItemTypepwlTypeToModelItemType (number Type)
Converts a PWL constant to the corresponding pfcModelItemType
pfcModelTypepwlTypeToModelType (number Type)
Converts a PWL constant to the corresponding pfcModelType
booleanseqpwluBooleanArrayAlloc (number ArraySize)
Allocates an array of boolean values
realseqpwluDoubleArrayAlloc (number ArraySize)
Allocates an array of doubles
intseqpwluIntArrayAlloc (number ArraySize)
Allocates an array of integers
stringseqpwluStringArrayAlloc (number ArraySize)
Allocates an array of strings
pfcStandardReturnpwlViewDefaultSet (string MdlNameExt)
Sets the specified model to the default view for that model
pfcStandardReturnpwlViewSet (string MdlNameExt, string NamedView)
Sets the view to a predefined view setting
pfcStandardReturnpwlWindowActivate (number WindowID)
Activates the specified window
pfcWindowActiveGetReturnpwlWindowActiveGet ()
Gets the active window in the Creo Parametric session
pfcStandardReturnpwlWindowClose (number WindowID)
Closes the specified window. Specify the value -1 to close the current window.
pfcWindowMdlGetReturnpwlWindowMdlGet (number WindowID)
Retrieves the model associated with the specified window
pfcStandardReturnpwlWindowRepaint (number WindowID)
Repaints the contents of the specified window. Specify the value -1 to repaint the current window



Method Detail


numbereval (string EnumName)

Returns a constant integer given its string name.
Parameters:
EnumName
The name of the constant, e.g. "PWL_FEAT_FIRST_FEAT"
Returns:
The integer constant.



pfcPWLConstantsGetPWLConstants ()

Returns an object that contains Web.Link defined constants.
See Also:
pfcScript.GetPWLConstants()
Returns:
The object that contains the constant integers used by other methods.



pfcPWLFeatureConstantsGetPWLFeatureConstants ()

Returns an object that contains Web.Link defined feature constants.
See Also:
pfcScript.GetPWLConstants()
Returns:
The object that contains the feature-related constant integers used by other methods.



pfcAccessRequestReturnpwlAccessRequest (boolean WantProERead, boolean WantProEWrite, boolean WantDiskRead, boolean WantDiskWrite)

This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Parameters:
WantProERead
 
WantProEWrite
 
WantDiskRead
 
WantDiskWrite
 
Returns:
 



pfcStandardReturnpwlApplicationStart (string AppName)

This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Parameters:
AppName
 
Returns:
 



pfcStandardReturnpwlAssemblyComponentReplace (string AsmNameExt, string NewComponentNameExt, number NumComponentIDs, intseq ComponentIDs)

Replaces one assembly component for another
Parameters:
AsmNameExt
The name and extension of the assembly
NewComponentNameExt
The name and extension of the new component
NumComponentIDs
The number of components to be replaced
ComponentIDs
The feature identifiers of the replaced components
Returns:
 



pfcAssemblyComponentsGetReturnpwlAssemblyComponentsGet (string AsmNameExt)

Retrieves all the components in the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
Returns:
 



pfcStandardReturnpwlAssemblyExplodeDefaultSet (string AsmNameExt)

Sets the assembly to use the default component locations when it is exploded
Parameters:
AsmNameExt
The name and extension of the assembly
Returns:
 



pfcStandardReturnpwlAssemblyExplodeStateSet (string AsmNameExt, string ExpldstateName)

Sets a predefined explode state to the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
ExpldstateName
The name of a predefined explode state
Returns:
 



pfcAssemblyExplodeStatesGetReturnpwlAssemblyExplodeStatesGet (string AsmNameExt)

Gets the number and names of the explode states for the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
Returns:
 



pfcAssemblyExplodeStatusGetReturnpwlAssemblyExplodeStatusGet (string AsmNameExt)

Gets the current, predefined explode state of the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
Returns:
 



pfcStandardReturnpwlAssemblyExplodeStatusSet (string AsmNameExt, boolean ExplodeStatus)

Set the explode status for the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
ExplodeStatus
The new explode status
Returns:
 



pfcDimensionInfoGetReturnpwlDimensionInfoGetByID (string MdlNameExt, number DimensionID, number DimensionType)

Gets the information about a dimension, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
DimensionID
The integer identifier of the dimension
DimensionType
The dimension type (PWL_DIMENSION or PWL_REF_DIMENSION)
Returns:
 



pfcDimensionInfoGetReturnpwlDimensionInfoGetByName (string MdlNameExt, string DimensionName, number DimensionType)

Gets the information about a dimension, given its name
Parameters:
MdlNameExt
The name and extension of the model
DimensionName
The name of the dimension
DimensionType
The dimension type (PWL_DIMENSION or PWL_REF_DIMENSION)
Returns:
 



pfcStandardReturnpwlDimensionToleranceSetByID (string MdlNameExt, number DimensionID, number TolPlus, number TolMinus)

Sets the tolerance of the specified dimension
Parameters:
MdlNameExt
The name and extension of the model
DimensionID
The integer identifier of the dimension
TolPlus
The positive element of the tolerance
TolMinus
The negative element of the tolerance
Returns:
 



pfcStandardReturnpwlDimensionValueSetByID (string MdlNameExt, number DimensionID, number Value)

Sets the value of a dimension, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
DimensionID
The integer identifier of the dimension
Value
The new value of the dimension
Returns:
 



pfcDirectoryCurrentGetReturnpwlDirectoryCurrentGet ()

Gets the current directory
Returns:
 



pfcStandardReturnpwlDirectoryCurrentSet (string DirectoryPath)

Sets the current directory to the one specified by the argument DirectoryPath
Parameters:
DirectoryPath
The path to the current directory
Returns:
 



pfcDirectoryFilesGetReturnpwlDirectoryFilesGet (string DirectoryPath, string Filter)

Lists the files and subdirectories in the specified directory. You can pass a filter to get only those files that have the specified extensions.
Parameters:
DirectoryPath
The directory that contains the files to be listed. If this is null , the function lists the files in the current Creo Parametric directory.
Filter
The filter string for file extensions. Each filter must be separated by a comma. For example, "*.prt, *.txt".
Returns:
 



pfcEnvVariableGetReturnpwlEnvVariableGet (string VarName)

Gets the value of the specified environment variable
Manual References:
The Basics of Web.Link: Environment Variables
Parameters:
VarName
The name of the environment variable
Returns:
 



pfcStandardReturnpwlFamtabInstanceAdd (string MdlNameExt, string Name)

Adds a "row" to a family table
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
 



pfcStandardReturnpwlFamtabInstanceLockAdd (string MdlNameExt, string Name)

Locks the specified instance
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
 



pfcFamtabInstanceLockGetReturnpwlFamtabInstanceLockGet (string MdlNameExt, string Name)

Gets the locked status of the specified instance
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:



pfcStandardReturnpwlFamtabInstanceLockRemove (string MdlNameExt, string Name)

Unlocks the specified instance
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
 



pfcStandardReturnpwlFamtabInstanceRemove (string MdlNameExt, string Name)

Removes a "row" from the family table.
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
 



pfcFamtabInstancesGetReturnpwlFamtabInstancesGet (string MdlNameExt)

Gets the rows of a family table
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcFamtabInstanceValueGetReturnpwlFamtabInstanceValueGet (string MdlNameExt, string Name, number FamItemType, string ItemName)

Retrieves the value of a cell in a family table
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
FamItemType
The type of the family table item
ItemName
The name of the item
Returns:
 



pfcStandardReturnpwlFamtabInstanceValueSet (string MdlNameExt, string Name, number FamItemType, string ItemName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)

Sets the value of a cell in a family table
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
FamItemType
The type of the family table item
ItemName
The name of the item
ValueType
The value type of the argument
IntVal
The integer value
DoubleVal
The double value
StringVal
The string value
BooleanVal
The boolean value
Returns:
 



pfcStandardReturnpwlFamtabItemAdd (string MdlNameExt, number FamItemType, string Name)

Adds a column to the family table
Parameters:
MdlNameExt
The name and extension of the model
FamItemType
The type of the family table item
Name
The name of the column to add
Returns:
 



pfcStandardReturnpwlFamtabItemRemove (string MdlNameExt, number FamItemType, string Name)

Removes a coulmn from the family table
Parameters:
MdlNameExt
The name and extension of the model
FamItemType
The type of the family table item
Name
The name of the column
Returns:
 



pfcFamtabItemsGetReturnpwlFamtabItemsGet (string MdlNameExt)

Gets the columns of the family table
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcFeatureChildrenGetReturnpwlFeatureChildrenGet (string MdlNameExt, number FeatureID)

Retrieves all the children of the specified feature
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The identifier of the parent feature
Returns:
 



pfcStandardReturnpwlFeatureDeleteByID (string MdlNameExt, number FeatureID)

Deletes a feature, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The identifier of the feature to delete
Returns:
 



pfcStandardReturnpwlFeatureDeleteByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs)

Suppresses features using a list of identifiers
Parameters:
MdlNameExt
The name and extension of the model
NumFeatures
The number of identifiers in the list
FeatureIDs
The list of identifiers of features to suppress
Returns:
 



pfcStandardReturnpwlFeatureDeleteByLayer (string MdlNameExt, string LayerName)

Deletes all the features in the specified layer
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to delete
Returns:
 



pfcStandardReturnpwlFeatureDeleteByName (string MdlNameExt, string FeatureName)

Deletes a feature, given its name
Parameters:
MdlNameExt
The name and extension of the model
FeatureName
The name of the feature
Returns:
 



pfcDimensionsGetReturnpwlFeatureDimensionsGet (string MdlNameExt, number FeatID)

Retrieves the feature dimensions of the specified model
Parameters:
MdlNameExt
The name and extension of the model
FeatID
The feature to which the dimensions belong
Returns:
 



pfcFeatureInfoGetReturnpwlFeatureInfoGetByID (string MdlNameExt, number FeatureID)

Retrieves the information about a feature, given its identifier

Exceptions thrown (but not limited to):

<reference 4 to unknown entity pfcExceptions::pfcXInAMethod>


Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
Returns:
 



pfcFeatureInfoGetReturnpwlFeatureInfoGetByName (string MdlNameExt, string FeatureName)

Retrieves the information about a feature, given its name
Parameters:
MdlNameExt
The name and extension of the model
FeatureName
The name of the feature
Returns:
 



pfcFeatureNameGetByIDReturnpwlFeatureNameGetByID (string MdlNameExt, number FeatureID)

Retrieves the name of a feature, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
Returns:
 



pfcStandardReturnpwlFeatureNameSetByID (string MdlNameExt, number FeatureID, string FeatureName)

Sets the name of a feature, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
FeatureName
The new feature name
Returns:
 



pfcNotesGetReturnpwlFeatureNotesGet (string MdlNameExt, number FeatureID)

Lists the notes of the specified feature This function does not apply to drawings
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature whose notes are required
Returns:
 



pfcStandardReturnpwlFeatureParametersDisplay (string SelString, number ItemType)

Shows various parameter types in the graphics window, given a feature

The possible values for ItemType are as follows:
  • PWL_USER_PARAM
  • PWL_DIM_PARAM
  • PWL_PATTERN_PARAM
  • PWL_REFDIM_PARAM
  • PWL_ALL_PARAM
  • PWL_GTOL_PARAM
  • PWL_SURFFIN_PARAM

Parameters:
SelString
The selection string that identifies the feature
ItemType
The type of parameter to display
Returns:
 



pfcParametersGetReturnpwlFeatureParametersGet (string MdlNameExt, number FeatureID)

Lists the feature parameters
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature for which parameters should be found
Returns:
 



pfcFeatureParentsGetReturnpwlFeatureParentsGet (string MdlNameExt, number FeatureID)

Retrieves all the parents of the specified feature
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The identifier of the child feature
Returns:
 



pfcStandardReturnpwlFeatureResumeByID (string MdlNameExt, number FeatureID, boolean ResumeParents)

Resumes a feature, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The identifier of the feature to resume
ResumeParents
Specifies whether to resume the parents of the feature
Returns:
 



pfcStandardReturnpwlFeatureResumeByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs, boolean ResumeParents)

Resumes features using a list of identifiers
Parameters:
MdlNameExt
The name and extension of the model
NumFeatures
The number of feature identifiers in the list
FeatureIDs
The list of identifiers of the features to be resumed
ResumeParents
Specifies whether to resume the parents of the features
Returns:
 



pfcStandardReturnpwlFeatureResumeByLayer (string MdlNameExt, string LayerName, boolean ResumeParents)

Resumes all the features in the specified layer
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to resume
ResumeParents
Specifies whether to resume the parents of the feature
Returns:
 



pfcStandardReturnpwlFeatureResumeByName (string MdlNameExt, string FeatureName, boolean ResumeParents)

Resumes a feature, given its name
Parameters:
MdlNameExt
The name and extension of the model
FeatureName
The name of the feature to resume
ResumeParents
Specifies whether to resume the parents of the feature
Returns:
 



pfcFeatureStatusGetReturnpwlFeatureStatusGet (string MdlNameExt, number FeatureID)

Gets the feature status
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
Returns:
 



pfcStandardReturnpwlFeatureSuppressByID (string MdlNameExt, number FeatureID)

Suppresses a feature, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
Returns:
 



pfcStandardReturnpwlFeatureSuppressByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs)

Suppresses features using a list of identifiers
Parameters:
MdlNameExt
The name and extension of the model
NumFeatures
The number of feature identifiers in the list
FeatureIDs
The list of identifiers of features to suppress
Returns:
 



pfcStandardReturnpwlFeatureSuppressByLayer (string MdlNameExt, string LayerName)

Suppresses all the features in the specified layer
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to suppress
Returns:
 



pfcStandardReturnpwlFeatureSuppressByName (string MdlNameExt, string FeatureName)

Suppresses a feature, given its name
Parameters:
MdlNameExt
The name and extension of the model
FeatureName
The name of the feature
Returns:
 



pfcStandardReturnpwlGeomSimprepActivate (string MdlNameExt)

Activates the geometry simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcMdlOpenReturnpwlGeomSimprepOpen (string AsmNameExt, string Path, boolean DisplayInWindow)

Retrieves the geometry representation for the specified model
Parameters:
AsmNameExt
The full name of the assembly or part
Path
The full path to the model
DisplayInWindow
Specifies whether to display the model in a Creo Parametric window
Returns:
 



pfcStandardReturnpwlGraphicsSimprepActivate (string MdlNameExt)

Activates the graphics simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcMdlOpenReturnpwlGraphicsSimprepOpen (string AsmNameExt, string Path, boolean DisplayInWindow)

Retrieves the graphics representation for the specified model
Parameters:
AsmNameExt
The full name of the assembly or part
Path
The full path to the model
DisplayInWindow
Specifies whether to display the model in a Creo Parametric window
Returns:
 



pfcStandardReturnpwlInstanceErase (string MdlNameExt, string Name)

Removes an instance from memory
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
 



pfcMdlOpenReturnpwlInstanceOpen (string MdlNameExt, string InstanceName, boolean DisplayInWindow)

Opens an instance in a Creo Parametric session
Parameters:
MdlNameExt
The name and extension of the model
InstanceName
The name of the instance to open
DisplayInWindow
If true the instance is displayed in a Creo Parametric window
Returns:
 



pfcStandardReturnpwlItemHighlight (string SelString)

Highlights the specified item
Parameters:
SelString
The selection string that identifies the item
Returns:
 



pfcItemIDToNameReturnpwlItemIDToName (string MdlNameExt, number ItemID, number ItemType)

Retrieves the name of an item, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
ItemID
The item identifier
ItemType
The item type
Returns:
 



pfcStandardReturnpwlItemNameSetByID (string MdlNameExt, number ItemID, number ItemType, string ItemName)

Sets the name of an item, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
ItemID
The identifier of the model item
ItemType
The type of the model item
ItemName
The new name for the model item
Returns:
 



pfcItemNameToIDReturnpwlItemNameToID (string MdlNameExt, string ItemName, number ItemType)

Retrieves the identifier of an item, given its name
Parameters:
MdlNameExt
The name and extension of the model
ItemName
The name of the model item
ItemType
The type of the model item
Returns:
 



pfcStandardReturnpwlItemUnhighlight (string SelString)

Removes the highlighting from the specified item
Parameters:
SelString
The selection string that identifies the item
Returns:
 



pfcStandardReturnpwlLayerCreate (string MdlNameExt, string LayerName)

Creates a new layer
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to create
Returns:
 



pfcStandardReturnpwlLayerDelete (string MdlNameExt, string LayerName)

Deletes a layer, given its name
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to delete
Returns:
 



pfcLayerDisplayGetReturnpwlLayerDisplayGet (string MdlNameExt, string LayerName)

Gets the display type for the specified layer
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to display
Returns:
 



pfcStandardReturnpwlLayerDisplaySet (string MdlNameExt, string LayerName, number DisplayType)

Sets the display type for the specified layer

The possible values for DisplayType are as follows:
  • PWL_DISPLAY_TYPE_NORMAL -- List the normal layers.
  • PWL_DISPLAY_TYPE_DISPLAY -- List the layers selected for display.
  • PWL_DISPLAY_TYPE_BLANK -- List the blanked layers.
  • PWL_DISPLAY_TYPE_HIDDEN -- List the hidden layers. This applies to Assembly mode only.

Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer
DisplayType
The new display type
Returns:
 



pfcStandardReturnpwlLayerItemAdd (string MdlNameExt, string LayerName, number ItemType, number ItemID, string ItemOwner)

Adds an item to the specified layer

The possible values for ItemType are as follows:
  • PWL_PART
  • PWL_FEATURE
  • PWL_DIMENSION
  • PWL_REF_DIMENSION
  • PWL_GTOL
  • PWL_ASSEMBLY
  • PWL_QUILT
  • PWL_CURVE
  • PWL_POINT
  • PWL_NOTE
  • PWL_IPAR_NOTE
  • PWL_SYMBOL_INSTANCE
  • PWL_DRAFT_ENTITY
  • PWL_DIAGRAM_OBJECT

Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer
ItemType
The type of layer item
ItemID
The identifier of the item
ItemOwner
If null or "", the item owner is the same as the layer owner. Otherwise, it is a selection string to the component that owns the item
Returns:
 



pfcStandardReturnpwlLayerItemRemove (string MdlNameExt, string LayerName, number ItemType, number ItemID, string ItemOwner)

Removes the specified item from the layer

The possible values for ItemType are as follows:
  • PWL_PART
  • PWL_FEATURE
  • PWL_DIMENSION
  • PWL_REF_DIMENSION
  • PWL_GTOL
  • PWL_ASSEMBLY
  • PWL_QUILT
  • PWL_CURVE
  • PWL_POINT
  • PWL_NOTE
  • PWL_IPAR_NOTE
  • PWL_SYMBOL_INSTANCE
  • PWL_DRAFT_ENTITY
  • PWL_DIAGRAM_OBJECT

Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the layer to remove
ItemType
The type of layer item
ItemID
The identifier of the item
ItemOwner
If null or "", the item owner is the same as the layer owner. Otherwise, it is a selection string to the component that owns the item
Returns:
 



pfcLayerItemsGetReturnpwlLayerItemsGet (string MdlNameExt, string LayerName)

Retrieves the items on the specified layer
Parameters:
MdlNameExt
The name and extension of the model
LayerName
The name of the specified layer
Returns:
 



pfcMdlCurrentGetReturnpwlMdlCurrentGet ()

Retrieves the current model in session
Returns:
 



pfcMdlDependenciesGetReturnpwlMdlDependenciesGet (string MdlNameExt)

Retrieves all the top-level dependent models in the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcDimensionsGetReturnpwlMdlDimensionsGet (string MdlNameExt, number DimType)

Gets the dimension identifiers of the specified model
Parameters:
MdlNameExt
The name and extension of the model
DimType
The type of model dimensions (PWL_DIMENSION or PWL_REF_DIMENSION)
Returns:
 



pfcStandardReturnpwlMdlErase (string MdlNameExt)

Erases the specified model from memory
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcMdlFeaturesGetReturnpwlMdlFeaturesGet (string MdlNameExt, number FeatureType)

Retrieves all the features in the specified model
Parameters:
MdlNameExt
The name and extension of the model
FeatureType
The type of feature to retrieve
Returns:
 



pfcMdlInfoGetReturnpwlMdlInfoGet (string NameExt)

Retrieves information about the specified model

Exceptions thrown (but not limited to):

<reference 4 to unknown entity pfcExceptions::pfcXInAMethod>


Parameters:
NameExt
The name and extension of the model
Returns:
 



pfcMdlIntralinkInfoGetReturnpwlMdlIntralinkInfoGet (string NameExt)

Retrieves the Pro/INTRALINK information for the specified model.

NOTE: This method is deprecated. Pro/INTRALINK 3.4 is not supported.

Markups and sections are not supported.


Parameters:
NameExt
The name and extension of the model
Returns:
 



pfcMdlLayersGetReturnpwlMdlLayersGet (string MdlNameExt)

 
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcNotesGetReturnpwlMdlNotesGet (string MdlNameExt)

Lists the notes in the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcMdlOpenReturnpwlMdlOpen (string MdlNameExt, string Path, boolean DisplayInWindow)

Retrieves the specified model into the current Creo Parametric session
Parameters:
MdlNameExt
The name and extension of the model
Path
The full directory path to the model
DisplayInWindow
If true the model is displayed in the Creo Parametric model
Returns:
 



pfcParametersGetReturnpwlMdlParametersGet (string MdlNameExt)

Lists the model parameters
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcStandardReturnpwlMdlRegenerate (string MdlNameExt)

Regenerates the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcStandardReturnpwlMdlRename (string OrigNameExt, string NewNameExt)

Renames the specified model in the current Creo Parametric session
Parameters:
OrigNameExt
The name and extension of the model
NewNameExt
The new name and extension of the model
Returns:
 



pfcStandardReturnpwlMdlSaveAs (string OrigNameExt, /* optional */ string NewPath, /* optional */ string NewNameExt)

Saves the model under the specified path and name. To save under the original path and name pass null for NewPath and NewNameExt
Parameters:
OrigNameExt
The original name and extension of the model
NewPath
The new path to the model
NewNameExt
The new name and extension of the model
Returns:
 



pfcMdlSimprepsGetReturnpwlMdlSimprepsGet (string MdlNameExt)

Lists the simplified representations for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcMdlViewsGetReturnpwlMdlViewsGet (string MdlNameExt)

Gets the number and names of all the views in the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcNoteNameGetReturnpwlNoteNameGet (string MdlNameExt, number NoteID)

Gets the name of the note, given its identifier This function does not apply to drawings
Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
Returns:
 



pfcStandardReturnpwlNoteNameSet (string MdlNameExt, number NoteID, string NewName)

Sets the name of the specified note This function does not apply to drawings
Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
NewName
The name of the note
Returns:
 



pfcNoteOwnerGetReturnpwlNoteOwnerGet (string MdlNameExt, number NoteID)

Gets the owner of the specified note
  • You cannot modify the owner of the note
  • The function pwlNoteOwnerGet does not apply to drawings

Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
Returns:
 



pfcNoteTextGetReturnpwlNoteTextGet (string MdlNameExt, number NoteID)

Gets the text of the specified note. Symbols are replaced by a "*"

Returns the note parameter callouts as values. To get the parameter callouts as names, use pfcNote.GetText().
Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
Returns:
 



pfcStandardReturnpwlNoteTextSet (string MdlNameExt, number NoteID, number NumTextLines, stringseq NoteText)

Sets the text of the specified note
Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
NumTextLines
The number of text lines
NoteText
The text of the note
Returns:
 



pfcNoteURLGetReturnpwlNoteURLGet (string MdlNameExt, number NoteID)

Gets the Uniform Resource Locator (URL) of the specified note This function does not apply to drawings
Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
Returns:
 



pfcStandardReturnpwlNoteURLSet (string MdlNameExt, number NoteID, string NoteURL)

Sets the Uniform Resource Locator (URL) of the specified note This function does not apply to drawings
Parameters:
MdlNameExt
The name and extension of the model
NoteID
The note identifier
NoteURL
The URL of the note to set
Returns:
 



pfcStandardReturnpwlObjMdlsCheckOut (boolean LinkOrCopy, string WorkspaceName, number NumObj, stringseq ObjNames, intseq ObjVersions, number RelCriteria)

Checks out Pro/INTRALINK objects from the Commonspace to a Workspace.

NOTE: This method is deprecated. Pro/INTRALINK 3.4 is not supported.

The RelCriteria argument identifies which dependents should be checked out along with the ObjNames[]. The possible values are as follows:
  • 1 -- Include all the dependents
  • 2 -- Include the required dependents only
  • 3 -- Do not include any dependents

Parameters:
LinkOrCopy
If true check out the object as a link
WorkspaceName
The name of the Workspace to which the objects are checked out
NumObj
The number of objects to check out
ObjNames
An array of names (and extensions) of the objects to check out
ObjVersions
The object versions. If this is null, the default action is to use the latest versions
RelCriteria
The relationship criteria
Returns:
 



pfcStandardReturnpwlParameterCreate (string MdlNameExt, number ItemType, number ItemID, string ParamName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)

Creates a new parameter
Parameters:
MdlNameExt
The name and extension of the model
ItemType
Specifies whether it is a model (PWL_MODEL) or feature parameter (PWL_FEATURE).
ItemID
The feature identifier. This is unused for model parameters
ParamName
The name of the parameter
ValueType
The data type of the value (PWL_VALUE_INTEGER, PWL_VALUE_DOUBLE, PWL_VALUE_STRING, PWL_VALUE_BOOLEAN).
IntVal
Used if the value is an integer
DoubleVal
Used if the value is an double
StringVal
Used if the value is an string
BooleanVal
Used if the value is an boolean
Returns:
 



pfcStandardReturnpwlParameterDelete (string MdlNameExt, number ItemType, number ItemId, string ParamName)

Deletes the specified parameter
Parameters:
MdlNameExt
The name and extension of the model
ItemType
Specifies whether it is a model (PWL_MODEL) or feature parameter (PWL_FEATURE)
ItemId
The feature identifier. This is unused for model parameters
ParamName
The name of the parameter
Returns:
 



pfcStandardReturnpwlParameterDesignationAdd (string MdlNameExt, string ParamName)

Designates the specified parameter for Windchill
Parameters:
MdlNameExt
The name and extension of the model
ParamName
The name of the parameter
Returns:
 



pfcStandardReturnpwlParameterDesignationRemove (string MdlNameExt, string ParamName)

Removes the designation from the specified parameter
Parameters:
MdlNameExt
The name and extension of the model
ParamName
The name of the parameter
Returns:
 



pfcParameterDesignationVerifyReturnpwlParameterDesignationVerify (string MdlNameExt, string ParamName)

Determines whether the specified parameter has been designated for Windchill
Parameters:
MdlNameExt
The name and extension of the model
ParamName
The name of the parameter
Returns:
 



pfcStandardReturnpwlParameterRename (string MdlNameExt, number ItemType, number ItemId, string ParamName, string NewName)

Renames the specified parameter
Parameters:
MdlNameExt
The name and extension of the model
ItemType
Specifies whether it is a model (PWL_MODEL) or feature parameter (PWL_FEATURE)
ItemId
The feature identifier. This is unused for model parameters
ParamName
The old parameter name
NewName
The new name of the parameter
Returns:
 



pfcStandardReturnpwlParameterReset (string MdlNameExt, number ItemType, number ItemId, string ParamName)

Resets the specified parameter value to its last regenerated value
Parameters:
MdlNameExt
The name and extension of the model
ItemType
Specifies whether it is a model (PWL_MODEL) or feature parameter (PWL_FEATURE)
ItemId
The feature identifier. This is unused for model parameters
ParamName
The name of the parameter
Returns:
 



pfcParameterValueGetReturnpwlParameterValueGet (string MdlNameExt, number ItemType, number ItemID, string ParamName)

Retrieves the value of the specified parameter
Parameters:
MdlNameExt
The name and extension of the model
ItemType
Specifies whether it is a model (PWL_MODEL) or feature parameter (PWL_FEATURE).
ItemID
The feature identifier. This is unused for model parameters
ParamName
The name of the parameter
Returns:
 



pfcStandardReturnpwlParameterValueSet (string MdlNameExt, number ItemType, number ItemID, string ParamName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)

Sets the value of the specified parameter
Parameters:
MdlNameExt
The name and extension of the model
ItemType
Specifies whether it is a model (PWL_MODEL) or feature parameter (PWL_FEATURE)
ItemID
The feature identifier. This is unused for model parameters
ParamName
The name of the parameter
ValueType
The data type of the value (PWL_VALUE_INTEGER, PWL_VALUE_DOUBLE, PWL_VALUE_STRING, PWL_VALUE_BOOLEAN)
IntVal
Used if the value is an integer
DoubleVal
Used if the value is an double
StringVal
Used if the value is an string
BooleanVal
Used if the value is an boolean
Returns:
 



pfcPartMaterialCurrentGetReturnpwlPartMaterialCurrentGet (string MdlNameExt)

Gets the current material name of the specified part
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcStandardReturnpwlPartMaterialCurrentSet (string MdlNameExt, string MaterialName)

Sets the current material name for the specified part. The material must already be associated with the part.
Parameters:
MdlNameExt
The name and extension of the model
MaterialName
The name of the material
Returns:
 



pfcPartMaterialdataGetReturnpwlPartMaterialDataGet (string MdlNameExt, string MaterialName)

Get the properties of the specified material

This method is deprecated. Use pfcMaterial.GetPropertyValue() for the properties you wish to access instead.
Parameters:
MdlNameExt
The name and extension of the model
MaterialName
The name of the material
Returns:
 



pfcStandardReturnpwlPartMaterialDataSet (string MdlNameExt, string MaterialName, number YoungModulus, number PoissonRatio, number ShearModulus, number MassDensity, number ThermExpCoef, number ThermExpRefTemp, number StructDampCoef, number StressLimTension, number StressLimCompress, number StressLimShear, number ThermConductivity, number Emissivity, number SpecificHeat, number Hardness, string Condition, number InitBendYFactor, string BendTable)

Sets the properties of the specified material

This method is deprecated. Use pfcMaterial.SetPropertyValue() for the properties you wish to set instead. This sets the property values in the units of the model that owns this material. An attempt to assign material properties which are not supported by the material will be ignored.
Parameters:
MdlNameExt
The name and extension of the model
MaterialName
The name of the material
YoungModulus
The Young's Modulus
PoissonRatio
The Poisson Ratio
ShearModulus
The Sheer Modulus
MassDensity
The Mass density
ThermExpCoef
The thermal expansion coefficient
ThermExpRefTemp
The thermal expansion reference coefficient
StructDampCoef
The structural damping coefficient
StressLimTension
The stress limit for tension
StressLimCompress
The stress limit for compression
StressLimShear
The stress limit for shear
ThermConductivity
The thermal conductivity
Emissivity
The emissivity
SpecificHeat
The specific heat
Hardness
The hardness
Condition
The condition
InitBendYFactor
The initial bend Y factor
BendTable
The bend table
Returns:
 



pfcPartMaterialCurrentGetReturnpwlPartMaterialGet (string MdlNameExt)

Gets the material name of the specified part. This function is identical to pfcScript.pwlPartMaterialCurrentGet() and is maintained for backwards compatibility.
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcStandardReturnpwlPartMaterialSet (string MdlNameExt, string MaterialName)

Sets the material name for the specified part from a material file
Parameters:
MdlNameExt
The name and extension of the model
MaterialName
The name of the material
Returns:
 



pfcPartMaterialsGetReturnpwlPartMaterialsGet (string MdlNameExt)

Gets all the material names for the specified part
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcStandardReturnpwlProEngineerConnect ()

This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
 



pfcStandardReturnpwlProEngineerDisconnect ()

This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
 



pfcStandardReturnpwlProEngineerDisconnectAndStop ()

This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
 



pfcStandardReturnpwlProEngineerStartAndConnect ()

This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
 



pfcSelectReturnpwlSelect (string SelectableFilter, number MaxSelectable)

Selects an item in Creo Parametric.

The form for SelectableFilter is a comma-separated list of any or all of the following:
  • dimension
  • feature
  • part
  • prt_or_asm

Parameters:
SelectableFilter
A filter that describes which items can be selected
MaxSelectable
The maximum number of items that can be selected. If this is a negative number, there is an unlimited number of selections.
Returns:
 



pfcSelectionCreateReturnpwlSelectionCreate (string TopModel, number NumComponents, stringseq ComponentPath, intseq ComponentIDs, number ItemType, number ItemID)

 
Parameters:
TopModel
 
NumComponents
 
ComponentPath
 
ComponentIDs
 
ItemType
 
ItemID
 
Returns:
 



pfcSelectionParseReturnpwlSelectionParse (string SelString)

Parses the components from the specified selection string
Parameters:
SelString
The selection string to be parsed
Returns:
 



pfcSessionMdlsGetReturnpwlSessionMdlsGet (number MdlType)

Lists the models of the specified type in the current Creo Parametric session.

The possible values for MdlType are as follows:
  • PWL_ASSEMBLY
  • PWL_PART
  • PWL_DRAWING
  • PWL_2DSECTION
  • PWL_LAYOUT
  • PWL_DWGFORM
  • PWL_MFG
  • PWL_REPORT
  • PWL_MARKUP
  • PWL_DIAGRAM

Parameters:
MdlType
The model type
Returns:
 



pfcSessionWindowsGetReturnpwlSessionWindowsGet ()

Lists the identifiers of the windows currently in the Creo Parametric session
Manual References:
The Basics of Web.Link: Windows
Returns:
 



pfcStandardReturnpwlSimprepActivate (string MdlNameExt, string SimprepName)

Activates a simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
SimprepName
The name of the simplified representation
Returns:
 



pfcSimprepGetReturnpwlSimprepCurrentGet (string AsmNameExt)

Returns the current active simplified representation for the specified assembly
Parameters:
AsmNameExt
The full name of the part or assembly
Returns:
 



pfcStandardReturnpwlSimprepMasterActivate (string MdlNameExt)

Activates the master simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcMdlOpenReturnpwlSimprepOpen (string AsmNameExt, string Path, string RepName, boolean DisplayInWindow)

Retrieves the specified simplified representation
Parameters:
AsmNameExt
The full name of the part or assembly
Path
The path to the model
RepName
The name of the simplified representation
DisplayInWindow
Specifies whether to display the model in a Creo Parametric window
Returns:
 



pfcSolidMassPropertiesGetReturnpwlSolidMassPropertiesGet (string MdlNameExt, string CoordinateSys)

Gets the mass properties for the specified solid
Parameters:
MdlNameExt
The name and extension of the model
CoordinateSys
The coordinate system used to get the mass properties
Returns:
 



pfcStandardReturnpwlSolidXSectionDisplay (string MdlNameExt, string CrossSectionName)

Displays the specified cross section
Parameters:
MdlNameExt
The name and extension of the model
CrossSectionName
The name of the cross section to display
Returns:
 



pfcSolidXSectionsGetReturnpwlSolidXSectionsGet (string MdlNameExt)

Retrieves the cross sections from the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



numberpwlTypeFromModelItemType (pfcModelItemType Type)

Converts a pfcModelItemType to the corresponding PWL constant
Parameters:
Type
 
Returns:
 



numberpwlTypeFromModelType (pfcModelType Type)

Converts a pfcModelType to the corresponding PWL constant
Parameters:
Type
 
Returns:
 



pfcModelItemTypepwlTypeToModelItemType (number Type)

Converts a PWL constant to the corresponding pfcModelItemType
Parameters:
Type
 
Returns:
 



pfcModelTypepwlTypeToModelType (number Type)

Converts a PWL constant to the corresponding pfcModelType
Parameters:
Type
 
Returns:
 



booleanseqpwluBooleanArrayAlloc (number ArraySize)

Allocates an array of boolean values
Parameters:
ArraySize
The size of the boolean array to allocate
Returns:
 



realseqpwluDoubleArrayAlloc (number ArraySize)

Allocates an array of doubles
Parameters:
ArraySize
size of the double array to allocate
Returns:
 



intseqpwluIntArrayAlloc (number ArraySize)

Allocates an array of integers
Parameters:
ArraySize
The size of the integer array to allocate
Returns:
 



stringseqpwluStringArrayAlloc (number ArraySize)

Allocates an array of strings
Parameters:
ArraySize
The size of the string array to allocate
Returns:
 



pfcStandardReturnpwlViewDefaultSet (string MdlNameExt)

Sets the specified model to the default view for that model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
 



pfcStandardReturnpwlViewSet (string MdlNameExt, string NamedView)

Sets the view to a predefined view setting
Parameters:
MdlNameExt
The name and extension of the model
NamedView
The name of the view
Returns:
 



pfcStandardReturnpwlWindowActivate (number WindowID)

Activates the specified window
Parameters:
WindowID
The identifier of the window to activate
Returns:
 



pfcWindowActiveGetReturnpwlWindowActiveGet ()

Gets the active window in the Creo Parametric session
Manual References:
The Basics of Web.Link: Windows
Returns:
 



pfcStandardReturnpwlWindowClose (number WindowID)

Closes the specified window. Specify the value -1 to close the current window.
Parameters:
WindowID
The identifier of the window to close
Returns:
 



pfcWindowMdlGetReturnpwlWindowMdlGet (number WindowID)

Retrieves the model associated with the specified window
Parameters:
WindowID
The identifier of the window with which the model is associated
Returns:
 



pfcStandardReturnpwlWindowRepaint (number WindowID)

Repaints the contents of the specified window. Specify the value -1 to repaint the current window
Parameters:
WindowID
The identifier of the window to repaint
Returns: