Adaptable iLogic form?

Adaptable iLogic form?

Anonymous
Not applicable
2,475 Views
8 Replies
Message 1 of 9

Adaptable iLogic form?

Anonymous
Not applicable

Hi, 

 

Just another question im having amongst the hundreds of others I have as I am the only user of Inventor here and have nowhere to turn for help..

 

I have almost completed an entirely adaptable template for one of our products and I have been updating a form along the way. Out of all of the options to pick from in the form, I have realized that certain selections are entirely uneccesary IF i have chosen other specific options. 

 

I am wondering if there is a way, possibly through just another iLogic rule, that I can hide some options in my form IF other options have been selected.

 

Thanks

Sandro

0 Likes
Accepted solutions (1)
2,476 Views
8 Replies
Replies (8)
Message 2 of 9

ampster40
Advisor
Advisor
You mentioned "updating a form" or working with "a form". If that form is a linked excel spreadsheet, there are options within Excel that can make cells hide/unhide depending on data entered elsewhere within the spreadsheet. Sorry I do not know how that's done but I recall working with a spreadsheet linked to an Inventor model yrs ago that would do just that.
0 Likes
Message 3 of 9

Anonymous
Not applicable
thanks for the reply but not sorry it is not linked to an excel spreadsheet.
to be honest with you that sounds like adding a whole new aspect to Inventor that im not prepared for at the moment considering I am having so many issues already...

Thanks
Sandro
0 Likes
Message 4 of 9

cwhetten
Advisor
Advisor

It's not really possible to auto-hide elements of your form, but you can inactivate certain things.

 

What version of Inventor are you using?  The easiest way to demonstrate what I am talking about is to post an example file, but if you are using an older version than me, it would be a waste of time.

 

Cameron Whetten
Inventor 2016

0 Likes
Message 5 of 9

Anonymous
Not applicable
Cam,

Im very happy to see you responding to this!

I am using 2016 basic.

0 Likes
Message 6 of 9

cwhetten
Advisor
Advisor
Accepted solution

Most form entities have a property called "Enabling Parameter Name".  This is used to select a boolean (true/false) parameter, and if the enabling parameter is True, the form entity is active.  If it is false, the entity is disabled--it grays out and does not accept input.

 

Form enabling parameter.png

 

Attached is a 2016 file with a form in it.  I have set up two parameters that control the enabled state of the rest of the form.  Change the Overall Spacing (from something below 0.75 to something above 0.75) to enable/disable the WIDTH parameter.  Change the Color to enable/disable all of the entities inside the collapsible Group 1.

 

Most of the time, you want to enable/disable form elements based on existing parameters that are not boolean (such as the Overall Spacing and Color parameters in my example).  But, you must have boolean parameters to control the form elements.  So, as in the attached example, you can set up an iLogic rule that translates your non-boolean input parameters into True/False values that the form can use.

 

I created two boolean parameters specifically to control form entity activity:  fpOverallSpacing and fpGroup1Color.  I name them with fp so I know they are form parameters.  I then created a rule that has Select Case and If Then statements to set the values of my booleans.

 

Take a look at it and see if what I've described makes sense.  Post back if you have any questions.

 

Cameron Whetten
Inventor 2016

Message 7 of 9

Anonymous
Not applicable

Cam, 

 

This is perfect!

 

I have not applied this to my own assembly yet but after looking at your attachment I can see exactly what you are talking about. 

 

This is going to be quite a bit of work for my assembly unfortunately but this is exactly what I was looking for. I knew there would be a way.

 

I can not thank you enough. Also Thanks for replying to my other post, I will look at that when I have the time tomorrow!

 

Thanks

Sandro

0 Likes
Message 8 of 9

Anonymous
Not applicable

Is there a way to get this working with the predefined buttons are set to OK Cancel Apply  ?

I want to wait until the form has been completed before applying updates to the model, but this means the rule controlling my boolean parameters only runs after applying updates.

0 Likes
Message 9 of 9

tracey
Enthusiast
Enthusiast

Hi, this is just what I need but cannot open your file (Inventor 2013 today)  Could you post the code of your rules.  I have use this:

 

 

If Frame_Width = 750
Breaker_List= True
Breaker_List1=False
Breaker_List2=False
End If
If Frame_Width = 950
Breaker_List= False
Breaker_List1=True
Breaker_List2=False
End If
If Frame_Width = 1150
Breaker_List= False
Breaker_List1=False
Breaker_List2=True
End If

But as these are Boolean, they don't appear in my enabling parameter list.

Many thanks

Tracey

 

0 Likes