Sample Applications
This section lists the sample applications provided with Web.Link.
Sample Applications
The Web.Link sample applications are available at: <creo_weblink_loadpoint>/weblinkexamples
pfcUtils
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcUtils.js
The sample application pfcUtils.js provides the PFC related utilities to enable interaction between PFC objects and the web browser.
pfcComponentFeatExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcComponentFeatExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcComponentFeatExamples.html
The sample application pfcComponentFeatExamples contains a single static utility method that searches through the assembly for all components that are instances of the model "bolt". It then replaces all such occurrences with a different instance of bolt.
pfcDimensionExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcDimensionExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcDimensionExamples.html
The sample application pfcDimensionExamples contains a utility function that sets angular tolerances to a specified range.
pfcParameterExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcParameterExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcParameterExamples.html
The sample application pfcParameterExamples contains a single static utility method that creates or updates model parameters based on the name-value pairs in the URL page.
pfcDisplayExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcDisplayExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcDisplayExamples.html
The sample application pfcDisplayExamples demonstrates the use of mouse-tracking methods to draw graphics on the screen.
pfcDrawingExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcDrawingExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcDrawingExamples.html
The sample application pfcDrawingExamples contains utilities that enable you to create, manipulate, and work with drawings in Creo Parametric.
pfcFamilyMemberExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcFamilyMemberExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcFamilyMemberExamples.html
The sample application pfcFamilyMemberExamples contains a utility method that adds all the dimensions to a family table.
pfcImportFeatureExample
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcImportFeatureExample.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcImportFeatureExample.html
The sample application pfcImportFeatureExample contains a utility method that returns a feature object when provided with a solid coordinate system name and an import feature's file name.
pfcInterferenceExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcInterferenceExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcInterferenceExamples.html
The sample application pfcInterferenceExamples finds the interference in an assembly, highlights the interfering surfaces, and calculates the interference volume.
pfcProEArgumentsExample
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcProEArgumentsExample.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcProEArgumentsExample.html
The sample application pfcProEArgumentsExample describes the use of the GetProEArguments method to access the Creo Parametric command line arguments.
pfcSelectionExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcSelectionExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcSelectionExamples.html
The sample application pfcSelectionExamples contains a utility to invoke an interactive selection.
pfcSolidMassPropExample
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcSolidMassPropExample.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcSolidMassPropExample.html
The sample application pfcSolidMassPropExample contains a utility to retrieve a MassProperty object from the provided solid model.
pfcUDFCreateExamples
Location
<creo_weblink_loadpoint>/weblinkexamples/jscript/pfcUDFCreateExamples.js
<creo_weblink_loadpoint>/weblinkexamples/html/pfcUDFCreateExamples.html
The sample application pfcUDFCreateExamples contains a utility that places copies of a node UDF at a particular coordinate system location in a part.