I have a Microstation macro that reads the reference files in the current drawing and then prints them to a text file. We are working on getting this running for the new Microstation v8i (upgrade from v8). The macro normally runs through each reference file (from index = 1 to MbeRefFiles.maxRefFiles
) and finds the active reference for output.
Now instead, it keeps throwing an Object variable not Set
error when referencing the MbeRefFiles(index)
object. I'm just doing a Set refFile = MbeRefFiles(index)
and it says MbeRefFiles
isn't set, which doesn't make sense because it doesn't need to be set. The macro is completely unchanged and has been working for years, and now suddenly it can't read the reference file object. Anyone have any insights?