iLogic "Parameter box"

iLogic "Parameter box"

Cosmin_V
Advocate Advocate
694 Views
1 Reply
Message 1 of 2

iLogic "Parameter box"

Cosmin_V
Advocate
Advocate

Hello

I have an iLogic tool on which I have create a lot of "User Parameters". In some situation some of them are "Off" and noting else can be selected instead of "Off".

Can I do some how, this Parameters which ar "Off" to be hide from the "Parameter box" instead of have 4 on "Off"

Is not there a rule whit which I can turn Off the Key?

 

Param.jpg

0 Likes
Accepted solutions (1)
695 Views
1 Reply
Reply (1)
Message 2 of 2

philip1009
Advisor
Advisor
Accepted solution

Here's a sample rule that will toggle the Parameter Key box of "Inlet" based on the text value:

 

colUserParams = ThisDoc.Document.ComponentDefinition.Parameters.UserParameters
objParamInlet = colUserParams.Item("Inlet")
If objParamInlet.Value = "Off" Then
	objParamInlet.IsKey = False
Else
	objParamInlet.IsKey = True
End If

 

After putting in the rule, go to Manage > iLogic > Event Triggers and set the rule under Any Model Parameter Change.  As the name implies, every time something changes in the parameter table that rule will be run automatically.

 

Event Triggers_edited.jpg

 

P.S. Any questions related to iLogic, VBA, or Add-Ins are better suited for the Inventor Customization forum.