<script src = "wl_header.js">
document.writeln ("Error loading Web.Link header<p>");
</script>| • | wl_header.js—Contains only the JavaScript functions. This file is included in the head of the HTML page. |
| • | pfcIsWindows for Internet Explorer |
| • | pfcIsMozilla for Mozilla |
| • | pfcIsChrome for Chromium |

if (!ret.Status && ret.ErrorCode != pwl.PWL_E_NOT_FOUND)| • | PWL_NO_ERROR |
| • | PWL_EXEC_NOT_FOUND |
| • | PWL_NO_ACCESS |
| • | PWL_GENERAL_ERROR |
| • | PWL_BAD_INPUTS |
| • | PWL_USER_ABORT |
| • | PWL_E_NOT_FOUND |
| • | PWL_E_FOUND |
| • | PWL_LINE_TOO_LONG |
| • | PWL_CONTINUE |
| • | PWL_BAD_CONTEXT |
| • | PWL_NOT_IMPLEMENTED |
| • | PWL_OUT_OF_MEMORY |
| • | PWL_COMM_ERROR |
| • | PWL_NO_CHANGE |
| • | PWL_SUPP_PARENTS |
| • | PWL_PICK_ABOVE |
| • | PWL_INVALID_DIR |
| • | PWL_INVALID_FILE |
| • | PWL_CANT_WRITE |
| • | PWL_INVALID_TYPE |
| • | PWL_INVALID_PTR |
| • | PWL_UNAV_SEC |
| • | PWL_INVALID_MATRIX |
| • | PWL_INVALID_NAME |
| • | PWL_NOT_EXIST |
| • | PWL_CANT_OPEN |
| • | PWL_ABORT |
| • | PWL_NOT_VALID |
| • | PWL_INVALID_ITEM |
| • | PWL_MSG_NOT_FOUND |
| • | PWL_MSG_NO_TRANS |
| • | PWL_MSG_FMT_ERROR |
| • | PWL_MSG_USER_QUIT |
| • | PWL_MSG_TOO_LONG |
| • | PWL_CANT_ACCESS |
| • | PWL_OBSOLETE_FUNC |
| • | PWL_NO_COORD_SYSTEM |
| • | PWL_E_AMBIGUOUS |
| • | PWL_E_DEADLOCK |
| • | PWL_E_BUSY |
| • | PWL_NOT_IN_SESSION |
| • | PWL_INVALID_SELSTRING |
| |
| |
| |
| |
| |
pwlMdlCurrentGet();
Additional return fields:
string MdlNameExt; // The full name of the
// current model pwlSessionMdlsGet (
integer MdlType // The type of model to list.
// Use parseInt with this
// argument.
);
Additional return fields:
integer NumMdls; // The number of models in
// the list.
string MdlNameExt[]; // The full names of the
// models of the specified
// type.
| • | PWL_ASSEMBLY |
| • | PWL_PART |
| • | PWL_DRAWING |
| • | PWL_2DSECTION |
| • | PWL_LAYOUT |
| • | PWL_DWGFORM |
| • | PWL_MFG |
| • | PWL_REPORT |
| • | PWL_MARKUP |
| • | PWL_DIAGRAM |
pwlMdlDependenciesGet (
string MdlNameExt // The full name of the model
// whose dependencies you want
);
Additional return fields:
integer NumMdls; // The number of models in the
// returned array
string MdlNameExt[]; // The array of models upon
// which the specified model
// depends
pwlMdlInfoGet (
string NameExt // The full name of the model
);
Additional return fields:
string ImmediateGeneralName; // The immediate
// general name
string TopGenericName; // The top-level
// generic name of
// the model
integer MdlType; // The model type
pwlMdlRegenerate (
string MdlNameExt // The full name of the model
);
pwlMdlOpen (
string MdlNameExt, // The full name of the
// model.
string Path, // The full directory
// path to the model.
boolean DisplayInWindow // If this is true, display
// the retrieved model in
// a Creo Parametric window.
);
Additional return field:
integer WindowID; // The identifier of the
// window in which the
// model is displayed.
pwlMdlSaveAs (
string OrigNameExt, // The original name of the
// model, including the
// extension
string NewPath, // The new path to the model
string NewNameExt // The new name of the model,
// including the extension
); pwlMdlErase (
string MdlNameExt // The full name of the model
// to erase from memory
); pwlMdlRename (
string OrigNameExt, // The original name of the
// model, including the
// extension
string NewNameExt // The new name of the model,
// including the extension
); pwlItemNameToID (
string MdlNameExt, // The full name of the model
string ItemName, // The name of the model item
integer ItemType // The type of model item
);
Additional return field:
integer ItemID; // The identifier of the
// model item
pwlItemIDToName (
string MdlNameExt, // The full name of the model
integer ItemID, // The item identifier
integer ItemType // The type of model item
);
Additional return field:
string ItemName; // The name of the model item pwlItemNameSetByID (
string MdlNameExt, // The full name of the model
integer ItemID, // The identifier of the
// model item
integer ItemType, // The type of model item
string ItemName // The new name for the model
// item
);| |
| |
| |
| |
| |
| |
pwlWindowRepaint (
integer WindowID // The window identifier. Use -1
// to repaint the current window.
// Use parseInt with this argument.
); pwlSessionWindowsGet();
Additional return fields:
integer NumWindows; // The number of windows
integer WindowIDs[]; // The list of window identifiers pwlWindowMdlGet (
integer WindowID // The window identifier.
// Use -1 for the current
// window. Use parseInt with
// this argument.
);
Additional return field:
string MdlNameExt; // The full name of the
// model associated with
// the specified window. pwlWindowActiveGet();
Additional return field:
integer WindowID; // The identifier of the currently
// active window. Use parseInt
// with this argument. pwlWindowActivate (
integer WindowID // The identifier of the window to
// make active. Use parseInt with
// this argument.
); pwlWindowClose (
integer WindowID // The identifier of the window
// to close. Use parseInt with this
// argument.
);| • | pfcScript.pwlGeomSimprepOpen() |
| • | pfcScript.pwlGraphicsSimprepOpen() |
| • | pfcScript.pwlInstanceOpen() |
| • | pfcScript.pwlMdlOpen() |
| • | pfcScript.pwlSessionWindowsGet() |
| • | pfcScript.pwlSimprepOpen() |
| • | pfcScript.pwlWindowActiveGet() |
pwlViewSet (
string MdlNameExt, // The full name of the model
string NamedView // The name of the view
); pwlViewDefaultSet (
string MdlNameExt // The full name of the model
); pwlMdlViewsGet (
string MdlNameExt // The full name of the model
);
Additional return fields:
integer NumViews; // The number of views
string ViewNames[]; // The list of view names pwlSelect (
string SelectableFilter, // The selection filter.
integer MaxSelectable // The maximum number
// of items that can be
// selected. If this is
// a negative number,
// there is an unlimited
// number of selections.
// Use parseInt with
// this argument.
);
Additional return fields:
integer NumSelections; // The number of
// selections made.
string Selections[]; // The selections.| • | “feature” |
| • | “dimension” |
| • | “part” |
| • | “prt_or_asm” |
pwlSelectionCreate (
string TopModel, // The top-level model.
integer NumComponents, // The number of
// components in the
// component path. Use
// parseInt with this
// argument.
string ComponentPath[], // The model names for
// each level of the
// component path.
integer ComponentIDs[], // The model identifiers
// for each level of the
// component path. Use
// parseInt with this
// argument.
integer ItemType, // The type of selection
// item. Use parseInt
// with this argument.
integer ItemID // The identifier of
// the selection item.
// Use parseInt with this
// argument.
);
Additional return field:
string Selection; // The selection string.| • | PWL_DIMENSION |
| • | PWL_FEATURE |
| • | PWL_TYPE_UNUSED |
pwlSelectionParse (
string SelString // The selection string
// to parse
);
Addition return fields:
string TopModel; // The top-level model
integer NumComponents; // The number of
// components in the
// component path
string ComponentPath[]; // The model names for
// each level of the
// component path
integer ComponentIDs[]; // The model identifiers
// for each level of the
// component path
integer ItemType; // The type of selection
// item
integer ItemID; // The identifier of the
// selection item pwlItemHighlight (
string SelString // The selection string that
// identifies the item
);
pwlItemUnhighlight (
string SelString // The selection string that
// identifies the item
);| |
| |
| |
| |
| |
| |
pwlPartMaterialCurrentGet (
string MdlNameExt // The full name of the model
);
Additional return field:
string MaterialName; // The name of the current
// material
pwlPartMaterialSet (
string MdlNameExt, // The full name of the model
string MaterialName // The name of the material
// file
); pwlPartMaterialCurrentSet (
string MdlNameExt, // The full name of the model
string MaterialName // The name of the material
); pwlPartMaterialsGet (
string MdlNameExt // The full name of the
// model
);
Additional return fields:
integer NumMaterials; // The number of materials
// used in the part
string Materials[]; // The list of materials pwlPartMaterialdataGet (
string MdlNameExt, // The full name of the
// model
string MaterialName // The name of the
// material
);
Additional return fields:
number YoungModulus; // The young modulus
number PoissonRatio; // The Poisson ratio
number ShearModulus; // The shear modulus
number MassDensity; // The mass density
number ThermExpCoef; // The thermal expansion
// coefficient
number ThermExpRefTemp; // The thermal expansion
// reference temperature
number StructDampCoef; // The structural
// damping coefficient
number StressLimTension; // The stress limit
// for tension
number StressLimCompress; // The stress limit for
// compression
number StressLimShear; // The stress limit for
// shear
number ThermConductivity; // The thermal
// conductivity
number Emissivity; // The emissivity
number SpecificHeat; // The specific heat
number Hardness; // The hardness
string Condition; // The condition
number InitBendYFactor; // The initial bend
// Y factor
string BendTable; // The bend table
pwlPartMaterialdataSet (
string MdlNameExt, // The full name of the
// model
string MaterialName, // The name of the
// material
number YoungModulus, // The young modulus
number PoissonRatio, // The Poisson ratio
number ShearModulus, // The shear modulus
number MassDensity, // The mass density
number ThermExpCoef, // The thermal expansion
// coefficient
number ThermExpRefTemp, // The thermal expansion
// reference temperature
number StructDampCoef, // The structural
// damping coefficient
number StressLimTension, // The stress limit
// for tension
number StressLimCompress, // The stress limit for
// compression
number StressLimShear, // The stress limit for
// shear
number ThermConductivity, // The thermal
// conductivity
number Emissivity, // The emissivity
number SpecificHeat, // The specific heat
number Hardness, // The hardness
string Condition, // The condition
number InitBendYFactor, // The initial bend
// Y factor
string BendTable // The bend table
); pwlAssemblyComponentsGet (
string AsmNameExt // The full name of the
// assembly
);
Additional return fields:
integer NumMdls; // The number of components
string MdlNameExt[]; // The full names of the
// assembly components
integer ComponentID[]; // The array of component
// identifiers
pwlAssemblyComponentReplace (
string AsmNameExt, // The full name of
// the assembly.
string NewComponentNameExt,// The full name of the
// new component.
integer NumComponentIDs, // The number of
// components to be
// replaced. Use
// parseInt with this
// argument.
integer ComponentIDs[]) // The identifiers of
// the components to
// be replaced. Use
// parseInt with this
// argument.
| 1. | Automatic assembly from notebook mode |
| 2. | Family table membership |
| 3. | Interchange assembly Note
If you want to use an interchange assembly, you must first load it into memory. Use the function pfcScript.pwlMdlOpen() and set the argument DisplayInWindow to false.
|
| |
| |
| |
| |
| |
pwlAssemblyExplodeStatusGet (
string AsmNameExt // The full name of the
// assembly.
);
Additional return field:
boolean ExplodeStatus; // If this is true, the
// assembly is exploded.
pwlAssemblyExplodeStatusSet (
string AsmNameExt, // The full name of the
// assembly
boolean ExplodeStatus // The new explode status
); pwlAssemblyExplodeDefaultSet (
string AsmNameExt // The full name of the assembly
); pwlAssemblyExplodeStatesGet (
string AsmNameExt // The full name of the
// assembly
);
Additional return fields:
integer NumExpldstates; // The number of explode
// states
string ExpldstateNames[]; // The names of the
// explode states pwlAssemblyExplodeStateSet (
string AsmNameExt, // The full name of the
// assembly
string ExpldstateName // The name of a predefined
// explode state
);| |
| |
| |
| |
| |
| |
pwlMdlFeaturesGet (
string MdlNameExt, // The full name of the model.
integer FeatureType // The type of feature to
// list. Use parseInt with
// this argument.
);
Additional return fields:
integer NumFeatures; // The number of features.
integer FeatureIDs[]; // The list of feature
// identifiers.
pwlFeatureInfoGetByID (
string MdlNameExt, // The full name of the model.
integer FeatureID // The feature identifier.
// Use parseInt with this
// argument.
);
Additional return fields:
integer FeatureType; // The feature type.
integer FeatureID; // The feature identifier.
string FeatureName; // The name of the feature.
string FeatTypeName; // The string name of the
// feature type, such as
// "Hole." pwlFeatureInfoGetByName (
string MdlNameExt, // The full name of the model
string FeatureName // The name of the feature
);
Additional return fields:
integer FeatureType; // The feature type
integer FeatureID; // The feature identifier
string FeatureName; // The name of the feature
string FeatTypeName; // The string name of the
// feature type, such as
// "Hole" pwlFeatureParentsGet (
string MdlNameExt, // The full name of the model.
integer FeatureID // The identifier of the
// child feature. Use
// parseInt with this
// argument.
);
Additional return fields:
integer NumParents; // The number of parents.
integer ParentIDs[]; // The list of feature
// identifiers for the
// parents.
pwlFeatureChildrenGet (
string MdlNameExt, // The full name of the model.
integer FeatureID // The identifier of the
// parent feature. Use
// parseInt with this
// argument.
);
Additional return fields:
integer NumChildren; // The number of children.
integer ChildIDs[]; // The list of feature
// identifiers for the
// children. pwlFeatureStatusGet (
string MdlNameExt, // The full name of the model.
integer FeatureID // The feature identifier.
// Use parseInt with this
// argument.
);
Additional return fields:
integer FeatureStatus; // The feature status.
integer PatternStatus; // The pattern status.
integer GroupStatus; // The group status.
integer GroupPatternStatus; // The group pattern
// status.
| • | FeatureStatus—The feature status. The defined constants are as follows:
|
| • | PatternStatus—The pattern status. The defined constants are as follows:
|
| • | GroupStatus—The group status. The defined constants are as follows:
|
| • | GroupPatternStatus—The group pattern status. The defined constants are as follows:
|
pwlFeatureNameGetByID (
string MdlNameExt, // The full name of the model.
integer FeatureID // The feature identifier. Use
// parseInt with this
// argument.
);
Additional return field:
string FeatureName; // The name of the feature.
pwlFeatureNameSetByID (
string MdlNameExt, // The full name of the model.
integer FeatureID, // The feature identifier.
// Use parseInt with this
// argument.
string FeatureName // The new name of the
// feature.
);| |
| |
| |
| |
pwlFeatureSuppressByID (
string MdlNameExt, // The full name of the model.
integer FeatureID // The identifier of the
// feature to suppress. Use
// parseInt with this
// argument.
); pwlFeatureSuppressByIDList (
string MdlNameExt, // The full name of the model.
integer NumFeatures, // The number of feature
// identifiers in the list.
// Use parseInt with this
// argument.
integer FeatureIDs[] // The list of identifiers
// of features to suppress.
// Use parseInt with this
// argument.
); pwlFeatureSuppressByLayer (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer
// to suppress
); pwlFeatureSuppressByName (
string MdlNameExt, // The full name of the
// model
string FeatureName // The name of the feature
// to suppress
);| |
| |
| |
| |
pwlFeatureResumeByID (
string MdlNameExt, // The full name of the
// model.
integer FeatureID, // The identifier of the
// feature to resume. Use
// parseInt with this
// argument.
boolean ResumeParents // Specifies whether to
// resume the parents of
// the feature.
);
pwlFeatureResumeByIDList (
string MdlNameExt, // The full name of the
// model.
integer NumFeatures, // The number of identifiers
// in the list. Use parseInt
// with this argument.
integer FeatureIDs[], // The list of identifiers
// of features to resume.
// Use parseInt with this
// argument.
boolean ResumeParents // Specifies whether to
// resume the parents of
// the features.
);
pwlFeatureResumeByLayer (
string MdlNameExt, // The full name of the
// model
string LayerName, // The name of the layer
// to resume
boolean ResumeParents // Specifies whether to
// resume the parents of
// the features
);
pwlFeatureResumeByName (
string MdlNameExt, // The full name of the
// model
string FeatureName, // The name of the feature
// to resume
boolean ResumeParents // Specifies whether to
// resume the parents of
// the feature
);| |
| |
| |
| |
pwlFeatureDeleteByID (
string MdlNameExt, // The full name of the model.
integer FeatureID // The identifier of the
// feature to delete. Use
// parseInt with this
// argument.
); pwlFeatureDeleteByIDList (
string MdlNameExt, // The full name of the model.
integer NumFeatures, // The number of identifiers
// in the list. Use parseInt
// with this argument.
integer FeatureIDs[] // The list of identifiers
// of features to delete. Use
// parseInt with this
// argument.
); pwlFeatureDeleteByLayer (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer to
// delete
); pwlFeatureDeleteByName (
string MdlNameExt, // The full name of the model
string FeatureName // The name of the feature
// to delete
); pwlFeatureParametersDisplay (
string SelString, // The selection string that
// identifies the feature.
integer ItemType // The type of parameter to
// display. Use parseInt with
// this argument.
);| • | PWL_USER_PARAM |
| • | PWL_DIM_PARAM |
| • | PWL_PATTERN_PARAM |
| • | PWL_REFDIM_PARAM |
| • | PWL_ALL_PARAMS |
| • | PWL_GTOL_PARAM |
| • | PWL_SURFFIN_PARAM |
pwlMdlParametersGet (
string MdlNameExt // The full name of the model
);
Additional return fields:
integer NumParams; // The number of parameters
// in the array ParamNames
string ParamNames[]; // The list of parameter
// names
pwlFeatureParametersGet (
string MdlNameExt, // The full name of the
// model (part or assembly).
integer FeatureID // The identifier for which
// parameters should be
// found. Use parseInt with
// this argument.
);
Additional return fields:
integer NumParams; // The number of parameters
// in the array ParamNames.
string ParamNames[]; // The list of parameter
// names.
| |
| |
| |
| |
| |
| |
pwlParameterValueGet (
string MdlNameExt, // The full name of the
// model.
integer ItemType, // Specifies whether it
// is a model (PWL_MODEL)
// or a feature parameter
// (PWL_FEATURE). Use
// parseInt with this
// argument.
integer ItemID, // The feature identifier.
// This is unused for
// model parameters. Use
// parseInt with this
// argument.
string ParamName // The name of the
// parameter.
);
Additional return fields:
integer ParamType; // Specifies the data|
Value of the ParamType
|
Additional Fields
|
|---|---|
|
PWL_VALUE_INTEGER
|
ParamIntVal
|
|
PWL_VALUE_DOUBLE
|
ParamDoubleVal
|
|
PWL_VALUE_STRING
|
ParamStringVal
|
|
PWL_VALUE_BOOLEAN
|
ParamBooleanVal
|
<script language = "JavaScript">
function WlParameterGetValue()
{
var mdl_ret = document.pwl.pwlMdlInfoGet (
document.get_value.ModelNameExt.value);
if (!mdl_ret.Status)
{
alert ("pwlMdlInfoGet failed (" + mdl_ret.ErrorCode + ")");
return;
}
var ret = document.pwl.pwlParameterValueGet (
document.get_value.ModelNameExt.value, parseInt (mdl_ret.MdlType),
0 /* unused */, document.get_value.ParamName.value);
if (!ret.Status)
{
alert ("pwlParameterValueGet failed (" + ret.ErrorCode + ")");
return;
}
if (ret.ParamType == parseInt (document.pwl.PWL_VALUE_DOUBLE))
{
document.get_value.Value.value = ret.ParamDoubleVal;
}
else if (ret.ParamType == parseInt (document.pwl.PWL_VALUE_STRING))
{
document.get_value.Value.value = ret.ParamStringVal;
}
else if (ret.ParamType == parseInt (document.pwl.PWL_VALUE_INTEGER))
{
document.get_value.Value.value = ret.ParamIntVal;
}
else if (ret.ParamType == parseInt (document.pwl.PWL_VALUE_BOOLEAN))
{
document.get_value.Value.value = ret.ParamBooleanVal;
}
}
</script>
<form name = "get_value">
<h4>Get a Value for a Parameter (Model Parameters Only)</h4>
<p>
<center>
<!-- Input arguments -->
Model: <input type = "text" name = "ModelNameExt">
Parameter: <input type = "text" name = "ParamName">
<p>
<!-- Buttons -->
<input type = "button" value = "Get Value"
onclick = "WlParameterGetValue()">
<p>
<!-- Output arguments -->
Value: <input type = "text" name = "Value">
</center>
<hr>
</form> pwlParameterValueSet (
string MdlNameExt, // The full name of the model.
integer ItemType, // Specifies whether it is a
// model (PWL_MODEL) or a
// feature parameter
// (PWL_FEATURE). Use parseInt
// with this argument.
integer ItemID, // The feature identifier.
// This is unused for model
// parameters. Use parseInt
// with this argument.
string ParamName, // The name of the parameter.
integer ValueType, // Specifies the data type of
// the value. Use parseInt
// with this argument.
integer IntVal, // The integer value. Use
// parseInt with this argument.
number DoubleVal, // The number value. Use
// parseFloat with this
// argument.
string StringVal, // The string value.
Boolean BooleanVal // The Boolean value.
);<script language = "JavaScript">
function WlParameterCreate()
{
var mdl_ret = document.pwl.pwlMdlInfoGet (
document.create.ModelNameExt.value);
if (!mdl_ret.Status)
{
alert ("pwlMdlInfoGet failed (" + mdl_ret.ErrorCode + ")");
return;
}
var ret = document.pwl.pwlParameterCreate (
document.create.ModelNameExt.value, parseInt (mdl_ret.MdlType),
0 /* unused */, document.create.ParamName.value,
parseInt (document.pwl.PWL_VALUE_STRING), 0 /* unused */,
0.0 /* unused */, document.create.Value.value, false /* unused */);
if (!ret.Status)
{
alert ("pwlParameterCreate failed (" + ret.ErrorCode + ")");
return;
}
}
</script>
<form name = "create">
<h4>Create Parameter (Model Parameter with string Value Only)</h4>
<p>
<center>
<!-- Input arguments -->
Model: <input type = "text" name = "ModelNameExt">
Parameter: <input type = "text" name = "ParamName">
Value: <input type = "text" name = "Value">
<p>
<!-- Buttons -->
<input type = "button" value = "Create Parameter"
onclick = "WlParameterCreate()">
<p>
</center>
<hr>
</form> pwlParameterDelete (
string MdlNameExt, // The full name of the
// model.
integer ItemType, // Specifies whether it is
// a model (PWL_MODEL) or
// a feature parameter
// (PWL_FEATURE). Use
// parseInt with this
// argument.
integer ItemID, // The feature identifier.
// This is unused for model
// parameters. Use parseInt
// with this argument.
string ParamName // The name of the parameter.
); pwlParameterRename (
string MdlNameExt, // The full name of the
// model.
integer ItemType, // Specifies whether it is
// a model (PWL_MODEL) or
// a feature parameter
// (PWL_FEATURE). Use
// parseInt with this
// argument.
integer ItemID, // The feature identifier.
// This is unused for model
// parameters. Use parseInt
// with this argument.
string ParamName, // The old name of the
// parameter.
string NewName // The new name of the
// parameter.
); pwlParameterReset (
string MdlNameExt, // The full name of the
// model.
integer ItemType, // Specifies whether it is
// a model (PWL_MODEL) or
// a feature parameter
// (PWL_FEATURE). Use
// parseInt with this
// argument.
integer ItemID, // The feature identifier.
// This is unused for model
// parameters. Use parseInt
// with this argument.
string ParamName // The name of the parameter.
);| |
| |
| |
pwlParameterDesignationAdd (
string MdlNameExt, // The full name of the model
string ParamName // The name of the parameter
); pwlParameterDesignationAdd (
string MdlNameExt, // The full name of the model
string ParamName // The name of the parameter
); pwlParameterDesignationVerify (
string MdlNameExt, // The full name of the model.
string ParamName // The name of the parameter.
);
Additional return field:
boolean Exists; // If this is true, the
// parameter is currently
// designated.<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./parameters_files/filelist.xml">
<link rel=Edit-Time-Data href="./parameters_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Web.Link Parameters Test</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Scott Conover</o:Author>
<o:LastAuthor>Scott Conover</o:LastAuthor>
<o:Revision>5</o:Revision>
<o:TotalTime>7</o:TotalTime>
<o:Created>2002-11-22T15:28:00Z</o:Created>
<o:LastSaved>2002-11-22T15:46:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>151</o:Words>
<o:Characters>863</o:Characters>
<o:Company>PTC</o:Company>
<o:Lines>7</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>1059</o:CharactersWithSpaces>
<o:Version>9.3821</o:Version>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<script src="../jscript/pfcUtils.js">
</script>
<script src="../jscript/wl_header.js">
</script>
<script>
function WlParametersGet()
// Get the parameter list from the model or feature.
{
var ret;
var FunctionName;
var ItemType;
var FeatureID;
if (document.list_parm.ModelNameExt.value == "")
{
return ;
}
ItemType = document.pwl.eval(document.list_parm.ParmType.options[
document.list_parm.ParmType.selectedIndex].value);
if (parseInt(ItemType) == parseInt(document.pwlc.PWL_FEATURE))
{
if (document.list_parm.FeatureID.value == "")
{
return ;
}
FeatureID = parseInt(document.list_parm.FeatureID.value);
if (isNaN (FeatureID))
{
alert ("Invalid feature ID!");
return;
}
ret = document.pwl.pwlFeatureParametersGet(
document.list_parm.ModelNameExt.value,
parseInt(document.list_parm.FeatureID.value));
FunctionName = "pwlFeatureParametersGet";
}
else
{
FeatureID = -1;
ret = document.pwl.pwlMdlParametersGet(
document.list_parm.ModelNameExt.value);
FunctionName = "pwlMdlParametersGet";
}
if (!ret.Status)
{
alert(FunctionName + " failed (" + ret.ErrorCode + ")");
return ;
}
document.list_parm.Parameters.value = "";
for (var i = 0; i < ret.NumParams; i++)
{
var val_ret = document.pwl.pwlParameterValueGet(
document.list_parm.ModelNameExt.value,
parseInt(ItemType),
FeatureID,
ret.ParamNames.Item(i));
if (!val_ret.Status)
{
alert("pwlParameterValueGet failed (" + val_ret.ErrorCode + ")");
return ;
}
var answer = "Undefined";
if (val_ret.ParamType == parseInt(document.pwlc.PWL_VALUE_DOUBLE))
{
answer = val_ret.ParamDoubleVal;
}
else if (val_ret.ParamType == parseInt(document.pwlc.PWL_VALUE_STRING))
{
answer = val_ret.ParamStringVal;
}
else if (val_ret.ParamType == parseInt(document.pwlc.PWL_VALUE_INTEGER))
{
answer = val_ret.ParamIntVal;
}
else if (val_ret.ParamType == parseInt(document.pwlc.PWL_VALUE_BOOLEAN))
{
answer = (val_ret.ParamBooleanVal) ? "true" : "false";
}
document.list_parm.Parameters.value += ret.ParamNames.Item(i) + ": " +
answer +"\n";
}
}
function WlParameterSetValue(FunctionName)
// Set a parameter or create a new parameter, depending on the function
// name.
{
var ItemType;
var StringValue = document.set_value.Value.value;
var FloatValue = parseFloat(document.set_value.Value.value);
var IntValue = parseInt(document.set_value.Value.value);
var BoolValue = (document.set_value.Value.value.toLowerCase() == "true") ?
true : false;
var ValueType = document.pwl.eval(document.set_value.ValueType.options[
document.set_value.ValueType.selectedIndex].value);
// In order to create usable trail file FloatValue cannot be NaN
if (isNaN(FloatValue))
{
FloatValue = 1.1;
}
if (isNaN (IntValue))
{
IntValue = -5;
}
ItemType = document.pwl.eval(document.set_value.ParmType.options[
document.set_value.ParmType.selectedIndex].value);
if (ItemType == document.pwlc.PWL_MODEL)
featureID = -1;
else
featureID = parseInt(document.set_value.FeatureID.value);
if (FunctionName == "pwlParameterCreate")
{
var ret = document.pwl.pwlParameterCreate (
document.set_value.ModelNameExt.value,
ItemType,
featureID,
document.set_value.Parameter.value, ValueType,
IntValue, FloatValue, StringValue, BoolValue);
}
else
{
var ret = document.pwl.pwlParameterValueSet (
document.set_value.ModelNameExt.value,
ItemType,
featureID,
document.set_value.Parameter.value, ValueType,
IntValue, FloatValue, StringValue, BoolValue);
}
if (!ret.Status)
{
alert(FunctionName + " failed (" + ret.ErrorCode + ")");
return ;
}
}
function WlParameterMisc(FunctionName)
// Run miscellaneous parameter functions that take only model name,
// item type, item ID, and parameter name as arguments.
{
var ItemType;
ItemType = document.pwl.eval(document.misc_parm.ParmType.options[
document.misc_parm.ParmType.selectedIndex].value);
if (ItemType == document.pwlc.PWL_MODEL)
{
FeatureID = -1;
}
else
{
FeatureID = parseInt(document.misc_parm.FeatureID.value);
if (isNaN (FeatureID))
{
alert ("Invalid feature id: "+FeatureID);
return;
}
}
if (FunctionName == "pwlParameterReset")
{
var ret = document.pwl.pwlParameterReset(
document.misc_parm.ModelNameExt.value,
ItemType,
FeatureID,
document.misc_parm.Parameter.value);
}
else
{
var ret = document.pwl.pwlParameterDelete(
document.misc_parm.ModelNameExt.value,
ItemType,
FeatureID,
document.misc_parm.Parameter.value);
}
if (!ret.Status)
{
alert(FunctionName + " failed (" + ret.ErrorCode + ")");
return ;
}
}
function WlParameterRename()
// Rename a parameter.
{
var ItemType;
ItemType = document.pwl.eval(document.misc_parm.ParmType.options[
document.misc_parm.ParmType.selectedIndex].value);
if (ItemType == document.pwlc.PWL_MODEL)
{
FeatureID = -1;
}
else
{
FeatureID = parseInt(document.misc_parm.FeatureID.value);
if (isNaN (FeatureID))
{
alert ("Invalid feature id: "+FeatureID);
return;
}
}
var ret = document.pwl.pwlParameterRename(
document.misc_parm.ModelNameExt.value,
ItemType,
FeatureID,
document.misc_parm.Parameter.value,
document.misc_parm.NewName.value);
if (!ret.Status)
{
alert("pwlParameterRename failed (" + ret.ErrorCode + ")");
return ;
}
}
function WlParameterDesignate(FunctionName)
// Run designate parameter functions that take only the model name
// and parameter name as arguments and don't return anything.
{
if (FunctionName == "pwlParameterDesignationAdd")
{
var ret = document.pwl.pwlParameterDesignationAdd(
document.desg_parm.ModelNameExt.value,
document.desg_parm.Parameter.value);
}
else
{
var ret = document.pwl.pwlParameterDesignationRemove(
document.desg_parm.ModelNameExt.value,
document.desg_parm.Parameter.value);
}
if (!ret.Status)
{
alert(FunctionName + " failed (" + ret.ErrorCode + ")");
return ;
}
}
function WlParameterVerifyDesignation()
// Verify that a parameter has been designated.
{
var ret = document.pwl.pwlParameterDesignationVerify(
document.desg_parm.ModelNameExt.value,
document.desg_parm.Parameter.value);
if (!ret.Status)
{
alert("pwlParameterDesignationVerify failed (" + ret.ErrorCode + ")");
return ;
}
document.desg_parm.Exist.value = ret.Exists;
}
function NotApplicable(form)
// Print N\A in the feature ID field when a model is selected.
{
if (form.ParmType.options[form.ParmType.selectedIndex].value == "PWL_MODEL")
{
form.FeatureID.value = "N\\A";
}
else if (form.FeatureID.value == "N\\A")
{
form.FeatureID.value = "";
}
}
</script>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US style='tab-interval:.5in'>
<div class=Section1>
<form name="list_parm">
<h4>List Parameters<o:p></o:p></h4>
<div align=center>
<table border=0 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
0in 0in 0in 0in'>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p align=center style='text-align:center'><!-- Input arguments -->Model:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p align=center style='text-align:center'>Display:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p align=center style='text-align:center'>Feature ID:</p>
</td>
</tr>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'>
<INPUT TYPE="text" SIZE="20" NAME="ModelNameExt"><o:p></o:p></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><SELECT NAME="ParmType"
onchange="NotApplicable(document.list_parm)">
<OPTION SELECTED VALUE="PWL_MODEL">By Model
<OPTION VALUE="PWL_FEATURE">By Feature ID
</SELECT></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><INPUT TYPE="text" SIZE="20" NAME="FeatureID" VALUE="N\A"></p>
</td>
</tr>
</table>
</div>
<!-- Buttons -->
<p align=center style='text-align:center'>
<input type=button value="Get Parameters" onclick="WlParametersGet()">
<!-- Output arguments -->Parameters:<br>
<TEXTAREA COLS="50" NAME="Parameters"></TEXTAREA></p>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
</div>
</form>
<form name="set_value">
<h4>Create or Set a Parameter<o:p></o:p></h4>
<div align=center>
<table border=0 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
0in 0in 0in 0in'>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><!-- Input arguments -->Model:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><INPUT TYPE="text" SIZE="20" NAME="ModelNameExt"></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Parameter Type:<o:p></o:p></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><SELECT NAME="ParmType"
onchange="NotApplicable(document.set_value)">
<OPTION SELECTED VALUE="PWL_MODEL">By Model
<OPTION VALUE="PWL_FEATURE">By Feature ID
</SELECT></p>
</td>
</tr>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Feature ID:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><INPUT TYPE="text" SIZE="20" NAME="FeatureID" VALUE="N\A"></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Parameter:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><INPUT TYPE="text" SIZE="20" NAME="Parameter"></p>
</td>
</tr>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Value Type:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><SELECT NAME="ValueType">
<OPTION VALUE="PWL_VALUE_BOOLEAN">Boolean
<OPTION VALUE="PWL_VALUE_DOUBLE">Double
<OPTION VALUE="PWL_VALUE_INTEGER">Integer
<OPTION VALUE="PWL_VALUE_STRING">String
</SELECT></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Value:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><INPUT TYPE="text" SIZE="20" NAME="Value"></p>
</td>
</tr>
</table>
</div>
<!-- Buttons -->
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
<input type=button value=Create onclick="WlParameterSetValue('pwlParameterCreate')">
<input type=button value="Set Value" onclick="WlParameterSetValue('pwlParameterValueSet')">
</div>
</form>
<form name="misc_parm">
<h4>Misc Parameters<o:p></o:p></h4>
<div align=center>
<table border=0 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
0in 0in 0in 0in'>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p align=center style='text-align:center'><!-- Input arguments -->Model:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p align=center style='text-align:center'>Display:</p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p align=center style='text-align:center'>Feature ID:</p>
</td>
</tr>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'>
<INPUT TYPE="text" SIZE="20" NAME="ModelNameExt"><o:p></o:p></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'><SELECT NAME="ParmType"
onchange="NotApplicable(document.misc_parm)">
<OPTION SELECTED VALUE="PWL_MODEL">By Model
<OPTION VALUE="PWL_FEATURE">By Feature ID
</SELECT></p>
</td>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal align=center style='text-align:center'>
<INPUT TYPE="text" SIZE="20" NAME="FeatureID" VALUE="N\A"></p>
</td>
</tr>
</table>
</div>
<p align=center style='text-align:center'>Parameter:
<INPUT TYPE="text" SIZE="20" NAME="Parameter"><o:p></o:p></p>
<p align=center style='text-align:center'><!-- Buttons -->
<input type=button value=Delete onclick="WlParameterMisc('pwlParameterDelete')">
<input type=button value=Reset onclick="WlParameterMisc('pwlParameterReset')">
<input type=button value=Rename onclick="WlParameterRename()">
<!-- Extra input arguments and a button for rename -->New Name:
<INPUT TYPE="text" SIZE="20" NAME="NewName">
<spacer size=20>
<o:p></o:p></p>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
</div>
</form>
<form name="desg_parm">
<h4>Designate Model Parameters<o:p></o:p></h4>
<p align=center style='text-align:center'><!-- Input arguments -->Model:
<INPUT TYPE="text" SIZE="20" NAME="ModelNameExt">
<spacer size=20>
Parameter: <INPUT TYPE="text" SIZE="20" NAME="Parameter"><o:p></o:p></p>
<p align=center style='text-align:center'><!-- Buttons -->
<input type=button value="Add Designation" onclick=
"WlParameterDesignate('pwlParameterDesignationAdd')">
<input type=button value="Remove Designation" onclick=
"WlParameterDesignate('pwlParameterDesignationRemove')">
<br>
<!-- Extra output arguments and a button for verifying designations -->
<input type=button value="Verify Designation" onclick="WlParameterVerifyDesignation()">
<spacer size=20>
Exists: <INPUT TYPE="text" SIZE="20" NAME="Exist"></p>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
</div>
</form>
</div>
</body>
</html>

