Please enable JavaScript to view this site.

Knowledge Bridge Documentation

Help version: 3.3.8

Navigation: Reference  > K4 BaseLibrary Designs > UIDeleteModelRuleButton

UIDeleteModelRuleButton Discussion

Scroll Prev Top Next More

Description

When you run your model in the user interface the user will be supplying values to your designs. These values can be viewed in kBridkge in the 'Model' tab.

 

With the UIDeleteModelRuleButton you can tell it which model rule value that you would like to delete. This will cause the model rule value to resort to its

default value.

Parameter Rules

ownerRefChain: The reference chain of the model that the rule was create on.        
Example:R.rootModel.MyCone.refchain;

 

ruleName:The name of the model rule that you want to delete its value and have its value return to its default value.                
Example:'height'

 

Mixins

UIButtonMixin

UIControlMixin

UiStyleMixin

BaseNode

BaseModel

 

RULE NAME

TYPE

DEFAULTS

CATEGORY

FLAGS

ownerRefChain

string

""

Inputs

Cached
Parameter

ruleName

string

""

Inputs

Cached
Parameter

 

 

 

kBridgeExampleIcon

 

 

Project Example:

In your kBridge Examples Projects folder open the project called ‘MyTable’.

Reference Location:

“world.mytable.tableui.tableui0.inputscontainer.inputscontainer0.contentfieldset.contentfieldset0.contentpanel.contentpanel0.myblockuipopup.leftpanel.popupcontrol.coneheightrestore”

Link: https://knowledgebridge.engineer/projects

 

Open the MyTable project.

Press the UI start icon to start the User Interface.

 

UIDeleteModelRuleButton0

 

 

 

Select the 'Test1' from the radiobuttons at the top of the screen.

 

UIDeleteModelRuleButton1

 

 

 

In the Graphics window, right click on the Cone and a UIDialog menu will pop-up. Set the Height: 8 and the radius: 3.

Click OK.

 

 

UIDeleteModelRuleMenuItem1

 

 

Towards the bottom of the screen select the 'Cone Height Restore' and the 'Cone Width Restore' buttons .

 

UIDeleteModelRuleMenuItem2

The cone was re-sized to its default height and radius values.

 

UIDeleteModelRuleMenuItem3

 

 

 

 

Knowledge Bridge from Engingeering Intent is a full-featured engineering and sales automation environment