Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fond farewell to GRIP, hello Knowledge Fusion

Status
Not open for further replies.

Pondering

Aerospace
May 25, 2006
23
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.....
 
Replies continue below

Recommended for you

just want to throw in a second - some worked examples and generally more complete (any?) documentation would be very useful (necesary?) to learn KF...
 
This is just a simple example on how to get started with the structure.

#! 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor