![](../icons_C2/common/ascenari.gif) |
Create and Instantiate a User Feature Using the
White Box Mode
![](../icons_C2/common/ainfo_custo.gif) |
![](images/pktwhitebox1NLS.gif) |
The White Box mode enables you to
visualize what is inside the User Feature instance when the
instantiation is not what you expected. The internals of the
User Feature are visible in the tree but they are considered as
private elements. It is important that you:
- Do not try to modify the internals (after instantiation) by
double-clicking them, using the Formula editor.... Error messages
are designed to help you understand the error update.
- Do not use the internals (to construct geometry for example).
|
-
Expand the KnowledgeTemplates node and double-click Pad2
to open the Userfeature Definition dialog box.
-
Click the Properties tab and select White
Box in the Mode combo box.
-
Click OK when done.
-
Save your file but do not close it.
-
Open the
PktForInstantiation.CATPart file.
-
Click the Instantiate From Selection icon ( )
and from the Window menu, access the PktcreateaUDF.CATPart
file. A dialog box is displayed:
-
Click OK. Click Point.2, Point.3 and Draft.1
in the geometry and click OK. The User Feature is
instantiated. Expand the User Feature (Pad2.1) node in the specification
tree. The User Feature internals are displayed. Close
PktForInstantiation.CATPart without saving it.
Create and Instantiate a User Feature Using the
Black Box Mode
![](../icons_C2/common/ainfo_custo.gif) |
![](images/pktblackbox1NLS.gif) |
The Black Box mode is the standard mode.
It simplifies the user view, and limits the exposition of the User
Feature internals. |
-
In the PKtcreatedUDF.CATPart file, expand the
KnowledgeTemplates node and double-click Pad2 to open the Userfeature
Definition dialog box.
-
Click the Properties tab and select Black
Box in the Mode combo box.
-
Click OK when done. Save your file but do not
close it.
-
Open the
PktForInstantiation.CATPart file.
-
Click the Instantiate From Selection icon ( )
and from the Window menu, access the PktcreatedUDF.CATPart
file.
-
Click Point.2, Point.3 and Draft.1 in the geometry and
click OK. The User Feature is instantiated.
-
Click the instantiated User Feature (Pad2.1) in the
specification tree and click the UDF Debug icon ( ).
A warning message is displayed:
-
Click OK. The Pad2.1 node expands and the
User Feature internals are displayed.
Create and Instantiate a User Feature Using the
Black Box Protected Mode
![](../icons_C2/common/ainfo_custo.gif) |
![](images/pktblackboxprotected1NLS.gif) |
The Black Box Protected mode ensures a
locked view of the User Features thus ensuring secure exchanges. |
-
In the PKtcreatedUDF.CATPart file, expand the
KnowledgeTemplates node and double-click Pad2 to open the Userfeature
Definition dialog box.
-
Click the Properties tab and select Black
Box Protected in the Mode combo box. A dialog box is
displayed informing you that after clicking Yes, you will not
be able to access the User Feature internals. click Yes.
-
Click OK when done. Save your file but do not
close it.
-
Open the
PktForInstantiation.CATPart file.
-
Click the Instantiate From Selection icon ( )
and from the Window menu, access the PktcreateaUDF.CATPart
file.
-
Click Point.2, Point.3 and Draft.1 in the geometry and
click OK. The User Feature is instantiated.
-
Click the instantiated User Feature (Pad2.1) in the
specification tree and click the UDF Debug icon ( ).
A dialog box is displayed informing you that you cannot display the
internals of the User Feature.
See also: Using the
Parent/Children Debug Command. |