I have one VBA that will not find the gpk file. Using the same code that works on the other VBA. Below is the code from the example which is used to check. The result returns the path/jobjob104.gpk
Dim jobNums() As String Dim count As Integer Dim myCogo As Cogo
'Array of Job Numbers jobNums() = GetJobNumbersWithinActiveDir()
For count = LBound(jobNums) To UBound(jobNums) 'Get the first Job Number in the array If 0 = count Then 'Set the active Job Number Set myCogo = OpenCogoByJobNumber(104) 'Set myCogo = OpenCogoByJobNumber(jobNums(count))
If (myCogo Is Nothing) Then MsgBox "error reading job: " & jobNums(count) Else MsgBox myCogo.FullFileName End If
End If
Next count
Larry WilsonLWilson@LJBinc.com
Hi Larry,
Per the testing performed so far..
If the code only fails when the data is located on the network drive consider capturing a Microsoft Process Monitor (procmon) log including "All Events" that cover the start of Geopak, opening the design and gpk files used, and the running of your code to the point of an error/unexpected result, then stop the procmon logging. Save the log as a .pml file then zip and attach the log file for review.
Thank you,Bob
For more information about the Road and Site design tools, visit the Road and Site design WIKI at: http://communities.bentley.com/products/road___site_design/w/road_and_site_design__wiki
Answer Verified By: Mozart319
Prior to requiring computer specific logging to be performed, I would recommend these actions:
HTH,Bob
Answer Verified By: Beebe Ray