Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

disable an option in a Form in iLogic

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
1500 Views, 3 Replies

disable an option in a Form in iLogic

Hi everybody,

I have created a form in iLogic environment. When from Form one option of the “Cabintype” is selected, the last line must be disabled (photo 13).

How can I do it?

Thanks

 

3 REPLIES 3
Message 2 of 4
JelteDeJong
in reply to: Anonymous

hi,

you can do this by adding a "True/False" parameter (for example A2CabinSetter)

createparameter.png

 

 

 

 

 

and creating a iLogirule to set that parameter.

if (CabineType = "Type A") then
   A2CabinSetter= False
else
   A2CabinSetter= True
end if

when that is setup edit your forum and edit the "Enabeling parameter name" field. set this to the "True/False" parameter. (in my example "A2CabinSetter"). Then it should work.

set enableing name.png

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 4
Anonymous
in reply to: JelteDeJong

Hi,

if you check the photo, the parameter (for example A2CabinSetter) has been defined as Numeric.

Imagine I have 2 choices in the Form for Cabintype: A and B.

there is a Parameter C (this is a Numeric value).

When I choose A, it must be possible to enter a number for C. But when I choose B, the C must be disabled and I can not enter a number in the box.

It is not possible to define Numeric and True/False for C AT THE SAME TIME.

thanks

Message 4 of 4
JelteDeJong
in reply to: Anonymous

Hi,

i did not want to suggest that you made a parameter "Numeric" and "True/False". I tryed to show that you can make an extra parameter "D" that is of the type "True/False". That parameter can be used to disable and enable the text box of parameter "C" (the "Numeric" parameter)

I have a added an example. (it has been created with inventor 2018)

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report