Create Pop Up Dialog When Placing Assembly Into Another Higher Level Assembly

Create Pop Up Dialog When Placing Assembly Into Another Higher Level Assembly

jamesmTKN9N
Participant Participant
115 Views
1 Reply
Message 1 of 2

Create Pop Up Dialog When Placing Assembly Into Another Higher Level Assembly

jamesmTKN9N
Participant
Participant

I have an assembly (lets call it assembly 1) that has some iLogic and need to be used in a specific way in order for it to properly work in higher level assemblies. I would like to have a pop up dialog with some information on how to use the assembly when placing it into another higher level assembly (lets call it assembly 2). Is there a way to utilize iLogic or any other feature in Inventor to do this?

 

For example: I place assembly 1 from the vault into assembly 2, automatically a window pops up with a message including instructions on how to use the assembly with an "okay" button to close the dialog window. 

 

Also, is there a way to include these instructions within the assembly 1 file that is easily accessible and is not part of the description that could be referred to later on, rather than just seeing the dialog box and then forgetting a few moments later?

0 Likes
116 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor

You can add this iLogic rule to your assembly:

 Dim activeDocName As String = ThisApplication.ActiveDocument.FullFileName
 Dim thisDocName As String = ThisDoc.Document.FullFileName
  
 If (activeDocName <> thisDocName) Then
     MsgBox("Some information about how to use this assembly here.")
 End If 

 It will detect if the rule is run from another assembly than itself. 
However, triggering the rule is the hard part, and I don't have a good solution for that. You could add it to the before-save triggers. In that case, the message will be shown each time the assembly is placed in another assembly and is saved. And each time after that that you save. 

JelteDeJong_1-1749325579957.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

0 Likes