Fond farewell to GRIP, hello Knowledge Fusion
Fond farewell to GRIP, hello Knowledge Fusion
(OP)
The time has finally happened when I must leave my friendly world of GRIP and migrate to KF.
I am now staring from scratch and teaching myself!!!! (Again)
The online documentation does not initially seam as good as GRIP with no worked examples & very little in the way of example code or explanations.
So I am starting simple (always the best way I have found)
I have thus created a simple block which is inserted via UI menu, changes size, colour, position etc.
The next thing I tried was to create some KF which would let me select an existing spine and insert a predefined number of points on it....... I am absolutely stumped!!!
Does anyone have the time to create me a quick example, or have something similar so that I can learn from some existing code? Or anything which would help me make sense of this strange new language?
Cheers in advance.
Pondering with a headache.....
I am now staring from scratch and teaching myself!!!! (Again)
The online documentation does not initially seam as good as GRIP with no worked examples & very little in the way of example code or explanations.
So I am starting simple (always the best way I have found)
I have thus created a simple block which is inserted via UI menu, changes size, colour, position etc.
The next thing I tried was to create some KF which would let me select an existing spine and insert a predefined number of points on it....... I am absolutely stumped!!!
Does anyone have the time to create me a quick example, or have something similar so that I can learn from some existing code? Or anything which would help me make sense of this strange new language?
Cheers in advance.
Pondering with a headache.....





RE: Fond farewell to GRIP, hello Knowledge Fusion
RE: Fond farewell to GRIP, hello Knowledge Fusion
#! UG/KBE 17.0
DefClass: singleSelection (ug_base_part);
# Function: SingleSelection Example
# -----ALLOW USER TO EDIT VIA TOOLBAR/MENU-----------
(Name) APPLY_STATE: Edit;
(String) APPLY_NAME: "singleSelection";
(list parameter) singleSelection_LIST: {"1.3", "2.3", "3", "5.8"};
(string parameter) singleSelection: "0";
(string) selected: singleSelection:;
(number) convertedValue: MakeNumber(singleSelection:);
This is a simple example of a KF application with a UI/Styler dialog. You'll need to create the UI/Styler dialog since I can't attach it here.
NX has a KF IDE called ICE, I think it is in NX4 maybe NX5.
To select one item from KF that can only be a curve or edge use:
(List Parameter) Sel1: {};
(List) Sel1_Mode: {Single};
(List) Sel1_Mask: { Curve, Edge};
Attach this to a button in a UI/Styler by:
creating a button with a name of Sel1, set the entire dialog callback to REFRESH.
-Dave
http://plmwiki.com
http://groups.google.com/group/NX_CAX/