ilogic form trigger

ilogic form trigger

Anonymous
Not applicable
2,005 Views
3 Replies
Message 1 of 4

ilogic form trigger

Anonymous
Not applicable

I have a ipt which is controlled via an ilogic form,this form is opened by ilogic code, which in turn is triggered when the ipt is opened.

my problem is when the part is placed within an assembly the said form is triggered and the same happens when the assembly is reopened!.... I would prefer if the form opened only when the ipt is opened or edited.... 

Is there a snippet of code for this? Or is it even possible?

0 Likes
Accepted solutions (1)
2,006 Views
3 Replies
Replies (3)
Message 2 of 4

MegaJerk
Collaborator
Collaborator
Accepted solution

Try the following code in the rule file that is being opened on open : 

 

Dim CurrentDoc as PartDocument = ThisDoc.Document  
If (Not (CurrentDoc Is ThisApplication.ActiveDocument)) Then Return


If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
Message 3 of 4

Anonymous
Not applicable

Works at treat, thanks MegaJerk. 🙂

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hello, I came across this post and tried using the code in the solution. I still have problems at the assembly level, when I reopen the assembly all my forms will come up again. I have the event trigger set (in the iLogic part) to when the document opens the form will appear. but I would like to have it only appear once upon initial placement of the iLogic part.

0 Likes