Message 1 of 9
Acad.dvb Limiting to 20 users?

Not applicable
03-07-2002
11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have an acad.dvb file that has a few routines in it. I have one of them run at startup via the S::StartUp routine shown below:
sss
Then it runs the following function. The it works great but it seems that once I hit 20 people that have the acad.dvb file open, anyone else gets an execution error and the acad.dvb file is not loaded and not run. I am the admin here and have verified that we have 46 licenses in the office running on our ADLM. I can't for the life of me figure out the reason why it is limited to 20 people.
Please help.
Kevin Grigsby
Public Function vDPW_OpenDrawing()
Dim tempTD As AcadDictionary
Dim tempTX As AcadXRecord
Dim newTypes(0 To 3) As Integer
Dim newValues(0 To 3) As Variant
Dim sMSHandle As String
Dim sPSHandle As String
Dim retcode As Integer
On Error GoTo ErrorHandler
If ModelSpace.Count > 0 Then
sMSHandle = ModelSpace.Item(ModelSpace.Count - 1).Handle
Else
sMSHandle = VDPW_EmptyHandle
End If
If PaperSpace.Count > 0 Then
sPSHandle = PaperSpace.Item(PaperSpace.Count - 1).Handle
Else
sPSHandle = VDPW_EmptyHandle
End If
Set tempTD = GetvDPWToolsDictionary(True)
If Not tempTD Is Nothing Then
Set tempTX = GetvDPWDWGTrackerXRecord(True)
If Not tempTX Is Nothing Then
newTypes(0) = TYPEString: newValues(0) = GetVariable("LOGINNAME")
newTypes(1) = TYPEString: newValues(1) = Format(Now, VDPW_ToolsDateTimeFormat)
newTypes(2) = TYPEString: newValues(2) = sMSHandle
newTypes(3) = TYPEString: newValues(3) = sPSHandle
AppendXRecordData newTypes, newValues
End If
End If
FinishUp:
Set tempTD = Nothing
Set tempTX = Nothing
Exit Function
ErrorHandler:
On Error Resume Next
Select Case Err.Number
Case Else
retcode = MsgBox("vDPW_OpenDrawing Error " & Err.Number & " - " & Err.Description, vbExclamation + vbAbortRetryIgnore + vbDefaultButton2)
Select Case retcode
Case vbAbort: GoTo FinishUp
Case vbRetry: Resume 0
Case vbIgnore: Resume Next
End Select
End Select
End Function
I have an acad.dvb file that has a few routines in it. I have one of them run at startup via the S::StartUp routine shown below:
sss
Then it runs the following function. The it works great but it seems that once I hit 20 people that have the acad.dvb file open, anyone else gets an execution error and the acad.dvb file is not loaded and not run. I am the admin here and have verified that we have 46 licenses in the office running on our ADLM. I can't for the life of me figure out the reason why it is limited to 20 people.
Please help.
Kevin Grigsby
Public Function vDPW_OpenDrawing()
Dim tempTD As AcadDictionary
Dim tempTX As AcadXRecord
Dim newTypes(0 To 3) As Integer
Dim newValues(0 To 3) As Variant
Dim sMSHandle As String
Dim sPSHandle As String
Dim retcode As Integer
On Error GoTo ErrorHandler
If ModelSpace.Count > 0 Then
sMSHandle = ModelSpace.Item(ModelSpace.Count - 1).Handle
Else
sMSHandle = VDPW_EmptyHandle
End If
If PaperSpace.Count > 0 Then
sPSHandle = PaperSpace.Item(PaperSpace.Count - 1).Handle
Else
sPSHandle = VDPW_EmptyHandle
End If
Set tempTD = GetvDPWToolsDictionary(True)
If Not tempTD Is Nothing Then
Set tempTX = GetvDPWDWGTrackerXRecord(True)
If Not tempTX Is Nothing Then
newTypes(0) = TYPEString: newValues(0) = GetVariable("LOGINNAME")
newTypes(1) = TYPEString: newValues(1) = Format(Now, VDPW_ToolsDateTimeFormat)
newTypes(2) = TYPEString: newValues(2) = sMSHandle
newTypes(3) = TYPEString: newValues(3) = sPSHandle
AppendXRecordData newTypes, newValues
End If
End If
FinishUp:
Set tempTD = Nothing
Set tempTX = Nothing
Exit Function
ErrorHandler:
On Error Resume Next
Select Case Err.Number
Case Else
retcode = MsgBox("vDPW_OpenDrawing Error " & Err.Number & " - " & Err.Description, vbExclamation + vbAbortRetryIgnore + vbDefaultButton2)
Select Case retcode
Case vbAbort: GoTo FinishUp
Case vbRetry: Resume 0
Case vbIgnore: Resume Next
End Select
End Select
End Function