bktug
TRANSCRIPT
-
8/10/2019 bktug
1/317
Business Process Knowledge Template
eface
Using This Guide
hat's New?
tting Started
Generating the User Workbench
Using the User Workbench
sic Tasks
Setting up the working Environment
Reminder
Creating the Working Environment for the Expert User
Managing the Data Generated by the Expert User
Creating an Environment under Windows
Creating an Environment under Unix
Defining an Application Workbench
Working with technological Objects
Creating a Technological Object
Adding an Attribute to a Technological Object
To know more about the Add Attribute Dialog Box
Generating a Report
Working with BehaviorsCreating Behaviors
Combining Behaviors
Defining and Linking Behaviors
Working with Behaviors Patterns
To know more about patterns
Generating a User Workbench
Working with a User Workbench
Testing and Replaying the Process
To know more about the Operate Function...
Fixing a problem
Intervening when Instantiating Objects
Exploiting the Messages Displayed when Executing Behaviors
Managing Errors
Using the Error Check Tool
Working with a User Workbench
Getting Familiar with the End-User Workbench
Executing Behaviors
Editing Behaviors
vanced Tasks
1Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
2/317
Knowledge Relations: Using the if...else Syntax
Using a Sequential Combination to instantiate a User Feature
Using the Insert Components behavior: Auto update mode
Using the Propagate Execution behavior
Using the Onxxx Behaviors
Using the Knowledge Certify Behavior
Using the Instantiate Template Behavior
Use Cases
Creating a User Workbench: Indirect VisionBefore you start
Setting up the Working Environment
Creating technological Objects
Defining the "Define Vehicle Data" Combination for the IndirectVision object
Defining the "Define Driver" Combination on the IndirectVision Object
Defining a "Compute optimal Mirror" sequence for the Indirect Vision technological Type
Defining a "Generate Report" Behavior on the Indirect Vision technological Type
Defining a "Generate Indirect Field of View for a planar Mirror" Combination on the Driver
technological Type
Defining a "Check Driver Position" Behavior on the Driver technological Type
Generating the User Workbench
Designing the external Mirror
Computing the optimal Mirror
ference Information
Introducing the Structure Behaviors
Logical Combination
Sequential Combination
Introducing the Infrastructure Behaviors
Implementation Behaviors
VBScript Behavior
Command Behavior
URL Behavior
ActiveX URL Behavior
System Behavior
Bind Behaviors
Bind Object Behavior
Bind Reference Behavior
Bind Parameter Behavior
Bind Instance Behavior
Bind Type Behavior
To know more about the Bind Mechanism...IO Based Behaviors
Link Input From Behavior
Synchronize Parameters Behavior
Propagate Execution Behavior
Information Behavior
Add Type Behavior
Introducing the Design Behaviors
Reuse Behaviors
Instantiate Template Behavior
2Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
3/317
Create External Reference Behavior
Copy/Paste Behavior
KWScript Behavior
Document Behaviors
Load Document Behavior
Create New From Behavior
FilterCatalog Behavior
Bind Behaviors
Bind PowerCopy BehaviorBind UDF Behavior
Bind Part Behavior
Bind Publication Behavior
Bind Product Instance Behavior
Display in Window Behavior
Insert Components Behavior
Knowledge Relations Behavior
Knowledge Certify Behavior: Data Sheet
Introducing the Event-based Behaviors
On Done Behavior
On Create Behavior
On Remove Behavior
On Cancel Behavior
stomizing the Business Process Knowledge Template Settings
orkbench Description
Toolbar Description
Specification Tree Description
Interface Description
ossary
dex
3Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
4/317
Preface
e CATIA - Business Process Knowledge Template solution allows companies to capture their businessocesses, and to share and deploy them through dedicated workbenches. An expert can model any corporst practices and know-how. From complex conceptual studies in the automotive to airframe structureneration, the expert captures, automates design and engineering tasks, and embeds core-knowledge ruld checks within those tasks. As a result, he delivers the captured best practices through a specific pseudplication including all the required features and processes.
reach that objective, the CATIA - Business Process Knowledge Template solution takes advantage of thenge of CATIA V5 products.
ally, the end-user can access these pseudo-applications, as he can access any CATIA V5 products. He cen create products while following a pre-defined methodology, resulting from the corporate best practicefinition and capture provided by the experts.
e Business Process Knowledge Template solution is divided into an authoring product, CATIA - Business Process Know
mplate 3 (BKT), and an end-user solution, CATIA - Business Process Knowledge Template 2 (BK2).
s product enables the expert user to:
Capture business processes and best practices.
Automate design and engineering tasks.
Generate design assistants in a simple and intuitive way.
Deploy best practices and know-how in an easy-to-reuse way.
Accelerate and secure design process time.
pturing business processes and best practices...
eating a design assistant supposes that, beforehand, the corporate processes and best practices have bentified. By using CATIA - Business Process Knowledge Template 3 (BKT), an expert can capture and caps knowledge, packing and combining the corporate processes and best practices inside a pseudo-applicaorder to ensure a global process coverage, these applications can be enriched by several experts, cominm different disciplines.
s knowledge capture is made in the CATIA environment through its interface.
tomating design and engineering tasks...
om the identified processes and practices,the expert organizes the different design tasks and creates tasquences. All the CATIA products functionalities can be inserted and reused in a design sequence as a rese V5 knowledge-based architecture.e created tasks and the entire sequences can be automated. Complex or repetitive sequences, for examn then be run automatically. If needed, users can also perform these sequences manually, task by task.
nerating design environment in a simple and intuitive way...
e creation of a pseudo-application using CATIA - Business Process Knowledge Template 3 (BKT) benefitse CATIA V5 functionalities. An expert can use, without coding, the different building blocks provided by thrtfolio products and combine them altogether.
4Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
5/317
e result of this building process is a dedicated pseudo-application workbench generation integrated into tenvironment. The end-user benefits from the CATIA V5 products and generated pseudo-applications
nergy.
ploying best practices and know-how in an easy-to-reuse way...
e pseudo-applications created using CATIA - Business Process Knowledge Template 3 (BKT) benefit fromer friendly CATIA V5 interface. They embody the deployment of the corporate knowledge and know-howhin the V5 frame and consistency with the other V5 portfolio applications.
celerating and securing the design process time...
ally, the end-user can access, in a V5 environment, one or several specific pseudo-environments, eachbodying specific best practices.
Using this Guide
Conventions
5Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/icons_C2/conventions.htmhttp://e%7C/www/meidocr12/Doc/online/icons_C2/conventions.htm -
8/10/2019 bktug
6/317
Using this Guide
s book describes how to use the Business Process Knowledge Template product. Before you read it, youould be familiar with basic concepts such as document windows, standard tool bars, and view tool bars.
get the most out of this guide, you should start with the tutorial in the Getting Started section.
e remaining sections of the book describe in detail the procedures for using all of the features of the Busocess Knowledge Template product. The procedures are divided into basic, advanced, and customizationctions.
[
6Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
7/317
What's New?
s list identifies what new or improved capabilities have been documented in the Version 5 Release 12 ofsiness Process Knowledge Template User's Guide.
New Functionalitiessing the Knowledge Certify Behavior
This new behavior is designed to enable the user to specify the validation steps of his design and tautomate its execution. To know more, see Knowledge Certify Behavior: Data Sheet.
anaging Execution Errors
This functionality enables the expert and the end-users to analyze the errors that may occur whenrunning a behavior.
nhanced Functionality
stantiate Template Behavior
The Instantiate Template behavior was enhanced to manage also the Assembly Template Behaviore an example, see Using the Instantiate Template Behavior.
7Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
8/317
-
8/10/2019 bktug
9/317
Generating the User Workbench
This topic provides the expert user with a short example. In this scenario, he will create an applicati
that will enable him to instantiate passengers into a vehicle. He will be able to select the governmenlegislation to be tested, the automotive standard as well as the number of passengers.
To carry out this scenario, you need the following files:
BktDriver2D5Female.CATPart
BktDriver2D50Male.CATPart
BktDriver2D95Male.CATPart
BktPassenger-2D-5-Female.CATPart
BktPassenger-2D-50-Female.CATPart
BktPassenger-2D-95-Male.CATPart
BktManikins.catalog
These files are to be saved in specific directories. To know more, see Creating the Working
Environment for the Expert User.
The scenario is divided into the following steps:
Creating a technological type, called Interior. This type will be instantiated into the user
workbench.
Adding attributes to the technological type: These attribute will enable the user to filter t
catalog containing the manikins to insert.
Adding behaviors to the technological type: The user creates a sequence that is made up
the following behaviors:
Filter Catalog Behavior: Enables the user to select a documentto be loaded.
Load Behavior: Enables the user to load the document.
Bind Object Behavior.
Insert Component Behavior.
Testing the workbench
9Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver2D5Female.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver2D50Male.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver2D95Male.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktPassenger-2D-5-Female.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktPassenger-2D-50-Female.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktPassenger-2D-95-Male.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktManikins.cataloghttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktManikins.cataloghttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktPassenger-2D-95-Male.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktPassenger-2D-50-Female.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktPassenger-2D-5-Female.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver2D95Male.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver2D50Male.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver2D5Female.CATPart -
8/10/2019 bktug
10/317
Creating a technological Type
1. From the Start->Knowledgewaremenu, access the Business Process Knowledge
Templateworkbench.
2. Create the Interior technological type. To do so, proceed as follows:
Click the Create Technological Typeicon ( ) to create a type. The Create
technological type dialog box displays.
Enter the name of the type: Interior.
Click OKto validate.
To know more about the technological types, see Creating a Technological
Object.
Adding Attributes
3. Add a Legislation attribute to the technological type. To do so, proceed as follows:
Click the Interiortype in the specification tree and click the Add Attributeicon (
). The Add Attribute dialog box displays.
In the Name field, enter the name of the attribute: Legislation.
In the Type scrolling list, select String. The attribute is an input of the technologicaltype that will be changed by the end-user (if need be).
In the Value field, enter EEC.
1Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
11/317
Click OKto validate. Double-click the Interior type: Legislation now displays in theAttributes tab.
4. Add a Standard attribute to the technological type. To do so, proceed as follows:
Click the Interiortype in the specification tree and click the Add Attributeicon (
). The Add Attribute dialog box displays.
In the Name field, enter the name of the attribute: Standard.
In the Type scrolling list, select String. It is an input of the technological type that
will be changed by the end-user (if need be).
In the Value field, enter SAE.
Click OKto validate. Standard now displays in the Attributes tab.
5. Add a NumberOfPassengers attribute to the technological type. To do so, proceed as follow
Click the Interiortype in the specification tree and click the Add Attributeicon (
). The Add Attribute dialog box displays.
In the Name field, enter the name of the attribute: NumberOfPassengers.
In the Type scrolling list, select Integer. This is an input of the technological objectwhich enables the end-user to modify it.
In the Value field, enter 2.
1Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
12/317
Click OKto validate.
Your window should now look like the one opposite. (Clickthe graphic opposite to enlarge it.)
6. Save your file (name it T1 for example) in the directory specified by the environment variabl
CATGraphicPath of your V5 environment. To know more, see Setting up the Working
Environment. Don't close your file.
7. Generate your workbench. To do so, proceed as follows:
Click the Generate Applicative
Workbench icon ( ).
In the Workbench Name field of
the opening dialog box, enter the
name of the workbench, T1 in this
scenario.
For the Workbench type, select
Product
Click OK to validate.
Click OKin the File Name dialog box. A
new application opens corresponding to
the end-user workbench. (Click the
graphic opposite to enlarge it.)
8. Instantiate the technological object and associate it with the product. To do so, proceed as
follows:
12Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
13/317
Click the root product in the specification tree to activate your workbench
Select the icon associated with the type (if any) orclick the technological type check box in yourworkbench toolbar: You can see the technologicalobject and the product.
Click the Product, then Technological
specifications View icon ( ) to visualize yourtechnological objects. (Click the graphic oppositeto enlarge it.)
Using the Interior contextual menu, the user can edit the definition of the Interior
technological object : He can modify the attributes values, and add localattributes.
The product is now extended by the data of the technological object. If you open the F(x) editor, yowill see the product parameters as well as the technological object parameters. The product is typedInterior and inherits from the behaviors of the technological type Interior that are still to be defined
9. Save your file.
Go back to BKT workbench to define the behaviors that you want to associate with the technologica
type.
Adding behaviors to the technological type: Define Passengers. The expert userwants the end-user to instantiate data from a catalog depending on the standard, thelegislation and the manikin type (driver or passenger). The system instantiates thenumber of instances specified by the user.
10. Click the Interior type and click the Sequential Combination icon ( ) in the Structure toolb
SequentialCombination displays in the Behaviors View in the specification tree.
11. Double-click SequentialCombination in the Behaviors View, then double-click Interior in the
Behaviors tab: The SequentialCombination is now available.
12. Double-click the SequentialCombination in the Behaviors tab. The Sequential Combination
editor displays.
In the Name field enter Define passengers.
13Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
14/317
Click the Icons... button to associate an icon with the behavior (optional).
Click OKto validate.
Using a filtered catalog to select a manikin
13. Click the Define passengers behavior in the Behaviors tab and click the Filter Catalog behavi
icon ( ) in the Doc based toolbar.
14. Double-click the Filter Catalog behavior in the Behaviors tab. The Filter Catalog editor display
Click the button in the Catalog document field to select the BktManikins.catalogfile
This catalog contains manikins matching the US and the EEC legislations.
If the catalog is stored in the CATGraphicPath directory, indicate only the name of
the catalog, if not, enter the whole path of the file.
Add attributes to specify the query that will filter the catalog contents. To do so,
proceed as follows:
1. In the Filtering Keywordsfield, click the Addbutton. The Attribute Panel
displays.
2. In the Namefield, enter Name.
3. In the Typefield scrolling list, select String.
4. In the Valuefield, enter SAE.
5. Click OKin the Attribute Panel.
Add the Legislation parameter. To do so, proceed as follows:
1. In the Filtering Keywordsfield, click the Addbutton. The Attribute Panel
displays.
2. In the Namefield, enter Legislation.
14Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktManikins.cataloghttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktManikins.catalog -
8/10/2019 bktug
15/317
3. In the Typefield scrolling list, select String.
4. In the Valuefield, enter EEC.
5. Click OKin the Attribute Panel.
Add the DriverOrPassenger parameter. To do so, proceed as follows:
1. In the Filtering Keywordsfield, click the Add button. The Attribute Panel
displays.
2. In the Namefield, enter DriverOrPassenger.
3. In the Typefield scrolling list, select String.
4. Click OKin the Attribute Panel. Click OKto validate.
Note that the names of the variables added in this field are identical
to the catalog keywords (open the catalog to check the keywords).
15Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
16/317
For the catalog to reuse the same value as the one defined in the technological object attributes,establish links between the parameters of the behavior and the attributes of the technological objecTo do so, proceed as follows.
15. Expand the Filter Catalog node and right-click the Name attribute, select the Name object-
>Link tocommand, expand the Interior variables node and click the Standard attribute.
16. Right-click Legislation, select the Legislation object->Link Tocommand, expand the Inter
variables node and click the Legislation attribute.
Testing the filtered catalog
17. Save your file and retest it. To do so, go back to the user workbench.
18. Right-click Interior and select the Interior (Product) object-> Define passengers
command. The Catalog Browser displays.
1Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
17/317
As you can see, the catalog was filtered: only the passengers matching the EEC legislation display.
1Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
18/317
19. Double-click one of the manikins. The manikin is still not loaded.
20. Modify the Interior object attributes: To do so, proceed as follows:
Expand the Interior variables node.
Double-click the Legislation attribute and enter US in the Edit Parameter dialog
box.
Double-click the Standard attribute and enter SAE in the Edit Parameter dialog
box.
21. Right-click Interior and select the Interior (Product) object-> Control_Define passenge
command.
22. Click OK when asked if you want to withdraw Define Passengers.
23. Right-click Interior and select the Interior (Product) object-> Define passengers
18Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
19/317
command.
The Catalog Browser displays. As you can see, the catalog was again filtered: only 2 manikins areavailable.
24. Close your product file.
Now go back to BKT to enable the end-user to load a manikin.
Loading and Inserting the Manikin
To load the manikin document into the current session, you need the Load behavior.
25. Click the Define Passengers combination and click the Loadicon ( ). LoadDocument
displays in the Behaviors tab.
26. Double-click the LoadDocument node in the Behaviors tab. The Load Document editor
displays.
27. Click the File path field, expand the FilterCatalog variables node and select Chosen Path. It
contains the path of the document selected by the user in the Catalog Browser. Click OKto
validate.
You have to define where the loaded part will be inserted. Inthis example, we decide to insert the manikin under theproduct on which the Define Passengers behavior is going torun.This product does not exist yet, you must use the bind
mechanism, which is a way to access the data using the
specification tree.For example, in the user workbench, if you want to findInterior (Product.2) using the specification tree, ".." will enableyou to find Define Passengers, ../.. will enable you to findInterior, and ../../.. will enable you to find the extendedproduct.
28. Click the Define Passengers combination and click the BindObject icon. BindObject displays in
the Behaviors tab.
29. Double-click the BindObject node in the Behaviors tab. The Bind Object editor displays.
In the Relative Name field, enter ../../..
19Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
20/317
Click OKto validate.
Now you want to insert your product. To do so, you have to use the Insert component behavior.
30. Click the Define Passengers combination and click the Insert Components icon ( ).
InsertComponents displays in the Behaviors tab.
31. Double-click the InsertComponents node in the Behaviors tab. The Insert Components editor
displays.
In the Definition scrolling list, select Existing
component.
Click the Existing component field, expand the LoadDocument variables node and
select the Document output. =Document displays in the field.
Click the Father Product field to specify the instantiation context, expand the
BindObject variables node and select the output Link. =Link displays in the field.
Set Allow sub typing to false in the Typing management field.
In the Properties tab, set the Update mode to Auto.
Click OKto validate.
32. Expand the InsertComponents variables node, right-click the Number attribute, select the
Number object->Link to command, and select the NumberOfPassengers attribute in the
Interior variables node.
2Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
21/317
33. Save your file in the \CATGraphicPath directory and test it one last time. Click hereto display
the final .CATfct file (if you want to use it, open it and change the Filter catalog file path).
Testing the Workbench
34. From the Startmenu, select the T1workbench.
35. Select the root product and click the Interioricon (if any) or check box. The Interior type is
now associated with the root product.
36. Right-click the Interior (Product1) object in the tree and select the Interior (Product1)
object->Define Passengerscommand. The Catalog Browser opens.
2Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktGettingStarted.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktGettingStarted.CATfct -
8/10/2019 bktug
22/317
Note that thecatalog is filteredaccording to yoursettings:
Legislation:EEC
Standard:SAE
37. In the Catalog, double-click the BKTPassenger-2D-5-Female manikin. The manikins are
inserted. (Use the compass if the manikins overlap in order to separate them.)
22Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
23/317
manikin is removed.
[
38. Expand the Interior (Product1) variables node.
39. Double-click the NumberOfPassengers attribute, set it to 1, and click OKto validate. One
23Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
24/317
Using the User Workbench
This scenario enables the end-user to instantiate a manikin into a product using the workbench
generated by the expert user.
We assume that the end user is provided with the P2 license and not the P3 one.
If the T1 workbench is not available in the Startmenu, contact your expert user for him to copythe files that he generated in the Generating the User Workbenchtopic into the appropriate
directories and to generate the workbenchto enable you to replay this scenario.
Starting the T1 Workbench
1. Open Catia and close the default empty product.
2. From the Start menu, select T1.
You are now in the user workbench. The items defined in the *.CATfct file display in the toolbar locain the right part of the screen. Note that the icons might be replaced with empty check boxes if noicons were associated with the created types when the expert user defined the *.CATfct file.
3. Select the root product in the specification tree and click the icon to activate your
workbench (if need be).
Defining the Type
4. Select the product and click the Interioricon. The Interior type is assigned to the root
product.
24Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
25/317
5. Right-click the Interior (Product1) object in the tree and select the Interior (Product1)
object->Define Passengerscommand. The Catalog Browser opens.
Note that thecatalog is filteredaccording to theInterior'svariables(attributes):
Legislation:EEC
Standard:SAE
6. In the Catalog, double-click the BKTPassenger-2D-5-Female manikin. The manikins are
inserted. (Use the compass if the manikins overlap.)
25Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
26/317
7. Expand the Interior (Product2) variables node.
8. Double-click the NumberOfPassengers variable (attribute), set it to 1, and click OK to validat
One manikin is removed.
2Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
27/317
9. Double-click the Legislation variable (attribute) and set it to US. Click OK to validate.
10. Right-click the Interior (Product1) object in the specification tree and select the Interior
(Product1) object->Control_Define Passengerscommand.
11. Click Yes in the dialog box when asked if you want to withdraw Define Passengers.
12. Right-click the Interior (Product1) object in the tree and select the Interior (Product1)
object->Define Passengerscommand.
13. Select the BktPassenger-2D-95-Male manikin and click OK. The manikin is inserted.
2Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
28/317
Basic Tasks
his section contains explanations and scenarios showing the expert user how to create workbenches byreating technological objects and basic behaviors. It also shows end-users how to use a workbenchenerated by the expert user.
Setting up the Working Environment
Defining a Workbench
Working with a User Workbench
28Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
29/317
Setting up the working Environment
e information provided in these topics are designed to help the administrator:
Create a working environment,
Collect the information from the experts,
Manage the data,
And deploy the end-user workbenches.
29Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
30/317
you need more information about the administration, refer to the CATIA Administration and Installation Uide.
Reminder
Creating the Working Environment for the Expert User
Managing the Data Generated by the Expert User
Creating an Environment Under Windows
Creating an Environment Under Unix
[
3Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
31/317
Reminder
at is an environment?
environment is a set of runtime environment variables. Each variable points to a path searched by thetware when you start a session.
at are Global and User environments?
lobal environment can only be created by a Windows administrator, or the root userid on UNIX. For exae default environment created at installation is a global environment: "global" means that it is visible to an be used by all users on the computer on which it has been set up.
obal environments can only be created, edited or deleted by a Windows administrator, or the root userid
IX.
user environment is visible to and can be used and manipulated (customized or deleted) only by the userated it.
at does customizing an environment mean?
stomizing your runtime environment means providing different values for the runtime variables in yourfault environment, or setting up new environments.
en customizing runtime environments, you can:
Create new environments
Edit existing environments
Copy existing environments (UNIX only)
Delete environments
e runtime environment variables to be modified by the administrator are listed in the table below:
ariable Name Description
ATGraphicPath Graphic and icon search path
ATStartupPath Sample file search path
ATUserSettingPath Permanent user setting search path
3Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
32/317
ATReferenceStandardPath Default reference standard path for standards (for example, 3D graphicsstandards). Directory used by the administrator to deploy the workbencgenerated by the expert user
ATTemp Temporary user setting search path
To know more, see the CATIA Administration and Installation User's Guide.
[
32Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
33/317
Creating the Working Environment for the Expert User
This topic explains how to create a working environment for the expert user. It is highly recommended for the expert usercreate a set of directories before he starts creating the workbench. This way, once the he is finished with the workbenchcreation, the administrator copies the required data generated by the expert user into the appropriate directories.
First method
1. Create a tree structure similar to the one below. (In this example the tree structure is located on the e:\ drive, the
"1"located at the end of BKT1 indicates that the expert user can attribute whatever name to this directory.)
2. From the Startmenu, select the
Programs->CATIA->Tools->Environment Editor V5R10 command.
3. Select the Environment->Newcommand.
4. In the opening dialog box, enter the name of the environment to be created, BKT1in this example.
5. Enter the path of your installation folder. The default installation folder path is:
C:\Program Files\Dassault Systemes\B10
6. Click OKto create the new environment.
7. Edit the CATUserSettingPath variable. Enter your settings (see picture below).
33Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
34/317
8. Exit the Environment Editorand click Yesto save your changes. Your environment is ready now you can start
creating the workbench.
Second method
1. From the Startmenu, select the
Programs->CATIA->Tools->Environment Editor V5R10 command.
2. Select the Environment->Newcommand.
3. In the opening dialog box, enter the name of the environment to be created, BKT1in this example.
4. Enter the path of your installation folder. The default installation folder path is:
C:\Program Files\Dassault Systemes\B10\OS_a\
where "os_a" is the operating system, for example intel_a on Windows.
5. Click OKto create the new environment.
6. Edit the variables. To do so, proceed as follows:
Right-click the CATGraphicPath variable and concatenate your path (e:\BKT1\intel_a\resources\graphic) into thexisting one (insert your data at the end of the existing path). What you get onscreen should be similar to thepicture below.
34Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
35/317
Right-click the CATStartupPath variable and concatenate your path (e:\BKT1\intel_a\startup) into the existingone. What you get onscreen should be similar to the picture below.
Right-click the CATUserSettingPath variable and enter the following path: e:\BKT1\CatSettings1What you get onscreen should be similar to the picture below.
35Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
36/317
7. Exit the Environment Editorand click Yesto save your changes. Your environment is ready now you can start
creating the workbench.
Remember to save the files you create (.CATfct for example) or the files you reuse (.CATPart, CATProduct, CATScript filesin the appropriate directories. If not, you will not be able to generate the end-user workbench.
Copy .CATfct files
.CATPart files
.CATProduct files
.CATProcess files
.CATDrawing files
.catalog files
Into the \CATGraphicPath directory. If this directory does no
exist, create the folder E:\temp. Make sure that thisfolder is empty when beginning the scenario. The datawill be saved here by the VBScript automation.
Copy .CATScript files
.CATvbs files
Into the \CATStartupPath\automationdirectory.
Copy .HTML files Into the\CATStartupPath\htmldirectory.
Copy The icons that you associatedwith the behaviors you created (ifany).
Into the\CATGraphicPath\icons\Normal directory.
3Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
37/317
Note The CATSettings files created when generating the user workbench are stored in the CATSettings directo
If the expert user wants to use the applications made available by the administrator, he can use theEnvironment Administrator to concatenate his data.
The expert user should copy the following data into the CATSettings path: Files starting with B_ and theFrameConfig file. (see picture below.)
The files generated by the expert user when creating the end-user workbench will be copied by the administrator into theappropriate directories and deployed by him.
[
3Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
38/317
Managing the Data Generated by the Expert Use
This topic is designed to provide the administrator with the guidelines required to deploy the workben
generated by the expert user.
To deploy the workbench(es) generated by the expert user the administrator should:
1. Create (or copy) the same tree structure as the expert user. To get an example, see Creating
the Working Environment for the Expert User, steps 1 to 7.
2. Copy the CATSettings files generated by the expert user into his CATSettings directory (note
that the CATSettings files generated by BKT start with B).
3. Concatenate the data generated by the expert user with his data.
When creating the user environment, make sure to select the Global mode in theEnvironment editor for the application to be available to all users.
[
38Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
39/317
Creating an Environment Under Windows
This task is designed to help the administrator create a user environment under Windows usithe Environment Editor.
To know more, see the CATIA Administration and Installation User's Guide.
1. Select the
2. Start->Programs->CATIA->Tools->Environment Editor V5R11 command.
3. Select the Environment->Newcommand.
4. In the opening dialog box, enter the name of the environment to be created.
5. Enter the path of your installation folder. The default installation folder path is:
C:\Program Files\Dassault Systemes\B11\OS_a\
where "os_a" is the operating system.
6. If you logged on as administrator, enter the environment mode.
The type can be useror global(global is available only for administrators only). If you arelogged on as a normal end user, the type is set automatically to "user".
7. Set the product line to CATIA.
8. Check the Add Desktop Iconoption if you want to create a desktop shortcut and an
entry in the appropriate Version 5 location of the Start->Programsmenu.
39Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
40/317
9. Click OKto create the environment. The environment is created.
[
4Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
41/317
Creating an Environment Under Unix
This task is designed to help the administrator create a user environment under UNIX.
To create or customize an environment using the catiaenv command
There is now an interactive tool available for customizing values for runtime environmentvariables: the catiaenvcommand.
Run the command as follows:
/usr/DassaultSystemes/B11/$OS_a/code/command/catstart -run catiaenv
where "OS_a" is:
aix_a
hpux_a
irix_a
solaris_a.
The Environment Editor appears. The user interface and functions are the same as underWindows. For more information, refer to Creating an Environment Under Windows.
To create or customize an environment using the setcatenv command
The setcatenvcommand is available for customizing environments.
Run the command as follows:
/usr/DassaultSystemes/B11/$OS_a/code/command/catstart -run setcatenv
where "OS_a" is:
aix_a
hpux_a
irix_a
4Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
42/317
solaris_a.
To get the full list of options for the command setcatenv, see the CATIA Administrationand Installation User's Guide.
[]
42Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
43/317
Defining an Application Workbench
topics of this section are designed to help the expert user create a new application.
purpose of defining an application is to deliver efficient user interfaces to dedicated users. The purpose of BKT is to rel
CATIA V5 interface for an expert user to quickly program such applications by using building blocks such as catalogs,ument templates, UDFs, and V5 commands. The expert user can organize and control the various building blocks by thans of behaviors pertaining to an object called a technological object. This object will enable the end-user to put in actiot building blocks combination at the right time.
diagram below provides the expert user with an overview of an applicative workbench definition process.
1- Before he starts creating the euser workbench, the expert user have defined the process to becaptured and created the featurehe intends to reuse like UDFs,PowerCopies, VBScripts, CAAcommands...
2- The expert user starts with thdefinition of technological objectsis to say a hierarchy of types, antypes associated with variables(attributes).
3- The expert user defines for etechnological object the behaviorcorrespond to the tasks that the user will perform. To define a new
behavior, the expert user will use"building blocks" (see graphic bethat he will link with each other.
4/5- The expert user can test theworkbench throughout the definiprocess by generating the workbthat will be used by the end-userNote that the user workbench onneeds to be generated once. If thexpert user modifies the .CATfct the changes will also apply to theworkbench.
In case of errors, the expert userlocally modify the access rights tbehaviors to edit them and to tesnew solution before he makes thsame corrections in the .CATfct fBKT.
"building blocks" used by the expert user are ordered depending on their families (see graphic below.) Refer to the Wo
h Behavior Patternstopic to see examples of behavior combinations.
43Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
44/317
Working with Technological Objects
Working with Behaviors
Generating a User Workbench
Working with a User Workbench
Testing and Replaying the Process
[
44Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
45/317
Working with Technological Objects
hat is a technological Object?
echnological object is an object used in the Business Process Knowledge Template workbench.echnological object is made up of three sets of components:
A type
A set of attributes(variables)
A set of behaviors
type
pert users can create their own types in Business Process Knowledge Template.engine, a gearbox or a windshield can be potential types.
set of attributes (variables)
ributes are added to the technological object and are located in the types hierarchy.ere are three different types of attributes:
Input attributeswill be valuated by the user. Inputs are requirements, target values, workinghypothesis. For an engine for example, the number of cylinders is considered as an input.
Output attributescannot be modified by the user. Outputs are valuated by behaviors.For an engine, the power and the swept volume are considered as outputs.
Internal attributesare never seen by the user. This attribute type is used by the behaviors and isused for storing intermediate results.
set of behaviors
haviors are designed to describe how:
45Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
46/317
To test, compute and evaluate object performances.
The object behaves in a real environment.
chnological objects can be associated with structured CAD elements such as Parts, Products, Part Bodies er Bodies (OpenBody). They can contain other technological objects.
anaging technological Objects
e Business Process Knowledge Template workbench provides the expert user with an interface that he cae to define and drive object types and sub-types, and attributes.
Creating a Technological Object
Using the Error Check Tool
Adding an Attribute to a Technological Object
To know more about the Add Attribute dialog box...
Generating a Report
[
4Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
47/317
Creating a Technological Object
This task explains how to create a technological object using the Business Process KnowledgeTemplate workbench and how to add sub-types to this object.
1. From the Start->Knowledgewaremenu, access the Business Process Knowledge
Templateworkbench. The FeatureDictionary window opens.
2. Click the Create Technological Typeicon ( ). The Create technological type dial
box opens.
3. Enter the name of the object, Manikin in this scenario and click OK.
Manikin displays under the ClassesView node in the Feature Dictionarytree.
4. Click the Manikin object in the Feature Dictionary tree and click the Create technologic
Type icon ( ). The Create technological type dialog box opens.
5. Enter the name of the sub-type, Driver in this scenario and click OKto validate.
Driver displays under the Manikinobject in the Feature Dictionary tree.
4Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
48/317
6. Save your file, keep the file open and proceed to the next task: Adding an Attribute to
Technological Object.
Please note that types names should not contain spaces and non-alphanumericcharacters.
[
48Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
49/317
Adding an Attribute to a technological Object
This task explains how to add an attribute to a technological object. See also To know more about the Add
Attribute dialog box...
1. In the specification tree, select the type (here Manikin) to which you want to add an attribute and click
Add Attribute icon ( ). The Add Attribute dialog box displays.
2. In the Name field, enter
Percentile.
In the Type scrolling list, select String.
In the Value field, enter 95Male andclick OK.
To know more about the AddAttributedialog box, click here.
3. Double-click Manikin: The Percentile attribute displays in the Local attributes field.
4. Click the Driver sub-type in the FeatureDictionary tree and click the Add Attribute icon ( ). The Add
Attribute dialog box displays.
5. In the Name field, enter L40.
6. In the Type scrolling list, select
Angle.
7. In the Value field, enter 25deg
and click OK. This value is a
default value.
49Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
50/317
The L40 attribute is added to the Drivertype and displays in the Local attributesfield. (Click the graphic opposite toenlarge it.)
Save your file and proceed to the next task: Generating a Report.
Note that the number of attributes added to a technological object is not limited.
Note that an attribute name cannot be modified once it is created. To modify it, delete it andcreate a new attribute.
Note that an attribute name can only be made up of alphanumerical characters.
Note that sub-types inherit the attributes from their super types. In the example above, Driver inherits theattributes from Manikin.
[
5Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/images/bktAddAttribute3a.gif -
8/10/2019 bktug
51/317
o know more about the Add Attribute dialog box...
u can access the Add Attribute dialog box by clicking the Add Attribute icon ( ) in the toolbar.
The Add Attribute dialog box is made of 5 fields:
Class Name
Name
Type
With
Value
Quality
lass Name: Depends on the item selected in the Feature Dictionary tree to which you want to addattributes (variables).
ame: Enter the name that you want to assign to the attribute (variable).
ype: Enter the type of the attribute (variable). The types displayed in this scrolling list are same types available in the Knowledge Advisor product. 2 types were added:
Object: Enables the user to point to a V5 feature located in the same document oanother document.When pointing to another object located in another document, the pointed object the object that points the other object will both be loaded when loading.
ExternalObject: Enables the user to point to a document.The referencing occurs when the value is needed.
alue: Enter the default value of the attribute (variable) if any.The Unset button enables you to set the value of this field to Unset.
uality: Defines if the attribute (variable) will be used as an input,an output or as an internal parameter.
[]
5Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
52/317
Generating a Report
This task shows how to generate a report that displays the technological objects and their sub-types.
This function allows you to generate an external HTML file. The report will display all the objects located under theClasses View and the Referenced Dictionary of the specification tree. It will also display all the variables (attributesassociated with an object.
1. Click the Generate Reportbutton . The Save User Dictionary Reportdialog box will display.
2. Navigate to the directory where you want to save the file, give the file a name and save it. The report will b
saved in HTML format.
3. To view the report open it in your Web browser.
The informationprovided in thosefiles are thefollowing:
Types andsub-types
Variables(attributes)assigned tothe types
Note that theinformationprovided in thereport areidentical to theones displayed inthe .CATfct file(see graphicsopposite andbelow).
52Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
53/317
53Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
54/317
Working With Behaviors
troducing the Behavior Concept
behavior is a set of tasks performed on a technological object. It can be a V5 command, a CAA commandternal application, a VBA Command, or a behavior defined in BKT. It enables expert users to capturequences of tasks that are manually performed in V5, and enables end-users to use the knowledge contaithe behaviors to perform tasks and procedures related to the technological object.
behavior is made up of the following components:
name and an optionalomment
Name displayed in the end-user workbench. The comment associated wthis name can help the end-user understand the behavior function.
set of variables Inputs: Data entered by the userOutputs: Result produced by the behaviorInternals: Defined for internal use as storage of intermediate results
set of properties Icons ...
efining a new behavior
define a new behavior, the expert user:
Creates behaviors
Combines existing behaviors
Links behaviorsto define the dependencies.
troducing the basic Behaviors
tructure Behaviors
Logical and Sequentialombinations)
Allow to define two different combinations of behaviors:
Ordered (sequential combination)
Not ordered (logical combination)
54Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
55/317
nfrastructure Behaviors Implementation Behaviors: Enable to reuse existing code samples.
Bind Behaviors: Enable to access resources not yet available at the definition
stage.
vent-based Behaviors Enable to define what element reacts and how it reacts when something happ
esign Behaviors Enable to reuse CATIA V5 functions.
Reuse:
Paste as specification, as external reference
Template reuse (PowerCopy and User Defined Feature)
Generative Script
Document:
Load, New From
Query in catalog
Insert Components:Enables to create a new component, or to insert an exist
one taking the multi-occurrence into account.
nowledge Relations Enable to define rules, checks and formulas that need to be validated during tprocess or add logical control to the model.
troducing the Behaviors Interface
e Behaviors interface is made up of 2 or 3 tabs depending on the behaviors:
The Definition tab
The Properties tab
The Attributes tab
e Definition tab contains the information that needs to be specified for the behavior to execute correctly.ow more about this tab (specific to every behavior), see the documentation related to the various behav
e Properties tab
55Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
56/317
s tab contains the information required for the behavior execution.
ehavior States
The scrolling list enables the expert user to define who can see the behavior.
All Users: The behavior can be seen by all users.
Expert&Administrator: Only the expert and the administrator can see the behavior.
Expert: Only the expert user can see the behavior.
ctivate:If not checked, the behavior will not be part of the execution process.
utoDelete: If checked, the expert user does not want to keep track of the behavior execution and the
ehavior is removed after it is executed.
ocus: If checked, no other behavior asking for the focus will be started till the current behavior is execut
pdate
5Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
57/317
Driven: The behavior is updated when one of its input ismodified. The update will be triggered by a user, or byanother behavior (Propagate for example).
Auto: This mode is an extension of the Driven mode. Theupdate will occur automatically if the behavior is eligible foupdate.
Single: The behavior is run once no matter its input ischanged or not.
on Definition
his field enables the expert user to modify the icon identifying the Behavior in the behaviors tree and in tser workbench. A set of icons is available from the Icons...button. If you click this button, the Icon Browpens showing all icons loaded in your CATIA session.
o associate an icon with a technological object, define a name: I_nametype. For example for thechnological object Interior, the icon name is: I_Interior. To save the created icons in the appropriate
rectory, see Setting up the working Environment.
e Attributes tab
Filter Local/All
Local attributes are thdefined by the expertuser. The other attribuare defined by default
Input/Output
The parameters displain this field are the on
displayed in the behavtree.
The BState parameterwhen available, indicathe status of thebehavior's child.
Done
5Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
58/317
Enables to add a local attribute (variable).
Enables to modify one of the local attributes (variables).
Enables to delete the local attributes (variables) created by theexpert user.
Suspended
Canceled
In case of a logical or sequential combinatiothe name of the behavthat was last run displ
in this field.
he behavior is also provided with a property defining if it can execute or not. As long as the inputs are no
aluated, this behavior cannot operate ( ).
Creating Behaviors
Linking Behaviors
Combining Behaviors
Working with Behaviors Patterns
Reference Information
[
58Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
59/317
Creating Behaviors
create behaviors, proceed as follows:
1. Select the type with which you want to associatea behavior in the Feature Dictionary tree.
2. Click one of the behaviors icon. The behaviordisplays in the Behaviors View.
3. To add new behaviors, double-click the behaviorin the Behaviors View. The Behaviors tab is now
available.
4. Double-click the object name displayed in theBehaviors tab and click one of the behaviors icon.The behavior displays below the object name.
[
59Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
60/317
Combining Behaviors
using already defined building blocks, the expert user can create a new behavior. He can use combinatihaviors (Logical and Sequential Combinations) that can contain the components of the new behavior.
[ ]
6Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
61/317
Linking Behaviors
user workbench is made up of different behavior models and types combined by the expert user. Linksated between behavior variables (attributes) enable the expert user to define the data flow.
Given A and B, the variables (attributes) of 2behaviors. If a link is created between A and B, A B will share the same value.
at is the data flow?
the example above, for B to be valuated, the user must execute A. The links existing between the behav
e known as "data flow". They enable the user to define the order in which the behaviors will be executed
link behaviors, the expert user can choose one of the three solutions described below:
1. Right-click the behavior variable (attributethat you want to link in the Behaviors tree
2. Select the ...object->Link Tocommand.
3. Click the target behavior attribute. A link (displays next to the linked object.
- OR -
1. Click the technological object variable (attribute) that you want to link in the Behaviors tree.
2. Click the Link/Unlink icon ( ) in the Technological Object toolbar.
3. Click the target behavior variable (attribute). A link ( ) displays next to the linked object.
6Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
62/317
- OR -
o link behaviors, the expert user can also use the user interface of the following behaviors. To know morbout this capability, refer to the following topics:
Bind behaviors
Insert Components behavior
Copy/Paste Behavior
Display in Window Behavior
Linkand Synchronize Parametersbehavior
Propagate Executionbehavior
[
62Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
63/317
Working with Behaviors Patterns
ou want
o...
Reuse
models in aproductstructure
Create a Sequential
Combination containing: A Load Document or
a Create New Frombehavior
A Bind Objectbehavior
An InsertComponentsbehavior
Click hereto g
an example.
ou wanto...
Filter acatalog withparameters
Create a SequentialCombination containing:
A Bind Parameterbehavior
A Filter Catalogbehavior
ou wanto...
Navigate inthe productstructureand retrievea Partfeaturefrom aproductinstance
Create a SequentialCombination containing:
A Bind Objectbehavior
A Bind Referencebehavior
A Bind Part behavior
Click hereto gan example. Tknow more abthis pattern, chere.
63Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfct -
8/10/2019 bktug
64/317
ou wanto...
Navigate inthe productstructureand retrievea productinstancefrom aPartBody
Create a SequentialCombination containing:
A Bind Object / BindPart behavior
A Bind ProductInstance behavior
To know moreabout this patclick here.
ou wanto...
Create anexternalreference
Create a SequentialCombination containing:
A SequentialCombination toretrieve the Partfeature
A SequentialCombination to
retrieve thepublicationcontaining a BindObject on father, anda Bind publication
An Import behavior
Click hereto g
an example.
ou wanto...
InstantiateaUserFeature
Create a SequentialCombination containing:
A Load Documentbehavior
A Bind UserFeature
An InstantiateTemplate (withUseIdenticalName,Valuate inputs andBestStrategy)
ou wanto...
ManageErrors
Create a SequentialCombination containing:
An On Cancelbehavior
An Informationbehavior
A Behavior whosefailure needs to betrapped
64Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfct -
8/10/2019 bktug
65/317
ou wanto...
Use acondition(if then)
Create a SequentialCombination containing:
A Knowledgerelations OUT_Act1 OUT_Act2 Rule on Act1 &Act2
A SequentialCombination_1whose activity islinked to OUT_Act1
A SequentialCombination_2whose activity islinked to OUT_Act2
To get anexample, seeKnowledge
Relations: Usin
the if...else
Syntax
ou wanto...
React to agiven eventandperform anaction
Create a SequentialCombination containing:
An On Cancelbehavior
A Bind Objectbehavior
[
65Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
66/317
To know more about patterns
The blue arrows show how a Bind Object->Bind Reference->Bind Part combination operates.
The green arrows show how a Bind Object->Bind Product Instance combination operates.[ ]
6Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
67/317
Generating a User Workbench
This topic provides the expert user with a workbench generation example. To complete thistask, the user may use the CATfct file he created in another topic or he may use the providedfile.
To generate a user workbench and to test it, data should be located in the appropriatedirectories as shown below:
Copy .CATfct files
.CATPart files
.CATProduct files
.CATProcess files
.CATDrawing files
.catalog files
Into the directory corresponding to theCATGraphicPath environment variable.
Copy .CATScript files
.CATvbs files
Into the \CATStartupPath\automationdirectory.
Copy .HTML files Into the\CATStartupPath\html directory.
Copy The icons that you associatedwith the types you created (ifany).
Into the\CATGraphicPath\icons\Normaldirectory.
To know more, see the administrator's topic: Setting up the Working Environment
6Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
68/317
1. From the Start->Knowledgewaremenu, access the Business Process Knowledge
Template workbench.
2. Open the IndirectVisionStep03.CATfctfile (or save the .CATfct you are working on in
CATGraphicPath directory).
3. Click the Generate Applicative Workbench icon ( ): The Applicative Workbench
Generation window displays.
In the Workbench Namefield,
enter the name of the workbench
you want to generate: Indirect
Vision.
The Functional Libraryfield
displays the name of the current
.CATfct.
In the Workbench Typescrolling
list, select Product. Click OKto
validate. The new workbench is
created.
If the expert user wants the end-user to work in a Produstructure , he should select Product in the WorkbenchType scrolling list when generating the workbench. Toknow more about Product Structure, see the ProductStructure User's Guide.
If the expert user wants the end-user to work in a Partstructure , he should select Part in the Workbench Typescrolling list when generating the workbench. To knowmore about Part Design, see the Part Design User's Guid
If the expert user wants the end-user to work in a Systecontext , he should select System in the Workbench Typescrolling list when generating the workbench. To knowmore about Systems, see the Product FunctionalDefinition User's Guide.
68Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/IndirectVisionStep03.CATfct -
8/10/2019 bktug
69/317
4. Close the opening window.
5. From the StartMenu, select the Indirect Visionworkbench. The workbench opens.
6. Proceed to Working with a User Workbench.
[
69Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
70/317
Working with a User Workbench
This topic provides the expert user with a workbench use example. To complete this task, theuser may use the CATfct file he created in Generating a User Workbenchor he may use his ow
file.
1. From the StartMenu, select the Indirect Visionworkbench (or the workbench you
created). The workbench opens.
2. Click the icon to activate your workbench and click the root product. The
workbench is now activated.
3. Click the IndirectVision icon to type your workbench. The product is now typed and
displays along with the associated variables.
7Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
71/317
To know more about variables and parameters ...
The items displayed below the typed product are the type parameters as well as the thosedefined in Catia. Note that the user can filter the parameters/variables displayed using theTools->Optionsmenu. To know more see, Customizing the Business Process Knowledge
Template Settings.
Parameters added to extended objects using the f(x) icon are considered as:
1.Internal parameters (IN) if prefixed with IN_
2.External parameters (OUT) if prefixed with OUT_
3.Neutral if they are not prefixed
Publications (Part and Product) are considered as external parameters (OUT).
External references (Part) are considered as internal parameters (IN).
[
7Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
72/317
Testing and Replaying the Process
This topic provides the expert user with an example showing how to test a workbench.
Remember to save the BktKnowledgeRelations.CATfctand the BktDriver-2D-SAE.CATPartand
BktDriver-2D-EEC.CATPartfiles in CATGraphicPath variable prior to performing this scenario..
1. Open the BktKnowledgeRelations.CATfctfile. Edit the file path of the LoadDocument
behaviors to find the Parts in CATGraphicPath.
Generating the Workbench
2. Click the Generate Applicative Workbenchicon ( ) to generate a user workbenc
Enter the name of the workbench, Knowledge in this example, as well as the workben
type, Product here.
If the expert user wants the end-userto work in a Product structure , heshould select Product in the WorkbenchType scrolling list when generating theworkbench. To know more aboutProduct Structure, see the relateddocumentation.
If the expert user wants the end-userto work in a Part structure , he shouldselect Part in the Workbench Typescrolling list when generating theworkbench. To know more about PartDesign, see the related documentation.
If the expert user wants the end-userto work in a System context , he shouldselect System in the Workbench Typescrolling list when generating theworkbench. To know more aboutSystems, see the Product FunctionalDefinition User's Guide.
72Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktKnowledgeRelations.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver-2D-SAE.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver-2D-EEC.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktKnowledgeRelations.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktKnowledgeRelations.CATfcthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver-2D-EEC.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktDriver-2D-SAE.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktKnowledgeRelations.CATfct -
8/10/2019 bktug
73/317
Testing the Workbench
3. From the Tools->Options-
>Knowledgewaremenu, select Expert
in the Access Rights scrolling list and
click OKto work in an Expert
environment.
The generated workbench displays.
4. Select the document's root product in the specification tree and click the driver check
box to type the root product.
The root product name is now driver (Product1).
5. Right-click driver (product1) and select the driver (Product1) object-
>SelectingManikincommand.
73Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
74/317
To visualize the process, it is recommended to use the technological Specificationsview. To open it, select the root of the specification tree and click the Open the
Technological Specifications Viewwindow icon ( ).
The following box displays:
Click Yes until no Pursue dialog box displays.
The manikin matching the US standard is inserted.
74Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
75/317
6. Double-click the Legislation variable (attribute) located below the driver (Product1)
feature and enter EEC in the opening dialog box.
7. Right-click driver (product1) and select the driver (Product1) object-
>SelectingManikincommand.
8. Click Yesin the opening dialog boxes.
The manikin matching the EEC standard is inserted.
75Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
76/317
o know more about the Operate Function...
operate the behavior, that is to say, to update its inputs and execute it, right-click the behavior in theecification tree and select Operate or Local Update. When operating a behavior in expert mode, the expe
er can select one of the 2 following operating modes:
perate This operate operation is global: It is appto the whole sequence (combination).If the sequence inputs are not updated, toperate operation is applied to the childrbehaviors.If the sequence is already updated, a pawill display asking if you really want toexecute the sequence.
ocalpdate
This operate operation is local, that is to it is applied to the selected behavior. Thebehavior is operated whatever the statusits inputs.If the behavior is already updated, a panwill display asking if you really want toexecute the behavior.
7Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
77/317
Fixing a Problem
en testing a user workbench, you may encounter some problems. To solve them, proceed as follows:
1. From the Tools->Options-
Knowledgeware-
>Business Knowledge
Templatemenu, change
the BKT Access Rights from
All Usersto Expert.
2. Expand the sequential combination seen as failed in the specification tree (or in the specifications
view). Edit the failed behavior ( identified by the icon), modify its inputs to fix the problem.
3. Right-click the behavior and
select Operate to operate
it. In Expert mode, you can
follow up the execution of
the behavior thanks to
warning panels (see graphic
opposite).
4. If the problem is solved and the behavior operates well, open the .CATfct file corresponding to you
workbench, make the corresponding changes and save your file.
Behaviors seen in the user workbench are just instances of those defined in the .CATfct file. For tcorrections made in the user workbench in Expert mode to be saved, the correction should be main the original .CATfct file.
7Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
78/317
5. Go back to your user workbench.
6. From the Tools->Options-Knowledgeware->Business Knowledge Templatemenu, change t
BKT Access Rights from All Users to Expert.
7. Start from an empty document and replay your scenario.
[
78Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
79/317
Intervening when Instantiating Objects
en instantiating objects i.e. adding a type to a V5 feature, the user can execute tasks (create data that used during the process). To do so, the user should define a VB script whose name has the following for
TypeName_Instanciate.CATScript
en instantiating the objects, the script is executed.
Expert mode, before executing the VB Script, the following message displays:
he user selects Yes, the VB script is executed. If the user selects No, it will not be executed.
Note that the VB definition is optional.
[
79Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
80/317
Exploiting the Messages Displayed whenExecuting Behaviors
Expert mode, the messages displayed enable the expert user to follow-up the behaviors execution. Thepert user is asked for confirmation.
r the combination behaviors, the expert user will be prompted to validate the execution of the combinatiernals. The expert user can interrupt the execution whenever he wants. The execution of the behaviors wrt where it stopped when the expert user re-executes the behaviors.
ere are three different types of messages:
This message is the first one todisplayed. It displays when thebehavior is about to be execute
This message is the second onbe displayed. It displays for evbehavior. If contained in acombination, the behaviors exefirst, then the combination (logand sequential combinations)executes.
If the user click no, the executis stopped. To restart theexecution, the Update icon sho
be used.
8Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
81/317
This message is the last one todisplayed. It displays only whemain behaviors are executed owhen behaviors, set to AutoDeare executed. If the user click Ythe behavior will be deleted. Ifuser click No, the behavior will be deleted and is still visible ingraph.
[
8Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
82/317
Managing Execution Errors
e management of execution errors aims at:
Enabling expert and end users to better understand the errors that may occur when operating a behavior. There different errors:
Input Errors made by the expert user when creating a behavior: One of the inputs of a behavior wasincorrectly defined.
Errors made by the end user when using the behavior: The end-user runs a main behavior requiring anobject not yet created.
Warnings: Errors made by the end user when using the behavior: The user cancels the execution of thebehavior. For instance by clicking the Cancel button of an Open file box for the Load behavior.
Execution errors: The LoadDocument behavior enables the user to load a document. If this document doesnot exist, a message is raised indicating that the document is missing.
Enabling expert and end users to fix the problem.
Expert user: Whatever the behavior (main or building blocks of a behavior), he can determine whichbehavior is concerned and can edit or deactivate it.
End user: He can only delete or deactivate the main behaviors (or the visible behaviors.)
Enabling expert and end users to identify the behaviors in error in the specification tree.
Keeping track of the information for the expert user to fix the problems.
tecting Errors
e behaviors that are in error display with a in the specification tree. When an error occurs when executing theplication, the following panel displays:
The Behavior column lists the behavior(s) that are in error.
The Diagnosis column describes the reason why the behavior cannot be executed (An object variable cannot bevaluated).
82Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
83/317
The Documentation field helps the user fix the problem. He can edit the behavior and modify its inputs beforelaunching its execution, or he can deactivate the behavior.
e information about each error is saved at the level of each feature and can therefore be displayed by editing thehavior. An information field is added to these behaviors (see graphic below) listing the information.
e information provided depends on the User type (expert user, administrator, or end user). In User mode, if an erurs on a main behavior or on an invisible behavior, the error is displayed and stored on this main behavior.
Using the Error Check Tool
[
83Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
84/317
Using the Error Check Tool
s tool is designed to check that the physical name of the created type (technological object) does not alreast in one of the .Catfct files located in the CATGraphic path.
The Available Catalogsfield lists the .CATfct files located in the CATGraphic path.
The Selected catalogs field lists the .CATfct files that you selected using the arrow key.
The Generate reportbutton enables you to generate a report listing the detected identical type namClicking this icon opens a Save asdialog box. Two file formats are available:
.xml (the default format) or
.html
case of error, the .xml or .html file indicates the types names that are identical and the files containing thees (see graphic below.)
84Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
85/317
Working with a User Workbench
Getting Familiar with the End-User Workbench
Executing Behaviors
Editing Behaviors
[
85Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
86/317
Getting Familiar with the End-User Workbench
Accessing your Workbench
Using the technological Specifications View
Activating your Workbench
Instantiating Objects
Linking Behaviors to the Objects
Operating Behaviors
cessing your Workbench
can access the workbench from the Start->Name_of_the_workbench menu. Workbenches generated using the BKT applicatio
ted at the top of the Startmenu.
kbenches generated using the BKT application are similar to the other CATIA workbenches:
The toolbar dedicated to the workbench is located in the right part of the window
The standard toolbar is located in the bottom of the window
The menu bar is similar to the standard CATIA menu bars (see graphic below).
8Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
87/317
Note that the menu bar displayed at the top of the window depends on the Workbench type selected (Product, Part, or Syby the Expert User when generating the workbench.
ng the technological Specifications View
ccess the Technological Specifications View window, select one object in the specification tree and click theOpen the Technolog
cifications Viewwindow icon ( ) in the Behavior Controls toolbar.
This window enables you to get a simplifview of the specifications tree. Whereas specification tree, you can visualize:
The products
The types and their sub-types,
The variables (attributes)
The behaviors
The links between the objects.
8Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
88/317
the Technological Specifications View, you can visualize:
The types
The variables (attributes)
The behaviors
sting links between the objects are not displayed in this view, the objects are independent from each other.
It is recommended to use this view when working with big assemblies to get a simplified overview of the specification tr
ivating your Workbench
en opening your application, the toolbar specific to your workbench is grayed out meaning that it is disabled (see the picture abov
vate your toolbar, select the root product in the specification tree and click the icon to initialize the assembly context in thected product: The toolbar is enabled and you can start instantiating your objects.
tantiating Objects
nitialize the process and to create your first object, click one of the icons in your workbench toolbar, then select the root product cification tree to assign it the corresponding object type. The name of the root product changes accordingly. Each icon of your woesponds to one object type. To see how to use objects, see Executing Behaviors.
king Behaviors to the Objects
88Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
89/317
objects are assigned behaviors. To access these behaviors, right-click the root product and select the command from the contextnu. To see how to execute behaviors, see Executing Behaviors.
he picture below, IndirectVision is provided with 4 behaviors:
Define vehicle data
Define driver
Define external mirror
Define target.
Note that:
The first 8 commands are standard CATIAcommands.
You access the behaviors by selecting theName_of_Objectobject command.
Available menus
Definition...: Enables you to access theAttributes tab where you can add, modify, delete variables (attributes) values. To knomore, see Editing Behaviors.
Define vehicle data:Behavior defined by expert user, specific to this object enablingto select a vehicle and to insert it into theProduct.
Once a behavior is executed, its name is prefixed with "Control" in the contextual menu(see picture opposite). If you want to re-execute the behavior:
A Control Behavior Activity dialog box displays asking if you want to delete thebehavior if it executed correctlywhen first executing it.
The Behavior re-executes if it failedwhen you first executed it. It restarts where itfailed.
erating Behaviors
r editing a behavior, you may want to re-operate your behaviors. The Operate function enables you to update your features and cute your behaviors. To do so, you can:
Click the Operate icon in the Behavior Controls toolbar.
89Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/images/bktUserUserWorkbench3NLS.gif -
8/10/2019 bktug
90/317
- Or -
Right-click the object in the specification tree and select theOperate->Operate command.
et an example, see Editing Behaviors.
To know how to use your workbench, contact the expert user who generated it.
Executing Behaviors
Editing Behaviors
[
9Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
91/317
-
8/10/2019 bktug
92/317
root product.
5. Define the type and load the vehicle. To do so proceed as follows:
Right-click the IndirectVision (Product1) object in the tree and select the IndirectVision(Product1) object->Define vehicle datacommand. The file selection window displays.
Select the BktVehicleData.CATPartand click OKto validate. The vehicle is loaded. Its type
is "Vehicle".
Instantiating the Driver
6. Instantiate the driver. To do so proceed as follows:
Right-click the IndirectVision (Product1) object in the tree and select the IndirectVision(Product1) object->Define drivercommand. The Catalog browser displays.
In the catalog browser, select Driver-2D-95%-Male. The behavior instantiates the selecteddriver. Click Yesin the Save As dialog box.
Note that if you do not have a e:\tmp file, you will need to edit the path in theBktSaveLastPart.CATScript.
92Pageusiness Process Knowledge Template Version 5 Release 12
http://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktVehicleData.CATParthttp://e%7C/www/meidocr12/Doc/online/bktug_C2/samples/BktVehicleData.CATPart -
8/10/2019 bktug
93/317
Instantiating the Target
7. Instantiate the target. To do so, proceed as follows:
Right-click the IndirectVision (Product1) object in the tree and select the
IndirectVision (Product1) object->Define targetcommand.
In the Catalog browser, double-click Target and TargetTemplate. The target is
instantiated.
Click Fit allinto see the target created (see picture below.)
93Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
94/317
Editing Behaviors
This task explains to the end-user how to edit behavior variable (attributes).
This scenario is extracted from the end-user use case Designing the External Mirror.
To edit a behavior variable (attribute), proceed as follows:
Right-click the object and select the Object_Nameobject->Definition...command.
Double-click the variable (attribute) to be modified. The Attribute dialog box displays.
Edit the value of the variable (attribute). Click OKtwice to validate and to exit theAttribute dialog box.
Update the behavior by clicking the icon or by right-clicking the object in thespecification tree and selecting the Operate->Operatecommand. (See steps 7 and 9.)
- Or -
Select an object in the
specification tree andexpand its attributesnode.
Double-click thevariable (attribute) tobe edited. The Editparameter dialog boxdisplays.
Change the parametervalue and click OKto
validate.
94Pageusiness Process Knowledge Template Version 5 Release 12
-
8/10/2019 bktug
95/317
Starting the RearViewMirror Workbench
1. Open Catia and close th