| |
| |
| |
| |
| |
pwlMdlDimensionsGet (
string MdlNameExt, // The full name of the model
// to which the dimensions
// belong.
integer DimType // The dimension type. Use
// parseInt with this argument.
);
Additional return fields:
integer NumDims; // The number of dimensions.
integer DimIDs[]; // The dimension identifiers.
pwlFeatureDimensionsGet (
string MdlNameExt, // The full name of the model
// to which the dimensions
// belong.
integer FeatID // The feature to which the
// dimensions belong. Use
// parseInt with this argument.
);
Additional return fields:
integer NumDims; // The number of dimensions.
integer DimIDs[]; // The dimension identifiers.
pwlDimensionInfoGetByID (
string MdlNameExt, // The full name of the
// model to which the
// dimension belongs.
integer DimensionID, // The integer identifier
// of the dimension. Use
// parseInt with this
// argument.
integer DimensionType // The dimension type
// (PWL_DIMENSION or
// PWL_REF_DIMENSION). Use
// parseInt with this
// argument.
);
pwlDimensionInfoGetByName (
string MdlNameExt, // The full name of the
// model to which the
// dimension belongs.
string DimensionName, // The name of the
// dimension.
integer DimensionType // The dimension type
// (PWL_DIMENSION or
// PWL_REF_DIMENSION). Use
// parseInt with this
// argument.
); number DimValue; // The value of the dimension
integer DimID; // The dimension identifier
string DimName; // The name of the dimension
integer DimStyle; // The dimension style
integer TolType, // The tolerance type
number TolPlus; // The tolerance amount above
// the nominal value
number TolMinus // The tolerance amount below
// the nominal value| • | PWL_LINEAR_DIM—Linear dimension |
| • | PWL_RADIAL_DIM—Radial dimension |
| • | PWL_DIAMETRICAL_DIM—Diametrical dimension |
| • | PWL_ANGULAR_DIM—Angular dimension |
| • | PWL_TOL_DEFAULT—Displays the nominal tolerance. |
| • | PWL_TOL_PLUS_MINUS—Displays the nominal tolerance with a plus/minus. |
| • | PWL_TOL_LIMITS—Displays the upper and lower tolerance limits. |
| • | PWL_TOL_PLUS_MINUS_SYM—Displays the tolerance as +/-x, +/-, where x is the plus tolerance. The value of the minus tolerance is irrelevant and unused. |
pwlDimensionValueSetByID (
string MdlNameExt, // The full name of the model
// to which the dimension
// belongs.
integer DimensionID, // The integer identifier of
// the dimension. Use parseInt
// with this argument.
number Value // The new value of the
// dimension. Use parseFloat
// with this argument.
); pwlDimensionToleranceSetByID (
string MdlNameExt, // The full name of the model
// to which the dimension
// belongs.
integer DimensionID, // The integer identifier
// of the dimension. Use
// parseInt with this argument.
number TolPlus, // The positive element of
// the tolerance. Use
// parseFloat with this
// argument.
number TolMinus // The negative element of
// the tolerance. Use
// parseFloat with this
// argument.
);<html>
<head>
<title>Web.Link Dimensions Test</title>
<script src="../jscript/pfcUtils.js">
</script>
<script src="../jscript/wl_header.js">
document.writeln ("Error loading Web.Link header!");
</script>
<script language="JavaScript">
function WlDimensionGet()
// Gets the dimensions, reference dimensions, or feature dimensions.
{
var ret;
var FunctionName;
var DimType;
if (document.list_dim.ModelNameExt.value == "")
{
return ;
}
if (document.list_dim.DimType.options[
document.list_dim.DimType.selectedIndex].value == "BY_FEATURE")
{
if (document.list_dim.FeatureID.value == "")
{
return ;
}
FeatureID = parseInt (document.list_dim.FeatureID.value);
if (isNaN (FeatureID))
{
alert ("Feature ID invalid: "+document.list_dim.FeatureID.value);
return;
}
ret = document.pwl.pwlFeatureDimensionsGet(
document.list_dim.ModelNameExt.value,
FeatureID);
FunctionName = "pwlFeatureDimensionsGet";
DimType = document.pwlc.PWL_DIMENSION_STANDARD;
}
else
{
DimType = document.pwl.eval(document.list_dim.DimType.options[
document.list_dim.DimType.selectedIndex].value);
if (isNaN (DimType) || DimType == -10001)
{
alert ("Could not recognize dim type");
}
/*
if (DimType == document.pwlc.PWL_DIMENSION_STANDARD)
{
pfcDimType = 10; // pfcITEM_DIMENSION
}
else
{
pfcDimType = 11; // pfcITEM_REF_DIMENSION
}
var s = glob.GetProSession ();
var m = s.GetModelFromFileName (document.list_dim.ModelNameExt.value);
if (m == void null)
{
alert ("Couldn't find model: "+document.list_dim.ModelNameExt.value);
return;
}
var items = m.ListItems (pfcDimType);
if (items == void null)
{
alert ("Model items were null!");
return;
}
if (items.Count == 0)
{
alert ("Empty items!");
}
else
alert ("Items :" + items.Count);
}
*/
ret = document.pwl.pwlMdlDimensionsGet(
document.list_dim.ModelNameExt.value,
DimType);
FunctionName = "pwlMdlDimensionsGet";
}
if (!ret.Status)
{
alert(FunctionName + " failed (" + ret.ErrorCode + "): " + ret.ErrorString);
return ;
}
document.list_dim.DimValues.value = "";
for (var i = 0; i < ret.NumDims; i++)
{
var info_ret = document.pwl.pwlDimensionInfoGetByID(
document.list_dim.ModelNameExt.value,
ret.DimIDs.Item(i), DimType);
if (!info_ret.Status)
{
alert("pwlDimensionInfoGetByID failed (" + info_ret.ErrorCode +
")");
return ;
}
document.list_dim.DimValues.value += info_ret.DimName + " (#" +
info_ret.DimID + "): " + info_ret.DimValue +
((info_ret.DimStyle == parseInt(document.pwlc.PWL_ANGULAR_DIM)) ?
" degrees" : "") + " (-" + info_ret.TolMinus + "/+" +
info_ret.TolPlus + ")\n";
}
}
function WlDimensionGetByName()
// Gets a dimension by name.
{
if (document.get_value_name.ModelNameExt.value == "" ||
document.get_value_name.DimName.value == "")
{
return ;
}
var DimType = document.pwl.eval(document.get_value_name.DimType.options[
document.get_value_name.DimType.selectedIndex].value);
if (isNaN (DimType) || DimType == -10001)
{
alert ("Could not recognize dim type");
}
var ret = document.pwl.pwlDimensionInfoGetByName(
document.get_value_name.ModelNameExt.value,
document.get_value_name.DimName.value,
DimType);
if (!ret.Status)
{
alert("pwlDimensionInfoGetByName failed (" + ret.ErrorCode + ")");
return ;
}
document.get_value_name.DimValue.value = ret.DimName + " (#" +
ret.DimID + "): " + ret.DimValue +
((ret.DimStyle == parseInt(document.pwlc.PWL_ANGULAR_DIM)) ?
" degrees" : "") + " (-" + ret.TolMinus + "/+" + ret.TolPlus + ")";
}
function WlDimensionSetByID()
// Sets the value of a dimension.
{
if (document.set_value_id.ModelNameExt.value == "" ||
document.set_value_id.DimID.value == "" ||
document.set_value_id.DimValue.value == "")
{
return ;
}
DimensionID = parseInt(document.set_value_id.DimID.value);
if (isNaN (DimensionID))
{
alert ("Invalid dimension id: "+document.set_value_id.DimID.value);
return;
}
DimensionValue = parseFloat(document.set_value_id.DimValue.value);
if (isNaN (DimensionValue))
{
alert ("Invalid dimension value: "+document.set_value_id.DimValue.value);
return;
}
var ret = document.pwl.pwlDimensionValueSetByID(
document.set_value_id.ModelNameExt.value,
DimensionID,
DimensionValue);
if (!ret.Status)
{
alert("pwlDimensionValueSetByID failed (" + ret.ErrorCode + ")");
return ;
}
}
function WlDimensionSetToleranceByID()
// Sets the tolerance of a dimension.
{
var ret = document.pwl.pwlDimensionToleranceSetByID(
document.set_tol.ModelNameExt.value,
parseInt(document.set_tol.DimID.value),
parseFloat(document.set_tol.TolPlus.value),
parseFloat(document.set_tol.TolMinus.value));
if (!ret.Status)
{
alert("pwlDimensionValueToleranceByID failed (" + ret.ErrorCode + ")");
return ;
}
}
function NotApplicable(form)
// Prints N\A in the feature ID field when a model is selected.
{
if (form.DimType.options[form.DimType.selectedIndex].value != "BY_FEATURE")
{
form.FeatureID.value = "N\\A";
}
else if (form.FeatureID.value == "N\\A")
{
form.FeatureID.value = "";
}
}
</script>
</head>
<body>
<form name="list_dim">
<h4>List Dimensions</h4>
<div align="center"><center><p><!-- Input arguments --> </p>
</center></div><div align="center"><center><table>
<tr>
<td><div align="center"><center><p>Model:</td>
<td align="center"><div align="center"><center><p>Display:</td>
<td align="center"><div align="center"><center><p>Feature ID:</td>
</tr>
<tr align="center">
<td><input type="text" name="ModelNameExt" size="20"></td>
<td><select name="DimType" onchange="NotApplicable(document.list_dim)" size="1">
<option value="PWL_DIMENSION_STANDARD" selected>Dimensions</option>
<option value="PWL_DIMENSION_REFERENCE">Reference Dimensions</option>
<option value="BY_FEATURE">By Feature ID</option>
</select></td>
<td><input type="text" name="FeatureID" value="N\A" size="20"></td>
</tr>
</table>
</center></div><!-- Buttons -->
<div align="center"><center><p><input type="button" value="Get Dimensions"
onclick="WlDimensionGet()"></p>
</center></div><div align="center"><center><p><!-- Output arguments --> Dimensions:<br>
<textarea name="DimValues" rows="4" cols="50"></textarea> </p>
</center></div><hr align="center">
</form>
<form name="get_value_name">
<h4>Get Dimension Value by Name</h4>
<div align="center"><center><p><!-- Input arguments --> </p>
</center></div><div align="center"><center><table>
<tr>
<td><div align="center"><center><p>Model:</td>
<td align="center"><div align="center"><center><p>Dimension Name:</td>
<td align="center"><div align="center"><center><p>Type:</td>
</tr>
<tr align="center">
<td><input type="text" name="ModelNameExt" size="20"></td>
<td><input type="text" name="DimName" size="20"></td>
<td><select name="DimType" size="1">
<option value="PWL_DIMENSION_STANDARD" selected>Dimensions</option>
<option value="PWL_DIMENSION_REFERENCE">Reference Dimensions</option>
</select></td>
</tr>
</table>
</center></div><!-- Buttons -->
<div align="center"><center><p><input type="button"
value="Get Dimension Value" onclick="WlDimensionGetByName()"></p>
</center></div><div align="center"><center><p><!-- Output arguments -->
Value: <input type="text" name="DimValue"
size="20"> </p>
</center></div><hr align="center">
</form>
<form name="set_value_id">
<h4>Set Dimension Value by ID</h4>
<div align="center"><center><p><!-- Input arguments --> </p>
</center></div><div align="center"><center><table>
<tr>
<td><div align="center"><center><p>Model:</td>
<td align="center"><div align="center"><center><p>Dimension ID:</td>
<td align="center"><div align="center"><center><p>Value:</td>
</tr>
<tr align="center">
<td><input type="text" name="ModelNameExt" size="20"></td>
<td><input type="text" name="DimID" size="20"></td>
<td><input type="text" name="DimValue" size="20"></td>
</tr>
</table>
</center></div><!-- Buttons -->
<div align="center"><center><p><input type="button"
value="Set Dimension Value" onclick="WlDimensionSetByID()"> </p>
</center></div><hr align="center">
</form>
<form name="set_tol">
<h4>Set Dimension Tolerance by ID</h4>
<div align="center"><center><p><!-- Input arguments --> </p>
</center></div><div align="center"><center><table>
<tr>
<td>Model:</td>
<td><input type="text" name="ModelNameExt" size="20"></td>
<td>Dimension ID:</td>
<td><input type="text" name="DimID" size="20"></td>
</tr>
<tr>
<td>Plus Tolerance:</td>
<td><input type="text" name="TolPlus" size="20"></td>
<td>Minus Tolerance:</td>
<td><input type="text" name="TolMinus" size="20"></td>
</tr>
</table>
</center></div><!-- Buttons -->
<div align="center"><center><p><input type="button"
value="Set Dimension Tolerance" onclick="WlDimensionSetToleranceByID()"> </p>
</center></div><hr>
</form>
</body>
</html>

