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 global form active deactive or open and close

8 REPLIES 8
Reply
Message 1 of 9
anilkumar279
1814 Views, 8 Replies

ilogic global form active deactive or open and close

Hi,

I have a global form having many ilogic rule linked.


Working of Global form

 

1.Open assembly by clicking in global form

*then I have to close global form and again open to activate rules and other values of assembly

2. open drawing by clicking in global form

*then again I have to close global form and again open to activate rules and other values of assembly

so and so.....

 

is there any ilogic rule or something that i can add in rules so that I can avoid closing and opening global form again and again?

8 REPLIES 8
Message 2 of 9

Hello,

 

 

Have you used Event Triggers before?

 

You can use Event Triggers to trigger a rule when opening a document.

 

On the manage tab, you will see Event Triggers. In the iLogic section.

 

Once selected Event Triggers, select the trigger you want, in your case after open document, click select rules, then select the rules you want.

 

Then when you open a .ipt it will run these rules.

 

I have not used Global Forms a lot.

 

But this could be something that could work for you?

 

Hope this hepls?

 

Thomas.



Thomas Savage

Design Engineer


Message 3 of 9

sorry, it will  not work for me.
I need something with ilogic rule externally operated.

 

Thank you,

 

Message 4 of 9
JaneFan
in reply to: anilkumar279

Hey @anilkumar279

 

You want the global iLogic form to be closed without user's manually operation after some certain rule be run, right? I didn't find a way in iLogic to close iLogicForm without manually operation, perhaps using spy tool to catch iLogic form ID and closing it using windows API is doable. 




Jane Fan
Inventor QA Engineer
Message 5 of 9
anilkumar279
in reply to: JaneFan

Hi,
is there anything from which global from can get vaules from latest open part or assembly

 

right now i have a external rule which open 

SyntaxEditor Code Snippet

ThisApplication.Documents.Open("C:\temp\assembly-A.iam",True)

  after opening assembly-A.iam global form not taking parameter from assembly-A. (it takes vaule from assembly or part from which i have opened)

 

Thank you,

Message 6 of 9
JaneFan
in reply to: anilkumar279

Hello, 

 

Sorry that there isn't a workaround for this issue for now. It has been tracked in the issues system. Thank you for reporting.




Jane Fan
Inventor QA Engineer
Message 7 of 9
dusan.naus.trz
in reply to: JaneFan

Hi,

6 versions have already passed if I count 2023 and the solution is nowhere. When will the solution be?

Message 8 of 9
petr.meduna
in reply to: anilkumar279

Write down iLogicForm.ShowGlobal("Your Form") at the end of your rule that opens assembly, drawing, etc. Then open xml file of your form in UI folder, find there your rule and add 'CloseAnd' to rule button behavior.

 

<RuleName>OPEN_RULE</RuleName>
<RuleButtonBehavior>CloseAndRunRule</RuleButtonBehavior>
<Path>OPEN_RULE.iLogicVb</Path>

Message 9 of 9
Covello_O
in reply to: petr.meduna

i tried and it works for me now.
Many thanks this is very helpful

cheers

 

no sorry it doesen't work☹️

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

Post to forums  

Autodesk Design & Make Report