Professional Documents
Culture Documents
Introduction
Key Characteristics
Interpreted
Object oriented
Multi-inheritance; polymorphism
Declarative rather than procedural
Rules can appear in any order
Knowledge Fusion determines the order in which the rules are evaluated
Analogous to Spreadsheet
Source File
DFA files
Source code for user defined classes and functions
File extension is .dfa
Every NX2 DFA start with
#! UGNX/KF 2.0
Single Line Comments #
# Rest of line is a comment
Multi-Line Comments
Starts with #+
Ends with #-
After editing a DFA file while UG is running, the updated
definition needs to be reloaded
Class
Object
(Child) block_1:
{
List of Parameter Class, ug_block;
Name and Value height, door_height:;
pairs width, door_width:;
};
Semicolons
or comas
Parameter names
Parameter values
(No colons)
Attribute
Attribute Syntax
Required Space
Type Example
Integer 22
Number 3.14
Point X,Y,Z coordinates
Vector I,J,K direction
List { 12, 3.14, Test }
Frame Is a KF coordinate system
Boolean True or False
String Example
Instance Instance of any class
Name ug_block
Maxium
Minimum
Behavioral Flags
Hidden Classes/Attributes
Hidden Classes
If the a class name starts with a %, it will not appear in the KF
Navigator
Use this to hide classes from the user that are not supposed to
be instantiated manually
Hidden Attributes
An attribute name starting with a % will not appear in the KF
Navigator, unless the attribute is created interactively using the
KF Navigator
Attribute Referencing
KF Toolbar
Applications KF Debug
KF Navigator
Preferences
C:\KF_Library\dfa\debug
C:\KF_Library\dfa\Design
C:\KF_Library\dfa\CAM
UGII_KF_CLASS_DIR
Dont change!!! Its for system classes
UGII_KF_USER_CLASS_DIR
Where system looks for customer created DFA files.
Path entries separated by a colon (UNIX) or semi-colon (WNT)
To take effect, must set the following entry in ug_metric.def or ug_english.def
UG_kf_modifiable_search_directories: no
UGII_USER_DIR or UGII_SITE_DIR
Point to a directory with four sub-directories:
dfa, application, udo, and startup
application sub-folder is where system looks for Open API dynamic linked library files
UGII_LIB_PATH
Where system looks for Open API dynamic linked library files
UGII_KF_DOC_DIR / UGII_KF_DOC_URL
Where system looks for documents for customer created classes
Examples:
UGII_KF_DOC_DIR = D:\kf_docs\%s.txt
UGII_KF_DOC_URL = http://doc_server/kf_docs/%s.html
Custom_dirs.dat