Would this be possible? If it is, i would like to be able to choose event triggers for certain rules based on the user type. Some users here dont know what from what sometimes, and a friendly message before they close the document like "did you check this?" would be really nice.
If (ThisDoc.Document.DocumentType <> kDrawingDocumentObject) Then Return IF ThisApplication.GeneralOptions.Username = username1 Then
XXXXXXXXXXXXXXXXXXX
Else IF
XXXXXXXXXXXXXXXXXXX
End IF
Solved! Go to Solution.
Solved by Curtis_Waguespack. Go to Solution.
Hi m.teleguz1,
I think what you have is very close, but here's a working example. This rule checks to see if the file is not a drawing file, if it is a drawing, then it looks to see if the username matches my username: "CurtisW". So if it is me, then the rule ends, if it is not me, then the rule passes the reminder message to the user.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
oUserName = ThisApplication.GeneralOptions.Username If (ThisDoc.Document.DocumentType <> kDrawingDocumentObject) Then Return Else If oUserName <> "CurtisW" Then MessageBox.Show("Hey " & oUserName & " don't for get to ____________!", "iLogic") End If End If
I can have some FUN with that one 🙂
This is great!
oUserName = ThisApplication.GeneralOptions.Username If (ThisDoc.Document.DocumentType <> kDrawingDocumentObject) Then Return Else If oUserName <> "TELEGUM" Then MessageBox.Show("Hey " & oUserName & " don't for get to ____________!", "iLogic") iLogicVb.RunExternalRule("G:\Drawings\testrule1.iLogicVb") End If End If
I can run rules too!
Thanks!