I've posted this problem in a another thread that had a different subject.
I'm getting different results running this code in XM and in V8i.
In XM the result is Num=5, which is correct.
In V8i the result is Num=1, which is wrong. Apparently oLevels only gets level "Default" and ignores the others.
Sub NumLevels()Dim oFile As DesignFileDim FileNameDgn As StringDim Num As IntegerDim oLevels As LevelsFileNameDgn = "C:\Lixo\Test.dgn"Set oFile = OpenDesignFileForProgram(FileNameDgn, False)Set oLevels = oFile.LevelsNum = oLevels.CountEnd Sub
Any idea why?