Hi guys😊,
I have a message box that pops up with warnings of things to do after closing an assembly (triggered after closing).
The problem is that it pops up for all assemblies inside the top assembly.
I only want it to pop up for the top assembly.
Solved! Go to Solution.
Solved by Andrii_Humeniuk. Go to Solution.
Hi @madstrolle . You can add a document check to see if it is an active document. Here is an example of such a check:
Dim oDoc As Document = ThisDoc.Document
If oDoc Is ThisApplication.ActiveDocument Then
MessageBox.Show(oDoc.DisplayName & " - is active document!")
End if
ThisDoc.Document - receives the document in which the rule is executed;
ThisApplication.ActiveDocument - receives an active document;
All you have to do is compare these 2 documents using the IS operator.
Andrii Humeniuk - Leading design engineer
LinkedIn | My free Inventor Addin | My Repositories
Did you find this reply helpful ? If so please use the Accept as Solution/Like.
Can't find what you're looking for? Ask the community or share your knowledge.