Revision Reminder

Revision Reminder

Anonymous
Not applicable
386 Views
2 Replies
Message 1 of 3

Revision Reminder

Anonymous
Not applicable

Hi,

 

I am looking for the iLogic code that would remind me on save if i forgott to populate revision number in Iproperties.(Blank revision property = massage box?)

I would like to implement this  rule in my template ( parts and assemblies).

 

Thanks

 

Ok guys I have gound the code that working perfect:

'start of iLogic Code-----------------------------
'declare variables
'get the user name from the Inventor Options
myName= ThisApplication.GeneralOptions.UserName

'get the iProperty Description Field
Revision = iProperties.Value("Project", "Revision Number")

'create a message for the user
mymessage = (myname & ",  you forgot to fill out the Revision property again.")

'check the iProperty Description Field to see if it is empty
If Revision = "" Then

'display a message box
MessageBox.Show(mymessage, "Revision Reminder")
End If
'end of iLogic Code-----------------------------

 

0 Likes
Accepted solutions (1)
387 Views
2 Replies
Replies (2)
Message 2 of 3

humbertogo
Advocate
Advocate

Check for empty Properties with before save event

Message 3 of 3

yvandelafontaine
Advocate
Advocate
Accepted solution

An even Easier and faster way of doing this would be to create a form in your template called "REV_REMINDER"

in it drag your revision field from properties tab.

 

then change your code to this:

 

'Start of iLogic Code---------------------------

If Revision = "" Then
iLogicForm.Show("REV_REMINDER")
Else
'Do Nothing
End If
'end of iLogic Code-----------------------------

 

Whenever your rev is not filled out it will pop a dialog box where you can set your revision without having to go into properties, set it to run before save as the previous user mentionned