| |
| |
| |
| |
pwlSimprepOpen (
string AsmNameExt, // The full name of
// the part or assembly.
string Path, // The full path to the
// model.
string RepName, // The name of
// the simplified
// representation.
boolean DisplayInWindow // If this is true,
// display the simplified
// representation in a
// window.
);
Additional return field:
integer WindowID; // The identifier of
// the window in which
// the simplified
// representation is
// displayed. pwlGraphicsSimprepOpen (
string AsmNameExt, // The full name of the
// part or assembly
string Path, // The full path to the
// model
boolean DisplayInWindow // Specifies whether to
// display the simplified
// representation in a
// window
);
Additional return field:
integer WindowID; // The identifier of the
// window in which
// the simplified
// representation is
// displayed pwlGeomSimprepOpen (
string AsmNameExt, // The full name of
// the part or assembly
string Path, // The full path to
// the model
boolean DisplayInWindow // Specifies whether to
// display the simplified
// representation in a
// window
);
Additional return field:
integer WindowID; // The identifier of the
// window in which
// the simplified
// representation is
// displayed
pwlMdlSimprepsGet (
string MdlNameExt // The full name of the model
);
Additional return fields:
integer NumSimpreps; // The number of simplified
// representations
string Simpreps[]; // The list of simplified
// representations| |
| |
| |
| |
pwlSimprepActivate (
string MdlNameExt, // The full name of the model
string SimprepName // The name of the simplified
// representation
); pwlSimprepMasterActivate (
string MdlNameExt // The full name of the model
); pwlGeomSimprepActivate (
string MdlNameExt // The full name of the model
); pwlGraphicsSimprepActivate (
string MdlNameExt // The full name of the model
); pwlSolidMassPropertiesGet (
string MdlNameExt, // The full name of
// the model.
string CoordinateSys // The coordinate
// system used to get
// the mass properties.
);
Additional return fields:
number Volume; // The volume.
number SurfaceArea; // The surface area.
number Density; // The density. The
// density value is
// 1.0, unless a
// material has been
// assigned.
number Mass; // The mass.
number CenterOfGravity[3]; // The center of
// gravity (COG).
number Inertia[9]; // The inertia matrix.
number InertiaTensor[9]; // The inertia tensor.
number CogInertiaTensor[9]; // The inertia about
// the COG.
number PrincipalMoments[3]; // The principal
// moments of inertia
// (the eigenvalues
// of the COG inertia).
number PrincipalAxes[9]; // The principal
// axes (the
// eigenvectors of
// the COG inertia). pwlSolidXSectionDisplay (
string MdlNameExt, // The full name of
// the model
string CrossSectionName // The name of the
// cross section to
// display
); pwlSolidXSectionsGet (
string MdlNameExt // The full name of the
// model (part or
// assembly)
);
Additional return fields:
integer NumCrossSections; // The number of cross
// sections
string CrossSectionNames[]; // The names of the
// cross sections| • | pwlFamtabItem—Functions that modify table-driven items |
| • | pwlFamtabInstance—Functions that modify an instance in the family table |
| • | pwlInstance—Functions that perform file-management operations for family table instances |
|
Constant
|
Description
|
|---|---|
|
PWL_FAM_USER_PARAM
|
A user-defined parameter
|
|
PWL_FAM_DIMENSION
|
A dimension
|
|
PWL_FAM_IPAR_NOTE
|
A parameter in a pattern
|
|
PWL_FAM_FEATURE
|
A feature
|
|
PWL_FAM_ASMCOMP
|
A single instance of a component in an assembly
|
|
PWL_FAM_UDF
|
A user-defined feature
|
|
PWL_FAM_ASMCOMP_MODEL
|
All instances of a component in an assembly
|
|
PWL_FAM_GTOL
|
A geometric tolerance
|
|
PWL_FAM_TOL_PLUS
|
The plus value of a tolerance
|
|
PWL_FAM_TOL_MINUS
|
The minus value of a tolerance
|
|
PWL_FAM_TOL_PLUSMINUS
|
A tolerance
|
|
PWL_FAM_SYSTEM_PARAM
|
A system parameter
|
|
PWL_FAM_EXTERNAL_REFERENCE
|
An external reference
|
pwlFamtabItemsGet (
string MdlNameExt // The full name of the
// model
);
Additional return fields:
integer NumItems; // The number of items
integer FamItemTypes[]; // The types of items
string Items[]; // The list of table-driven
// elements pwlFamtabItemAdd (
string MdlNameExt, // The full name of the model.
integer FamItemType, // The type of family item.
// Use parseInt with this
// argument.
string Name // The name of the item to add.
);
pwlFamtabItemRemove (
string MdlNameExt, // The full name of the
// model.
integer FamItemType, // The type of family item.
// Use parseInt with this
// argument.
string Name // The name of the item to
// remove.
);| |
| |
| |
pwlFamtabInstancesGet (
string MdlNameExt // The full name of the
model
);
Additional return fields:
integer NumInstances; // The number of instances
string InstanceNames[]; // The names of the
// instances
pwlFamtabInstanceAdd (
string MdlNameExt, // The full name of the model
string Name // The name of the instance
// to add
); pwlFamtabInstanceRemove (
string MdlNameExt, // The full name of the model
string Name // The name of the instance to
// remove
); pwlFamtabInstanceValueGet (
string MdlNameExt, // The full name of the
// model.
string Name, // The name of the instance.
integer FamItemType, // The type of family item.
// Use parseInt with this
// argument.
string ItemName // The name of the item.
);
Additional return fields:
integer ValueType; // Specifies which value
// argument to use.
integer IntVal; // The integer value.
number DoubleVal; // The number value.
string StringVal; // The string value.
boolean BooleanVal; // The Boolean value.
|
Value of the ValueType
|
Additional Field Used
|
|---|---|
|
PWL_VALUE_INTEGER
|
IntVal
|
|
PWL_VALUE_DOUBLE
|
DoubleVal
|
|
PWL_VALUE_STRING
|
StringVal
|
|
PWL_VALUE_BOOLEAN
|
BooleanVal
|
pwlFamtabInstanceValueSet (
string MdlNameExt, // The full name of the
// model.
string Name, // The name of the instance.
integer FamItemType, // The type of the family
// table item. Use parseInt
// with this argument.
string ItemName, // The name of the item.
integer ValueType, // Specifies which value
// argument to use. Use
// parseInt with this
// argument.
integer IntVal, // The integer value. Use
// parseInt with this
// argument.
number DoubleVal, // The number value. Use
// parseFloat with this
// argument.
string StringVal, // The string value.
boolean BooleanVal // The Boolean value.
);| |
| |
| |
pwlFamtabInstanceLockGet (
string MdlNameExt, // The full name of the model.
string Name // The name of the instance.
);
Additional return fields:
boolean Locked; // If this is true, the model
// is locked for modification. pwlFamtabInstanceLockAdd (
string MdlNameExt, // The full name of the model
string Name // The name of the instance
// to which to add the lock
); pwlFamtabInstanceLockRemove (
string MdlNameExt, // The full name of the model
string Name // The name of the instance
// from which to remove the
// lock
); pwlInstanceOpen (
string MdlNameExt, // The full name of the
// model.
string InstanceName, // The name of the instance
// to open.
boolean DisplayInWindow // If this is true, display
// the instance in a window.
);
Additional return fields:
integer WindowID; // The identifier of the
// window in which the
// instance is displayed. pwlInstanceErase (
string MdlNameExt, // The full name of the model
string Name // The name of the instance to
// erase from memory
);| |
| |
| |
| |
| |
| |
| |
| |
pwlMdlLayersGet (
string MdlNameExt // The full name of the model
);
Additional return fields:
integer NumLayers; // The number of layers in
// the returned array
string LayerNames[]; // The array of layer names
pwlLayerCreate (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer to
// create
); pwlLayerDelete (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer to
// delete
); pwlLayerDisplayGet (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer
);
Additional return field:
integer DisplayType; // The display type
| • | PWL_DISPLAY_TYPE_NORMAL—A normal layer. |
| • | PWL_DISPLAY_TYPE_DISPLAY—A layer selected for display. |
| • | PWL_DISPLAY_TYPE_BLANK—A blanked layer. |
| • | PWL_DISPLAY_TYPE_HIDDEN—A hidden layer. This applies to Assembly mode only. |
pwlLayerDisplaySet (
string MdlNameExt, // The full name of the model.
string LayerName, // The name of the layer.
integer DisplayType // The new display type. Use
// parseInt with this argument.
); pwlLayerItemsGet (
string MdlNameExt, // The full name of the model
string LayerName // The name of the layer
);
Additional return fields:
integer NumItems; // The number of items in
// ItemIDs
ItemType ItemTypes[]; // The array of item types
integer ItemIDs[]; // The array of item
// identifiers
string ItemOwners[]; // The array of item owners| • | 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 |
pwlLayerItemAdd (
string MdlNameExt, // The full name of the model.
string LayerName, // The name of the layer.
integer ItemType, // The type of layer item. Use
// parseInt with this
// argument.
integer ItemID, // The identifier of the item
// to add. Use parseInt with
// this argument.
string ItemOwner // The owner of the item.
); pwlLayerItemRemove (
string MdlNameExt, // The full name of the model.
string LayerName, // The name of the layer.
integer ItemType, // The type of layer item. Use
// parseInt with this
// argument.
integer ItemID, // The identifier of the item
// to remove. Use parseInt
// with this argument.
string ItemOwner // The item owner. If this is
// null or an empty string,
// the item owner is the same
// as the layer. Otherwise,
// it is a selection string
// to the component that
// owns the item.
); pwlMdlNotesGet (
string MdlNameExt // The full name of the model
);
Additional return fields:
integer NumNotes; // The number of notes in
// the array NoteIDs
integer NoteIDs[]; // The array of note
// identifiers pwlFeatureNotesGet (
string MdlNameExt, // The full name of the model.
integer FeatureID // The feature whose notes
// should be found. Use
// parseInt with this
// argument.
);
Additional return fields:
integer NumNotes; // The number of notes in
// the array NoteIDs.
integer NoteIDs[]; // The array of note
// identifiers.
pwlNoteOwnerGet ( string MdlNameExt, // The full name of the // model. integer NoteID // The identifier of the // note whose owner you want. // Use parseInt with this // argument. ); Additional return fields: integer ItemType; // The item type. integer NoteOwnerID; // The identifier of the // note’s owner. This // field is not applicable // if ItemType is PWL_MODEL.
| • | You cannot modify the owner of the note. |
| • | The function pfcScript.pwlNoteOwnerGet() does not apply to drawings. |
pwlNoteNameGet (
string MdlNameExt, // The full name of the model.
integer NoteID // The note identifier. Use
// parseInt with this
// argument.
);
Additional return field:
string NoteName; // The name of the note. pwlNoteNameSet (
string MdlNameExt, // The full name of the model.
integer NoteID, // The note identifier. Use
// parseInt with this
// argument.
string NewName // The new name of the note.
);
pwlNoteTextGet (
string MdlNameExt, // The full name of the model.
integer NoteID // The note identifier. Use
// parseInt with this
// argument.
);
Additional return fields:
integer NumTextLines; // The number of lines of
// text in the note.
string NoteText[]; // The text of the note.
pwlNoteTextSet (
string MdlNameExt, // The full name of the
// model.
integer NoteID, // The note identifier. Use
// parseInt with this
// argument.
integer NumTextLines, // The number of lines of
// text in the note. Use
// parseInt with this
// argument.
string NewNoteText[] // The text of the new note.
);
pwlNoteURLGet (
string MdlNameExt, // The full name of the model.
integer NoteID // The note identifier. Use
// parseInt with this argument.
);
Additional return field:
string NoteURL; // The URL of the note.
pwlNoteURLSet (
string MdlNameExt, // The full name of the model.
integer NoteID, // The note identifier. Use
// parseInt with this argument.
string NoteURL // The URL of the note.
); pwlEnvVariableGet (
string VarName // The name of the environment
// variable whose value you want
);
Additional return field:
string Value; // The value
<SCRIPT language = "JavaScript">
.
function EnvVar()
{
ret = document.pwl.pwlEnvVariableGet ("NPX_PLUGIN_PATH");
if (ret.Status)
{
document.ui.RETVAL.value = "Success: Value is " + ret.Value;
}
else
{
document.ui.RETVAL.value = stat.ErrorCode+": " + ret.ErrorString;
}
}
</script>| |
| |
| |
pwlDirectoryCurrentGet();
Additional return field:
string DirectoryPath; // The path to the
// current directory pwlDirectoryCurrentSet (
string DirectoryPath // The directory to make
// current
); pwlDirectoryFilesGet (
string DirectoryPath, // The directory whose
// files and subdirectories
// you want to find. If this
// is null, the function
// lists the files in the
// current Creo Parametric
// directory.
string Filter // The filter string for the
// file extensions,
// separated by commas. For
// example. "*.prt," "*.txt".
// If this is null, the
// function lists all the
// files and directories.
);
Additional return fields:
integer NumFiles; // The number of files in
// FileNames.
string FileNames[]; // The list of file names.
integer NumSubdirs; // The number of
// subdirectories.
string SubdirNames; // The list of subdirectory
// names.| |
| |
| |
| |
boolean pwluBooleanArrayAlloc (
integer ArraySize // The size of the Boolean
// array to allocate. Use
// parseInt with this argument.
);
number[] pwluDoubleArrayAlloc (
integer ArraySize // The size of the number array
// to allocate. Use parseInt
// with this argument.
);
integer[] pwluIntArrayAlloc (
integer ArraySize // The size of the integer array
// to allocate. Use parseInt
// with this argument.
);
string[] pwluStringArrayAlloc (
integer ArraySize // The size of the string array
// to allocate. Use parseInt with
// this argument.
);
| • | pwlProEngineerStartAndConnect |
| • | pwlProEngineerConnect |
| • | pwlProEngineerDisconnectAndStop |
| • | pwlAccessRequest Note
These functions are provided in the embedded browser Web.Link in order to avoid scripting errors. They are not useful in developing any applications and can be removed.
|
|
Constant
|
Description
|
|---|---|
|
PWL_LINEAR_DIM
|
Linear dimension
|
|
PWL_RADIAL_DIM
|
Radial dimension
|
|
PWL_DIAMETRICAL_DIM
|
Diametrical dimension
|
|
PWL_ANGULAR_DIM
|
Angular dimension
|
|
PWL_UNKNOWN_STYLE_DIM
|
Unknown dimension
|
|
Constant
|
Description
|
|---|---|
|
PWL_DIMENSION_STANDARD
|
Standard dimension
|
|
PWL_DIMENSION_REFERENCE
|
Reference dimension
|
|
Constant
|
Description
|
|---|---|
|
PWL_FAM_TYPE_UNUSED
|
Unused
|
|
PWL_FAM_USER_PARAM
|
User parameter
|
|
PWL_FAM_DIMENSION
|
Dimension
|
|
PWL_FAM_IPAR_NOTE
|
IPAR note
|
|
PWL_FAM_FEATURE
|
Feature
|
|
PWL_FAM_ASMCOMP
|
Assembly component
|
|
PWL_FAM_UDF
|
User-defined feature
|
|
PWL_FAM_ASMCOMP_MODEL
|
Assembly component model
|
|
PWL_FAM_GTOL
|
Geometric tolerance
|
|
PWL_FAM_TOL_PLUS
|
Displays the nominal tolerance with a plus
|
|
PWL_FAM_TOL_MINUS
|
Displays the nominal tolerance with a minus
|
|
PWL_FAM_TOL_PLUSMINUS
|
Displays the nominal tolerance with a plus/minus
|
|
PWL_FAM_SYSTEM_PARAM
|
System parameter
|
|
PWL_FAM_EXTERNAL_REFERENCE
|
External reference
|
|
Constant
|
Description
|
|---|---|
|
PWL_GRP_PATTERN_INVALID
|
Invalid group pattern.
|
|
PWL_GRP_PATTERN_NONE
|
The feature is not in a group pattern.
|
|
PWL_GRP_PATTERN_LEADER
|
The feature is the leader of the group pattern.
|
|
PWL_GRP_PATTERN_MEMBER
|
The feature is a member of the group pattern.
|
|
Constant
|
Description
|
|---|---|
|
PWL_GROUP_INVALID
|
Invalid group.
|
|
PWL_GROUP_NONE
|
The feature is not in a group pattern.
|
|
PWL_GROUP_MEMBER
|
The feature is in a group that is a group pattern member.
|
|
Constant
|
Description
|
|---|---|
|
PWL_PATTERN_INVALID
|
Invalid pattern.
|
|
PWL_PATTERN_NONE
|
The feature is not in a pattern.
|
|
PWL_PATTERN_LEADER
|
The feature is the leader of a pattern.
|
|
PWL_PATTERN_MEMBER
|
The feature is a member of the pattern.
|
|
Constant
|
Feature Type
|
|---|---|
|
PWL_FEAT_FIRST_FEAT
|
First feature
|
|
PWL_FEAT_HOLE
|
Hole
|
|
PWL_FEAT_SHAFT
|
Shaft
|
|
PWL_FEAT_ROUND
|
Round
|
|
PWL_FEAT_CHAMFER
|
Chamfer
|
|
PWL_FEAT_SLOT
|
Slot
|
|
PWL_FEAT_CUT
|
Cut
|
|
PWL_FEAT_PROTRUSION
|
Protrusion
|
|
PWL_FEAT_NECK
|
Neck
|
|
PWL_FEAT_FLANGE
|
Flange
|
|
PWL_FEAT_RIB
|
Rib
|
|
PWL_FEAT_EAR
|
Ear
|
|
PWL_FEAT_DOME
|
Dome
|
|
PWL_FEAT_DATUM
|
Datum
|
|
PWL_FEAT_LOC_PUSH
|
Local push
|
|
PWL_FEAT_FEAT_UDF
|
User-defined feature (UDF)
|
|
PWL_FEAT_DATUM_AXIS
|
Datum axis
|
|
PWL_FEAT_DRAFT
|
Draft
|
|
PWL_FEAT_SHELL
|
Shell
|
|
PWL_FEAT_DOME2
|
Second dome
|
|
PWL_FEAT_CORN_CHAMF
|
Corner chamfer
|
|
PWL_FEAT_DATUM_POINT
|
Datum point
|
|
PWL_FEAT_IMPORT
|
Import
|
|
PWL_FEAT_COSMETIC
|
Cosmetic
|
|
PWL_FEAT_ETCH
|
Etch
|
|
PWL_FEAT_MERGE
|
Merge
|
|
PWL_FEAT_MOLD
|
Mold
|
|
PWL_FEAT_SAW
|
Saw
|
|
PWL_FEAT_TURN
|
Turn
|
|
PWL_FEAT_MILL
|
Mill
|
|
PWL_FEAT_DRILL
|
Drill
|
|
PWL_FEAT_OFFSET
|
Offset
|
|
PWL_FEAT_DATUM_SURF
|
Datum surface
|
|
PWL_FEAT_REPLACE_SURF
|
Replacement surface
|
|
PWL_FEAT_GROOVE
|
Groove
|
|
PWL_FEAT_PIPE
|
Pipe
|
|
PWL_FEAT_DATUM_QUILT
|
Datum quilt
|
|
PWL_FEAT_ASSEM_CUT
|
Assembly cut
|
|
PWL_FEAT_UDF_THREAD
|
Thread
|
|
PWL_FEAT_CURVE
|
Curve
|
|
PWL_FEAT_SRF_MDL
|
Surface model
|
|
PWL_FEAT_WALL
|
Wall
|
|
PWL_FEAT_BEND
|
Bend
|
|
PWL_FEAT_UNBEND
|
Unbend
|
|
PWL_FEAT_CUT_SMT
|
Sheetmetal cut
|
|
PWL_FEAT_FORM
|
Form
|
|
PWL_FEAT_THICKEN
|
Thicken
|
|
PWL_FEAT_BEND_BACK
|
Bend back
|
|
PWL_FEAT_UDF_NOTCH
|
UDF notch
|
|
PWL_FEAT_UDF_PUNCH
|
UDF punch
|
|
PWL_FEAT_INT_UDF
|
For internal use
|
|
PWL_FEAT_SPLIT_SURF
|
Split surface
|
|
PWL_FEAT_GRAPH
|
Graph
|
|
PWL_FEAT_SMT_MFG_PUNCH
|
Sheetmetal manufacturing punch
|
|
PWL_FEAT_SMT_MFG_CUT
|
Sheetmetal manufacturing cut
|
|
PWL_FEAT_FLATTEN
|
Flatten
|
|
PWL_FEAT_SET
|
Set
|
|
PWL_FEAT_VDA
|
VDA
|
|
PWL_FEAT_SMT_MFG_FORM
|
Sheetmetal manufacturing for milling
|
|
PWL_FEAT_SMT_PUNCH_PNT
|
Sheetmetal punch point
|
|
PWL_FEAT_LIP
|
Lip
|
|
PWL_FEAT_MANUAL
|
Manual
|
|
PWL_FEAT_MFG_GATHER
|
Manufacturing gather
|
|
PWL_FEAT_MFG_TRIM
|
Manufacturing trim
|
|
PWL_FEAT_MFG_USEVOL
|
Manufacturing use volume
|
|
PWL_FEAT_LOCATION
|
Location
|
|
PWL_FEAT_CABLE_SEGM
|
Cable segment
|
|
PWL_FEAT_CABLE
|
Cable
|
|
PWL_FEAT_CSYS
|
Coordinate system
|
|
PWL_FEAT_CHANNEL
|
Channel
|
|
PWL_FEAT_WIRE_EDM
|
Wire EDM
|
|
PWL_FEAT_AREA_NIBBLE
|
Area nibble
|
|
PWL_FEAT_PATCH
|
Patch
|
|
PWL_FEAT_PLY
|
Ply
|
|
PWL_FEAT_CORE
|
Core
|
|
PWL_FEAT_EXTRACT
|
Extract
|
|
PWL_FEAT_MFG_REFINE
|
Manufacturing refine
|
|
PWL_FEAT_SILH_TRIM
|
Silhouette trim
|
|
PWL_FEAT_SPLIT
|
Split
|
|
PWL_FEAT_EXTEND
|
Extend
|
|
PWL_FEAT_SOLIDIFY
|
Solidify
|
|
PWL_FEAT_INTERSECT
|
Intersect
|
|
PWL_FEAT_ATTACH
|
Attach
|
|
PWL_FEAT_XSEC
|
Cross section
|
|
PWL_FEAT_UDF_ZONE
|
UDF zone
|
|
PWL_FEAT_UDF_CLAMP
|
UDF clamp
|
|
PWL_FEAT_DRL_GRP
|
Drill group
|
|
PWL_FEAT_ISEGM
|
Ideal segment
|
|
PWL_FEAT_CABLE_COSM
|
Cable cosmetic
|
|
PWL_FEAT_SPOOL
|
Spool
|
|
PWL_FEAT_COMPONENT
|
Component
|
|
PWL_FEAT_MFG_MERGE
|
Manufacturing merge
|
|
PWL_FEAT_FIXSETUP
|
Fixture setup
|
|
PWL_FEAT_SETUP
|
Setup
|
|
PWL_FEAT_FLAT_PAT
|
Flat pattern
|
|
PWL_FEAT_CONT_MAP
|
Contour map
|
|
PWL_FEAT_EXP_RATIO
|
Exponential ratio
|
|
PWL_FEAT_RIP
|
Rip
|
|
PWL_FEAT_OPERATION
|
Operation
|
|
PWL_FEAT_WORKCELL
|
Workcell
|
|
PWL_FEAT_CUT_MOTION
|
Cut motion
|
|
PWL_FEAT_BLD_PATH
|
Build path
|
|
PWL_FEAT_DRV_TOOL_SKETCH
|
Driven tool sketch
|
|
PWL_FEAT_DRV_TOOL_EDGE
|
Driven tool edge
|
|
PWL_FEAT_DRV_TOOL_CURVE
|
Driven tool curve
|
|
PWL_FEAT_DRV_TOOL_SURF
|
Driven tool surface
|
|
PWL_FEAT_MAT_REMOVAL
|
Material removal
|
|
PWL_FEAT_TORUS
|
Torus
|
|
PWL_FEAT_PIPE_SET_START
|
Piping set start point
|
|
PWL_FEAT_PIPE_PNT_PNT
|
Piping point
|
|
PWL_FEAT_PIPE_EXT
|
Pipe extension
|
|
PWL_FEAT_PIPE_TRIM
|
Pipe trim
|
|
PWL_FEAT_PIPE_FOLL
|
Follow (pipe routing)
|
|
PWL_FEAT_PIPE_JOIN
|
Pipe join
|
|
PWL_FEAT_AUXILIARY
|
Auxiliary
|
|
PWL_FEAT_PIPE_LINE
|
Pipe line
|
|
PWL_FEAT_LINE_STOCK
|
Line stock
|
|
PWL_FEAT_SLD_PIPE
|
Solid pipe
|
|
PWL_FEAT_BULK_OBJECT
|
Bulk object
|
|
PWL_FEAT_SHRINKAGE
|
Shrinkage
|
|
PWL_FEAT_PIPE_JOINT
|
Pipe joint
|
|
PWL_FEAT_PIPE_BRANCH
|
Pipe branch
|
|
PWL_FEAT_DRV_TOOL_TWO_CNTR
|
Driven tool (two centers)
|
|
PWL_FEAT_SUBHARNESS
|
Subharness
|
|
PWL_FEAT_SMT_OPTIMIZE
|
Sheetmetal optimize
|
|
PWL_FEAT_DECLARE
|
Declare
|
|
PWL_FEAT_SMT_POPULATE
|
Sheetmetal populate
|
|
PWL_FEAT_OPER_COMP
|
Operation component
|
|
PWL_FEAT_MEASURE
|
Measure
|
|
PWL_FEAT_DRAFT_LINE
|
Draft line
|
|
PWL_FEAT_REMOVE_SURFS
|
Remove surfaces
|
|
PWL_FEAT_RIBBON_CABLE
|
Ribbon cable
|
|
PWL_FEAT_ATTACH_VOLUME
|
Attach volume
|
|
PWL_FEAT_BLD_OPERATION
|
Build operation
|
|
PWL_FEAT_UDF_WRK_REG
|
UDF working region
|
|
PWL_FEAT_SPINAL_BEND
|
Spinal bend
|
|
PWL_FEAT_TWIST
|
Twist
|
|
PWL_FEAT_FREE_FORM
|
Free-form
|
|
PWL_FEAT_ZONE
|
Zone
|
|
PWL_FEAT_WELDING_ROD
|
Welding rod
|
|
PWL_FEAT_WELD_FILLET
|
Welding fillet
|
|
PWL_FEAT_WELD_GROOVE
|
Welding groove
|
|
PWL_FEAT_WELD_PLUG_SLOT
|
Welding plug slot
|
|
PWL_FEAT_WELD_SPOT
|
Welding spot
|
|
PWL_FEAT_SMT_SHEAR
|
Sheetmetal shear
|
|
PWL_FEAT_PATH_SEGM
|
Path segment
|
|
PWL_FEAT_RIBBON_SEGM
|
Ribbon segment
|
|
PWL_FEAT_RIBBON_PATH
|
Ribbon path
|
|
PWL_FEAT_RIBBON_EXTEND
|
Ribbon extend
|
|
PWL_FEAT_ASMCUT_COPY
|
Assembly cut copy
|
|
PWL_FEAT_DEFORM_AREA
|
Deform area
|
|
PWL_FEAT_RIBBON_SOLID
|
Ribbon solid
|
|
PWL_FEAT_FLAT_RIBBON_SEGM
|
Flat ribbon segment
|
|
PWL_FEAT_POSITION_FOLD
|
Position fold
|
|
PWL_FEAT_SPRING_BACK
|
Spring back
|
|
PWL_FEAT_BEAM_SECTION
|
Beam section
|
|
PWL_FEAT_SHRINK_DIM
|
Shrink dimension
|
|
PWL_FEAT_THREAD
|
Thread
|
|
PWL_FEAT_SMT_CONVERSION
|
Sheetmetal conversion
|
|
PWL_FEAT_CMM_MEASSTEP
|
CMM measured step
|
|
PWL_FEAT_CMM_CONSTR
|
CMM construct
|
|
PWL_FEAT_CMM_VERIFY
|
CMM verify
|
|
PWL_FEAT_CAV_SCAN_SET
|
CAV scan set
|
|
PWL_FEAT_CAV_FIT
|
CAV fit
|
|
PWL_FEAT_CAV_DEVIATION
|
CAV deviation
|
|
PWL_FEAT_SMT_ZONE
|
Sheetmetal zone
|
|
PWL_FEAT_SMT_CLAMP
|
Sheetmetal clamp
|
|
PWL_FEAT_PROCESS_STEP
|
Process step
|
|
PWL_FEAT_EDGE_BEND
|
Edge bend
|
|
PWL_FEAT_DRV_TOOL_PROF
|
Drive tool profile
|
|
PWL_FEAT_EXPLODE_LINE
|
Explode line
|
|
PWL_FEAT_GEOM_COPY
|
Geometric copy
|
|
PWL_FEAT_ANALYSIS
|
Analysis
|
|
PWL_FEAT_WATER_LINE
|
Water line
|
|
PWL_FEAT_UDF_RMDT
|
Rapid mold design tool
|
|
PWL_FEAT_USER_FEAT
|
User feature
|
|
Constant
|
Description
|
|---|---|
|
PWL_DISPLAY_TYPE_NONE
|
No layer
|
|
PWL_DISPLAY_TYPE_NORMAL
|
A normal layer
|
|
PWL_DISPLAY_TYPE_DISPLAY
|
A layer selected for display
|
|
PWL_DISPLAY_TYPE_BLANK
|
A blanked layer
|
|
PWL_DISPLAY_TYPE_HIDDEN
|
A hidden layer
|
|
Constant
|
Description
|
|---|---|
|
PWL_MODEL
|
Model (for parameter functions)
|
|
PWL_TYPE_UNUSED
|
Unused
|
|
PWL_ASSEMBLY
|
Assembly
|
|
PWL_PART
|
Part
|
|
PWL_FEATURE
|
Feature
|
|
PWL_DRAWING
|
Drawing
|
|
PWL_SURFACE
|
Surface
|
|
PWL_EDGE
|
Edge
|
|
PWL_3DSECTION
|
Three-dimensional section
|
|
PWL_DIMENSION
|
Dimension
|
|
PWL_2DSECTION
|
Two-dimensional section
|
|
PWL_LAYOUT
|
Notebook
|
|
PWL_AXIS
|
Axis
|
|
PWL_CSYS
|
Coordinate system
|
|
PWL_REF_DIMENSION
|
Reference dimension
|
|
PWL_GTOL
|
Geometric tolerance
|
|
PWL_DWGFORM
|
Drawing form
|
|
PWL_SUB_ASSEMBLY
|
Subassembly
|
|
PWL_MFG
|
Manufacturing object
|
|
PWL_QUILT
|
Quilt
|
|
PWL_CURVE
|
Curve
|
|
PWL_POINT
|
Point
|
|
PWL_NOTE
|
Note
|
|
PWL_IPAR_NOTE
|
IPAR note
|
|
PWL_EDGE_START
|
Start of the edge
|
|
PWL_EDGE_END
|
End of the edge
|
|
PWL_CRV_START
|
Start of the curve
|
|
PWL_CRV_END
|
End of the curve
|
|
PWL_SYMBOL_INSTANCE
|
Symbol instance
|
|
PWL_DRAFT_ENTITY
|
Draft entity
|
|
PWL_DRAFT_GROUP
|
Draft group
|
|
PWL_DRAW_TABLE
|
Drawing table
|
|
PWL_VIEW
|
View
|
|
PWL_REPORT
|
Report
|
|
PWL_MARKUP
|
Markup
|
|
PWL_LAYER
|
Layer
|
|
PWL_DIAGRAM
|
Diagram
|
|
PWL_SKETCH_ENTITY
|
Sketched entity
|
|
PWL_DATUM_PLANE
|
Datum plane
|
|
PWL_COMP_CRV
|
Composite curve
|
|
PWL_BND_TABLE
|
Bend table
|
|
PWL_PARAMETER
|
Parameter
|
|
PWL_DIAGRAM_OBJECT
|
Diagram object
|
|
PWL_DIAGRAM_WIRE
|
Diagram wire
|
|
PWL_SIMP_REP
|
Simplified representation
|
|
PWL_WELD_PARAMS
|
Weld parameters
|
|
PWL_EXTOBJ
|
External object
|
|
PWL_EXPLD_STATE
|
Explode state
|
|
PWL_RELSET
|
Set of relations
|
|
PWL_CONTOUR
|
Contour
|
|
PWL_GROUP
|
Group
|
|
PWL_UDF
|
User-defined feature
|
|
PWL_FAMILY_TABLE
|
Family table
|
|
PWL_PATREL_FIRST_DIR
|
Pattern direction 1
|
|
PWL_PATREL_SECOND_DIR
|
Pattern direction 2
|
|
Constant
|
Description
|
|---|---|
|
PWL_USER_PARAM
|
User parameter
|
|
PWL_DIM_PARAM
|
Dimension parameter
|
|
PWL_PATTERN_PARAM
|
Pattern parameter
|
|
PWL_DIMTOL_PARAM
|
Dimension tolerance parameter
|
|
PWL_REFDIM_PARAM
|
Reference dimension parameter
|
|
PWL_ALL_PARAMS
|
All parameters
|
|
PWL_GTOL_PARAM
|
Geometric tolerance parameter
|
|
PWL_SURFFIN_PARAM
|
Surface finish parameter
|
|
Constant
|
Description
|
|---|---|
|
PWL_VALUE_DOUBLE
|
Double value
|
|
PWL_VALUE_STRING
|
String value
|
|
PWL_VALUE_INTEGER
|
Integer value
|
|
PWL_VALUE_BOOLEAN
|
Boolean value
|
|
PWL_VALUE_NOTEID
|
Note identifier
|
|
Constant
|
Description
|
|---|---|
|
PWL_PARAMVALUE_DOUBLE
|
Double value
|
|
PWL_PARAMVALUE_STRING
|
String value
|
|
PWL_PARAMVALUE_INTEGER
|
Integer value
|
|
PWL_PARAMVALUE_BOOLEAN
|
Boolean value
|
|
PWL_PARAMVALUE_NOTEID
|
Note identifier
|
|
Constant
|
Description
|
|---|---|
|
PWL_TOL_DEFAULT
|
Displays the nominal tolerance.
|
|
PWL_TOL_PLUS_MINUS
|
Displays the nominal tolerance with a plus/minus.
|
|
PWL_TOL_LIMITS
|
Displays the upper and lower tolerance limits.
|
|
PWL_TOL_PLUS_MINUS_SYM
|
Displays the tolerance as +/-x, where x is the plus tolerance. The value of the minus tolerance is irrelevant and unused.
|