I would say this would be easier in VBA
Here is a start. Note that the variable sd is hardcoded. You will have to figure out how to store a date/time and keep it updated based on whatever criteria you desire.
This example is tied to the ERASE command. You could change this.
Obviously, there is no error checking included in this either, like I said - just a start.
Code:
Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
Dim tmp, ret, ct
ct = Now
sd = CDate("12/28/2005 16:00:00")
If CommandName = "ERASE" Then
If ct > sd Then
ret = MsgBox("Can we unload Civil Design now?", vbYesNo, "Title")
If ret = 6 Then ThisDrawing.SendCommand "UnloadCD" & vbCr
End If
End If
End Sub