API Documentation > Classes > Class pfcScript
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:
User Guide References:
Method Summary
number
eval (string EnumName)
Returns a constant integer given its string name.
Returns an object that contains Web.Link defined constants.
Returns an object that contains Web.Link defined feature constants.
pwlAccessRequest (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.
pwlApplicationStart (string AppName)
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pwlAssemblyComponentReplace (string AsmNameExt, string NewComponentNameExt, number NumComponentIDs, intseq ComponentIDs)
Replaces one assembly component for another
pwlAssemblyComponentsGet (string AsmNameExt)
Retrieves all the components in the specified assembly
pwlAssemblyExplodeDefaultSet (string AsmNameExt)
Sets the assembly to use the default component locations when it is exploded
pwlAssemblyExplodeStateSet (string AsmNameExt, string ExpldstateName)
Sets a predefined explode state to the specified assembly
pwlAssemblyExplodeStatesGet (string AsmNameExt)
Gets the number and names of the explode states for the specified assembly
pwlAssemblyExplodeStatusGet (string AsmNameExt)
Gets the current, predefined explode state of the specified assembly
pwlAssemblyExplodeStatusSet (string AsmNameExt, boolean ExplodeStatus)
Set the explode status for the specified assembly
pwlDimensionInfoGetByID (string MdlNameExt, number DimensionID, number DimensionType)
Gets the information about a dimension, given its identifier
pwlDimensionInfoGetByName (string MdlNameExt, string DimensionName, number DimensionType)
Gets the information about a dimension, given its name
pwlDimensionToleranceSetByID (string MdlNameExt, number DimensionID, number TolPlus, number TolMinus)
Sets the tolerance of the specified dimension
pwlDimensionValueSetByID (string MdlNameExt, number DimensionID, number Value)
Sets the value of a dimension, given its identifier
Gets the current directory
pwlDirectoryCurrentSet (string DirectoryPath)
Sets the current directory to the one specified by the argument DirectoryPath
pwlDirectoryFilesGet (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.
pwlEnvVariableGet (string VarName)
Gets the value of the specified environment variable
pwlFamtabInstanceAdd (string MdlNameExt, string Name)
Adds a "row" to a family table
pwlFamtabInstanceLockAdd (string MdlNameExt, string Name)
Locks the specified instance
pwlFamtabInstanceLockGet (string MdlNameExt, string Name)
Gets the locked status of the specified instance
pwlFamtabInstanceLockRemove (string MdlNameExt, string Name)
Unlocks the specified instance
pwlFamtabInstanceRemove (string MdlNameExt, string Name)
Removes a "row" from the family table.
pwlFamtabInstancesGet (string MdlNameExt)
Gets the rows of a family table
pwlFamtabInstanceValueGet (string MdlNameExt, string Name, number FamItemType, string ItemName)
Retrieves the value of a cell in a family table
pwlFamtabInstanceValueSet (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
pwlFamtabItemAdd (string MdlNameExt, number FamItemType, string Name)
Adds a column to the family table
pwlFamtabItemRemove (string MdlNameExt, number FamItemType, string Name)
Removes a coulmn from the family table
pwlFamtabItemsGet (string MdlNameExt)
Gets the columns of the family table
pwlFeatureChildrenGet (string MdlNameExt, number FeatureID)
Retrieves all the children of the specified feature
pwlFeatureDeleteByID (string MdlNameExt, number FeatureID)
Deletes a feature, given its identifier
pwlFeatureDeleteByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs)
Suppresses features using a list of identifiers
pwlFeatureDeleteByLayer (string MdlNameExt, string LayerName)
Deletes all the features in the specified layer
pwlFeatureDeleteByName (string MdlNameExt, string FeatureName)
Deletes a feature, given its name
pwlFeatureDimensionsGet (string MdlNameExt, number FeatID)
Retrieves the feature dimensions of the specified model
pwlFeatureInfoGetByID (string MdlNameExt, number FeatureID)
Retrieves the information about a feature, given its identifier
pwlFeatureInfoGetByName (string MdlNameExt, string FeatureName)
Retrieves the information about a feature, given its name
pwlFeatureNameGetByID (string MdlNameExt, number FeatureID)
Retrieves the name of a feature, given its identifier
pwlFeatureNameSetByID (string MdlNameExt, number FeatureID, string FeatureName)
Sets the name of a feature, given its identifier
pwlFeatureNotesGet (string MdlNameExt, number FeatureID)
Lists the notes of the specified feature This function does not apply to drawings
pwlFeatureParametersDisplay (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
pwlFeatureParametersGet (string MdlNameExt, number FeatureID)
Lists the feature parameters
pwlFeatureParentsGet (string MdlNameExt, number FeatureID)
Retrieves all the parents of the specified feature
pwlFeatureResumeByID (string MdlNameExt, number FeatureID, boolean ResumeParents)
Resumes a feature, given its identifier
pwlFeatureResumeByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs, boolean ResumeParents)
Resumes features using a list of identifiers
pwlFeatureResumeByLayer (string MdlNameExt, string LayerName, boolean ResumeParents)
Resumes all the features in the specified layer
pwlFeatureResumeByName (string MdlNameExt, string FeatureName, boolean ResumeParents)
Resumes a feature, given its name
pwlFeatureStatusGet (string MdlNameExt, number FeatureID)
Gets the feature status
pwlFeatureSuppressByID (string MdlNameExt, number FeatureID)
Suppresses a feature, given its identifier
pwlFeatureSuppressByIDList (string MdlNameExt, number NumFeatures, intseq FeatureIDs)
Suppresses features using a list of identifiers
pwlFeatureSuppressByLayer (string MdlNameExt, string LayerName)
Suppresses all the features in the specified layer
pwlFeatureSuppressByName (string MdlNameExt, string FeatureName)
Suppresses a feature, given its name
pwlGeomSimprepActivate (string MdlNameExt)
Activates the geometry simplified representation for the specified model
pwlGeomSimprepOpen (string AsmNameExt, string Path, boolean DisplayInWindow)
Retrieves the geometry representation for the specified model
pwlGraphicsSimprepActivate (string MdlNameExt)
Activates the graphics simplified representation for the specified model
pwlGraphicsSimprepOpen (string AsmNameExt, string Path, boolean DisplayInWindow)
Retrieves the graphics representation for the specified model
pwlInstanceErase (string MdlNameExt, string Name)
Removes an instance from memory
pwlInstanceOpen (string MdlNameExt, string InstanceName, boolean DisplayInWindow)
Opens an instance in a Creo Parametric session
pwlItemHighlight (string SelString)
Highlights the specified item
pwlItemIDToName (string MdlNameExt, number ItemID, number ItemType)
Retrieves the name of an item, given its identifier
pwlItemNameSetByID (string MdlNameExt, number ItemID, number ItemType, string ItemName)
Sets the name of an item, given its identifier
pwlItemNameToID (string MdlNameExt, string ItemName, number ItemType)
Retrieves the identifier of an item, given its name
pwlItemUnhighlight (string SelString)
Removes the highlighting from the specified item
pwlLayerCreate (string MdlNameExt, string LayerName)
Creates a new layer
pwlLayerDelete (string MdlNameExt, string LayerName)
Deletes a layer, given its name
pwlLayerDisplayGet (string MdlNameExt, string LayerName)
Gets the display type for the specified layer
pwlLayerDisplaySet (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.
pwlLayerItemAdd (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
pwlLayerItemRemove (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
pwlLayerItemsGet (string MdlNameExt, string LayerName)
Retrieves the items on the specified layer
Retrieves the current model in session
pwlMdlDependenciesGet (string MdlNameExt)
Retrieves all the top-level dependent models in the specified model
pwlMdlDimensionsGet (string MdlNameExt, number DimType)
Gets the dimension identifiers of the specified model
pwlMdlErase (string MdlNameExt)
Erases the specified model from memory
pwlMdlFeaturesGet (string MdlNameExt, number FeatureType)
Retrieves all the features in the specified model
pwlMdlInfoGet (string NameExt)
Retrieves information about the specified model
pwlMdlIntralinkInfoGet (string NameExt)
Retrieves the Pro/INTRALINK information for the specified model.
pwlMdlLayersGet (string MdlNameExt)
pwlMdlNotesGet (string MdlNameExt)
Lists the notes in the specified model
pwlMdlOpen (string MdlNameExt, string Path, boolean DisplayInWindow)
Retrieves the specified model into the current Creo Parametric session
pwlMdlParametersGet (string MdlNameExt)
Lists the model parameters
pwlMdlRegenerate (string MdlNameExt)
Regenerates the specified model
pwlMdlRename (string OrigNameExt, string NewNameExt)
Renames the specified model in the current Creo Parametric session
pwlMdlSaveAs (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
pwlMdlSimprepsGet (string MdlNameExt)
Lists the simplified representations for the specified model
pwlMdlViewsGet (string MdlNameExt)
Gets the number and names of all the views in the specified model
pwlNoteNameGet (string MdlNameExt, number NoteID)
Gets the name of the note, given its identifier This function does not apply to drawings
pwlNoteNameSet (string MdlNameExt, number NoteID, string NewName)
Sets the name of the specified note This function does not apply to drawings
pwlNoteOwnerGet (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
pwlNoteTextGet (string MdlNameExt, number NoteID)
Gets the text of the specified note. Symbols are replaced by a "*"
pwlNoteTextSet (string MdlNameExt, number NoteID, number NumTextLines, stringseq NoteText)
Sets the text of the specified note
pwlNoteURLGet (string MdlNameExt, number NoteID)
Gets the Uniform Resource Locator (URL) of the specified note This function does not apply to drawings
pwlNoteURLSet (string MdlNameExt, number NoteID, string NoteURL)
Sets the Uniform Resource Locator (URL) of the specified note This function does not apply to drawings
pwlObjMdlsCheckOut (boolean LinkOrCopy, string WorkspaceName, number NumObj, stringseq ObjNames, intseq ObjVersions, number RelCriteria)
Checks out Pro/INTRALINK objects from the Commonspace to a Workspace.
pwlParameterCreate (string MdlNameExt, number ItemType, number ItemID, string ParamName, number ValueType, number IntVal, number DoubleVal, string StringVal, boolean BooleanVal)
Creates a new parameter
pwlParameterDelete (string MdlNameExt, number ItemType, number ItemId, string ParamName)
Deletes the specified parameter
pwlParameterDesignationAdd (string MdlNameExt, string ParamName)
Designates the specified parameter for Windchill
pwlParameterDesignationRemove (string MdlNameExt, string ParamName)
Removes the designation from the specified parameter
pwlParameterDesignationVerify (string MdlNameExt, string ParamName)
Determines whether the specified parameter has been designated for Windchill
pwlParameterRename (string MdlNameExt, number ItemType, number ItemId, string ParamName, string NewName)
Renames the specified parameter
pwlParameterReset (string MdlNameExt, number ItemType, number ItemId, string ParamName)
Resets the specified parameter value to its last regenerated value
pwlParameterValueGet (string MdlNameExt, number ItemType, number ItemID, string ParamName)
Retrieves the value of the specified parameter
pwlParameterValueSet (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
pwlPartMaterialCurrentGet (string MdlNameExt)
Gets the current material name of the specified part
pwlPartMaterialCurrentSet (string MdlNameExt, string MaterialName)
Sets the current material name for the specified part. The material must already be associated with the part.
pwlPartMaterialDataGet (string MdlNameExt, string MaterialName)
Get the properties of the specified material
pwlPartMaterialDataSet (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
pwlPartMaterialGet (string MdlNameExt)
Gets the material name of the specified part. This function is identical to pfcScript.pwlPartMaterialCurrentGet() and is maintained for backwards compatibility.
pwlPartMaterialSet (string MdlNameExt, string MaterialName)
Sets the material name for the specified part from a material file
pwlPartMaterialsGet (string MdlNameExt)
Gets all the material names for the specified part
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
pwlSelect (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
pwlSelectionCreate (string TopModel, number NumComponents, stringseq ComponentPath, intseq ComponentIDs, number ItemType, number ItemID)
pwlSelectionParse (string SelString)
Parses the components from the specified selection string
pwlSessionMdlsGet (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
Lists the identifiers of the windows currently in the Creo Parametric session
pwlSimprepActivate (string MdlNameExt, string SimprepName)
Activates a simplified representation for the specified model
pwlSimprepCurrentGet (string AsmNameExt)
Returns the current active simplified representation for the specified assembly
pwlSimprepMasterActivate (string MdlNameExt)
Activates the master simplified representation for the specified model
pwlSimprepOpen (string AsmNameExt, string Path, string RepName, boolean DisplayInWindow)
Retrieves the specified simplified representation
pwlSolidMassPropertiesGet (string MdlNameExt, string CoordinateSys)
Gets the mass properties for the specified solid
pwlSolidXSectionDisplay (string MdlNameExt, string CrossSectionName)
Displays the specified cross section
pwlSolidXSectionsGet (string MdlNameExt)
Retrieves the cross sections from the specified model
number
Converts a pfcModelItemType to the corresponding PWL constant
number
Converts a pfcModelType to the corresponding PWL constant
Converts a PWL constant to the corresponding pfcModelItemType
pwlTypeToModelType (number Type)
Converts a PWL constant to the corresponding pfcModelType
pwluBooleanArrayAlloc (number ArraySize)
Allocates an array of boolean values
pwluDoubleArrayAlloc (number ArraySize)
Allocates an array of doubles
pwluIntArrayAlloc (number ArraySize)
Allocates an array of integers
pwluStringArrayAlloc (number ArraySize)
Allocates an array of strings
pwlViewDefaultSet (string MdlNameExt)
Sets the specified model to the default view for that model
pwlViewSet (string MdlNameExt, string NamedView)
Sets the view to a predefined view setting
pwlWindowActivate (number WindowID)
Activates the specified window
Gets the active window in the Creo Parametric session
pwlWindowClose (number WindowID)
Closes the specified window. Specify the value -1 to close the current window.
pwlWindowMdlGet (number WindowID)
Retrieves the model associated with the specified window
pwlWindowRepaint (number WindowID)
Repaints the contents of the specified window. Specify the value -1 to repaint the current window
Method Detail
number
eval
(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.
GetPWLConstants
()
Returns an object that contains Web.Link defined constants.
See Also:
Returns:
The object that contains the constant integers used by other methods.
GetPWLFeatureConstants
()
Returns an object that contains Web.Link defined feature constants.
See Also:
Returns:
The object that contains the feature-related constant integers used by other methods.
pwlAccessRequest
(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:
pwlApplicationStart
(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:
pwlAssemblyComponentReplace
(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:
User Guide References:
pwlAssemblyComponentsGet
(string AsmNameExt)
Retrieves all the components in the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
Returns:
User Guide References:
pwlAssemblyExplodeDefaultSet
(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:
User Guide References:
pwlAssemblyExplodeStateSet
(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:
User Guide References:
pwlAssemblyExplodeStatesGet
(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:
User Guide References:
pwlAssemblyExplodeStatusGet
(string AsmNameExt)
Gets the current, predefined explode state of the specified assembly
Parameters:
AsmNameExt
The name and extension of the assembly
Returns:
User Guide References:
pwlAssemblyExplodeStatusSet
(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:
User Guide References:
pwlDimensionInfoGetByID
(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:
User Guide References:
pwlDimensionInfoGetByName
(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:
User Guide References:
pwlDimensionToleranceSetByID
(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:
User Guide References:
pwlDimensionValueSetByID
(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:
User Guide References:
pwlDirectoryCurrentGet
()
Gets the current directory
Returns:
User Guide References:
pwlDirectoryCurrentSet
(string DirectoryPath)
Sets the current directory to the one specified by the argument DirectoryPath
Parameters:
DirectoryPath
The path to the current directory
Returns:
User Guide References:
pwlDirectoryFilesGet
(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:
User Guide References:
pwlEnvVariableGet
(string VarName)
Gets the value of the specified environment variable
Parameters:
VarName
The name of the environment variable
Returns:
pwlFamtabInstanceAdd
(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:
User Guide References:
pwlFamtabInstanceLockAdd
(string MdlNameExt, string Name)
Locks the specified instance
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
User Guide References:
pwlFamtabInstanceLockGet
(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:
User Guide References:
pwlFamtabInstanceLockRemove
(string MdlNameExt, string Name)
Unlocks the specified instance
Parameters:
MdlNameExt
The name and extension of the model
Name
The name of the instance
Returns:
User Guide References:
pwlFamtabInstanceRemove
(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:
User Guide References:
pwlFamtabInstancesGet
(string MdlNameExt)
Gets the rows of a family table
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlFamtabInstanceValueGet
(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:
User Guide References:
pwlFamtabInstanceValueSet
(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:
User Guide References:
pwlFamtabItemAdd
(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:
User Guide References:
pwlFamtabItemRemove
(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:
User Guide References:
pwlFamtabItemsGet
(string MdlNameExt)
Gets the columns of the family table
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlFeatureChildrenGet
(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:
User Guide References:
pwlFeatureDeleteByID
(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:
User Guide References:
pwlFeatureDeleteByIDList
(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:
User Guide References:
pwlFeatureDeleteByLayer
(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:
User Guide References:
pwlFeatureDeleteByName
(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:
User Guide References:
pwlFeatureDimensionsGet
(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:
User Guide References:
pwlFeatureInfoGetByID
(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:
User Guide References:
pwlFeatureInfoGetByName
(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:
User Guide References:
pwlFeatureNameGetByID
(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:
User Guide References:
pwlFeatureNameSetByID
(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:
User Guide References:
pwlFeatureNotesGet
(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:
User Guide References:
pwlFeatureParametersDisplay
(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:
User Guide References:
pwlFeatureParametersGet
(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:
User Guide References:
pwlFeatureParentsGet
(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:
User Guide References:
pwlFeatureResumeByID
(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:
User Guide References:
pwlFeatureResumeByIDList
(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:
User Guide References:
pwlFeatureResumeByLayer
(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:
User Guide References:
pwlFeatureResumeByName
(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:
User Guide References:
pwlFeatureStatusGet
(string MdlNameExt, number FeatureID)
Gets the feature status
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
Returns:
User Guide References:
pwlFeatureSuppressByID
(string MdlNameExt, number FeatureID)
Suppresses a feature, given its identifier
Parameters:
MdlNameExt
The name and extension of the model
FeatureID
The feature identifier
Returns:
User Guide References:
pwlFeatureSuppressByIDList
(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:
User Guide References:
pwlFeatureSuppressByLayer
(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:
User Guide References:
pwlFeatureSuppressByName
(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:
User Guide References:
pwlGeomSimprepActivate
(string MdlNameExt)
Activates the geometry simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlGeomSimprepOpen
(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:
User Guide References:
pwlGraphicsSimprepActivate
(string MdlNameExt)
Activates the graphics simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlGraphicsSimprepOpen
(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:
User Guide References:
pwlInstanceErase
(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:
User Guide References:
pwlInstanceOpen
(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:
User Guide References:
pwlItemHighlight
(string SelString)
Highlights the specified item
Parameters:
SelString
The selection string that identifies the item
Returns:
User Guide References:
pwlItemIDToName
(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:
User Guide References:
pwlItemNameSetByID
(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:
User Guide References:
pwlItemNameToID
(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:
User Guide References:
pwlItemUnhighlight
(string SelString)
Removes the highlighting from the specified item
Parameters:
SelString
The selection string that identifies the item
Returns:
User Guide References:
pwlLayerCreate
(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:
User Guide References:
pwlLayerDelete
(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:
User Guide References:
pwlLayerDisplayGet
(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:
User Guide References:
pwlLayerDisplaySet
(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:
User Guide References:
pwlLayerItemAdd
(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:
User Guide References:
pwlLayerItemRemove
(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:
User Guide References:
pwlLayerItemsGet
(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:
User Guide References:
pwlMdlCurrentGet
()
Retrieves the current model in session
Returns:
User Guide References:
pwlMdlDependenciesGet
(string MdlNameExt)
Retrieves all the top-level dependent models in the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlDimensionsGet
(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:
User Guide References:
pwlMdlErase
(string MdlNameExt)
Erases the specified model from memory
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlFeaturesGet
(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:
User Guide References:
pwlMdlInfoGet
(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:
User Guide References:
pwlMdlIntralinkInfoGet
(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:
pwlMdlLayersGet
(string MdlNameExt)
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlNotesGet
(string MdlNameExt)
Lists the notes in the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlOpen
(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:
User Guide References:
pwlMdlParametersGet
(string MdlNameExt)
Lists the model parameters
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlRegenerate
(string MdlNameExt)
Regenerates the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlRename
(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:
User Guide References:
pwlMdlSaveAs
(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:
User Guide References:
pwlMdlSimprepsGet
(string MdlNameExt)
Lists the simplified representations for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlMdlViewsGet
(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:
User Guide References:
pwlNoteNameGet
(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:
User Guide References:
pwlNoteNameSet
(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:
User Guide References:
pwlNoteOwnerGet
(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:
User Guide References:
pwlNoteTextGet
(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:
User Guide References:
pwlNoteTextSet
(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:
User Guide References:
pwlNoteURLGet
(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:
User Guide References:
pwlNoteURLSet
(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:
User Guide References:
pwlObjMdlsCheckOut
(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:
pwlParameterCreate
(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:
User Guide References:
pwlParameterDelete
(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:
User Guide References:
pwlParameterDesignationAdd
(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:
User Guide References:
pwlParameterDesignationRemove
(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:
User Guide References:
pwlParameterDesignationVerify
(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:
User Guide References:
pwlParameterRename
(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:
User Guide References:
pwlParameterReset
(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:
User Guide References:
pwlParameterValueGet
(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:
User Guide References:
pwlParameterValueSet
(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:
User Guide References:
pwlPartMaterialCurrentGet
(string MdlNameExt)
Gets the current material name of the specified part
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlPartMaterialCurrentSet
(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:
User Guide References:
pwlPartMaterialDataGet
(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:
User Guide References:
pwlPartMaterialDataSet
(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:
User Guide References:
pwlPartMaterialGet
(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:
pwlPartMaterialSet
(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:
User Guide References:
pwlPartMaterialsGet
(string MdlNameExt)
Gets all the material names for the specified part
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlProEngineerConnect
()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
pwlProEngineerDisconnect
()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
pwlProEngineerDisconnectAndStop
()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
pwlProEngineerStartAndConnect
()
This method does nothing in the embedded browser Web.Link. It is provided solely for backwards compatiblity with old applications.
Returns:
pwlSelect
(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:
User Guide References:
pwlSelectionCreate
(string TopModel, number NumComponents, stringseq ComponentPath, intseq ComponentIDs, number ItemType, number ItemID)
Parameters:
TopModel
NumComponents
ComponentPath
ComponentIDs
ItemType
ItemID
Returns:
User Guide References:
pwlSelectionParse
(string SelString)
Parses the components from the specified selection string
Parameters:
SelString
The selection string to be parsed
Returns:
User Guide References:
pwlSessionMdlsGet
(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:
User Guide References:
pwlSessionWindowsGet
()
Lists the identifiers of the windows currently in the Creo Parametric session
User Guide References:
Returns:
pwlSimprepActivate
(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:
User Guide References:
pwlSimprepCurrentGet
(string AsmNameExt)
Returns the current active simplified representation for the specified assembly
Parameters:
AsmNameExt
The full name of the part or assembly
Returns:
pwlSimprepMasterActivate
(string MdlNameExt)
Activates the master simplified representation for the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlSimprepOpen
(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:
User Guide References:
pwlSolidMassPropertiesGet
(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:
User Guide References:
pwlSolidXSectionDisplay
(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:
User Guide References:
pwlSolidXSectionsGet
(string MdlNameExt)
Retrieves the cross sections from the specified model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
number
pwlTypeFromModelItemType
Converts a pfcModelItemType to the corresponding PWL constant
Parameters:
Type
Returns:
number
pwlTypeFromModelType
(pfcModelType Type)
Converts a pfcModelType to the corresponding PWL constant
Parameters:
Type
Returns:
pwlTypeToModelItemType
(number Type)
Converts a PWL constant to the corresponding pfcModelItemType
Parameters:
Type
Returns:
pwlTypeToModelType
(number Type)
Converts a PWL constant to the corresponding pfcModelType
Parameters:
Type
Returns:
pwluBooleanArrayAlloc
(number ArraySize)
Allocates an array of boolean values
Parameters:
ArraySize
The size of the boolean array to allocate
Returns:
User Guide References:
pwluDoubleArrayAlloc
(number ArraySize)
Allocates an array of doubles
Parameters:
ArraySize
size of the double array to allocate
Returns:
User Guide References:
pwluIntArrayAlloc
(number ArraySize)
Allocates an array of integers
Parameters:
ArraySize
The size of the integer array to allocate
Returns:
User Guide References:
pwluStringArrayAlloc
(number ArraySize)
Allocates an array of strings
Parameters:
ArraySize
The size of the string array to allocate
Returns:
User Guide References:
pwlViewDefaultSet
(string MdlNameExt)
Sets the specified model to the default view for that model
Parameters:
MdlNameExt
The name and extension of the model
Returns:
User Guide References:
pwlViewSet
(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:
User Guide References:
pwlWindowActivate
(number WindowID)
Activates the specified window
Parameters:
WindowID
The identifier of the window to activate
Returns:
User Guide References:
pwlWindowActiveGet
()
Gets the active window in the Creo Parametric session
User Guide References:
Returns:
pwlWindowClose
(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:
User Guide References:
pwlWindowMdlGet
(number WindowID)
Retrieves the model associated with the specified window
Parameters:
WindowID
The identifier of the window with which the model is associated
Returns:
User Guide References:
pwlWindowRepaint
(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:
Was this helpful?