|
-
From the Start>Knowledgeware menu, access the
Business Process Knowledge Template workbench.
-
Create the Volume technological type. To do
so, click the Create Technological Type icon ()
to create a type. The Create technological type dialog box is displayed.
-
Enter the name of the type: Volume and click
OK to validate.
-
Add an attribute to the technological type.
|
|
- From the Quality scrolling list, select
Output.
|
-
From the Type scrolling list, select Volume.
Click OK to validate.
|
-
Click the Volume type and click the Sequence
Combination Behavior icon ().
Double-click SequentialCombination in the Behaviors View and double-click
Volume in the Behaviors tab.
-
Double-click the SequentialCombination node. The
Sequential Combination editor is displayed. In the Name field,
enter Computing_a_volume, and click OK to validate.
-
Click the Computing_a_volume node and click the Bind
Object behavior icon ().
-
Double-click the BindOjbect node in the Behaviors tab.
The Bind Object editor is displayed.
-
In the Relative Name field, enter PartBody to
specify that you want to compute the volume of the PartBody and click
OK to validate.
-
Click the Computing_a_volume behavior and click the
Knowledge Language behavior icon ()
to create the script that will compute the PartBody volume.
-
Double-click the KWALanguage behavior in the Behaviors
tab. The KWA Language editor is displayed.
-
Click Edit. The script editor opens.
-
Enter the following script and click OK to
validate:
let Element(Solid)
set Element=Volume\Computing_a_volume\BindObject\Link
Volume\ComputedVolume = smartVolume(Element) |
-
Save your file in the <CATGraphicPath >
directory.
-
Click the Generate Applicative Workbench icon
()
to generate a user workbench. The Applicative Workbench Generation dialog
box is displayed.
-
Click Manage categories. The Deployed
Workbenches and User Categories Management window is displayed.
-
Enter the name of the new category (MyCategory in this
example) and click Create category. Click OK when
done.
-
From the current user category scrolling list, select
MyCategory.
-
In the Workbench name field, enter the name of
the workbench (MyWorkbench in this example).
-
From the Workbench type scrolling list, select
Part and click OK when done. Click OK in
the File Name dialog box. Your user workbench is created.
-
Open the BktCap.CATPart
file.
-
Click the root of the specification tree, the
icon, the root of the
specification tree, and click the Volume icon to type the Part.
-
Right-click Volume (Cap1) and select Volume Cap1
object>Computing_a_Volume.
-
Expand the Volume Variables node and double-click the
ComputedVolume attribute. The Attribute Modification dialog box is
displayed indicating the Cap volume.
|