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: 

iLogic to close/hide an open form

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
Heatnix
9847 Views, 9 Replies

iLogic to close/hide an open form

Hi!

 

I'm wondering if there is a way to either close or hide an open form with iLogic? Something like the opposite of iLogicForm.Show.

 

 / Peter

9 REPLIES 9
Message 2 of 10
mrattray
in reply to: Heatnix

The VBA method for closing a form is .Hide, but this seems to not work in iLogic. This is a good example of why we need an object browser for iLogic.
Mike (not Matt) Rattray

Message 3 of 10
Carthik_Babu
in reply to: Heatnix

Hi,

 

Hope you have got answer for the same. Just answering, so that some one can use this method.

 

There is no direct method to hide form by ilogic as said by Mr.Mike. Behalf of that you can use the rule as button to hide the form by choosing option "Close and Run the rule"

 

and in that rule you can trigger show form

 

Hide and Show Form.png

Carthik Babu M.S, Asst Manager - Machine Building,
Gabriel India Ltd,Hosur, TN, INDIA
Email:carthik_ms@yahoo.co.in ,
https://grabcad.com/carthik-1/projects
"May all beings be happy" http://www.dhamma.org/
Message 4 of 10

 @Carthik_Babu   I'm trying to find this  "on click action" in my form builder, because I want to close my form before the ilogic rule closes my open document. I just can't find  this option or else I misundersstand this solution.

Message 5 of 10

@JorisSteurs1246

 

THis posting is 2 years old and the contact you are using may no longer be monitoring this forum.  I would recommend creating a new posting...

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Message 6 of 10
Carthik_Babu
in reply to: Heatnix

U can use the rule as button...and u should set action as shown in the above image Post...in the rule....u can do some operation like ilogicForm.show or run any codes....editor has the option for click behavior....
Carthik Babu M.S, Asst Manager - Machine Building,
Gabriel India Ltd,Hosur, TN, INDIA
Email:carthik_ms@yahoo.co.in ,
https://grabcad.com/carthik-1/projects
"May all beings be happy" http://www.dhamma.org/
Message 7 of 10
j.supersaxo
in reply to: Carthik_Babu

Hi

In my form builder (Inventor 2016), the above options are not showed.

All I can choos under behavior is the name of the parameter to activate/desactivates this button.

Is this a version problem?

 

Thanks

Message 8 of 10
johnsonshiue
in reply to: j.supersaxo

Hi! I could be wrong but the option is only available if you have a rule and you are trying to define a new form. If you select the rule in the form dialog, you will see the option in the panel at the bottom.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 9 of 10
j.supersaxo
in reply to: johnsonshiue

Hi, thanks for your answer.

I tried it again and found out, that these options are only available for document rules but not for global rules.

Anyways, I found a solution for the problem here:

https://forums.autodesk.com/t5/inventor-customization/ilogic-forms-why-no-quot-on-click-action-quot-...

Message 10 of 10
Yijiang.Cai
in reply to: Heatnix

This has been implemented within Autodesk Inventor 2024. Please review the Inventor 2024 What's New article here. For more information regarding how you may leverage the feature, and please review this page. Thanks!

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com

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

Post to forums  

Autodesk Design & Make Report