[CONNECT 10.08 C# COM] OpenDesignFileForProgram elements not showing correct level name or number on SS dgn files.

I have a program that was originally a .NET COM addin that was written for V8i. I've updated the addin to run inside CONNECT 10.08 also as a COM app. This is a QC application that runs thru all the dgn files in a project inspecting all the elements in the files checking things like level name, color, weight, linestyle, etc using the OpenDesignFileForProgram method. Even in V8, checking an element.level.name did not always provide a correct answer although the element.level.number method did always return the correct level number. I'm noticing the same problem in CONNECT where when checking a file created in CONNECT, the element.level.name may return incorrect levelname but the element.level.number is correct. 

Here is the root of my problem, if I open a SelectSeries created file inside the CONNECT addin, sometimes both the element.level.name & element.level.number return incorrect results (if I open the file graphically using OpenDesignFile method those properties are returned correctly). 

For example I have a single element in a SS10 file who's ID is 4002, looking at the element properties with the file loaded graphically the levelName = "TextMisc" & levelNumber = 212. If I open the same file in CONNECT using OpenDesignFileForProgram it shows levelName = "ActivePts-ConstElements" & levelNumber = 320 (these are levels that are defined in our level library.

Two question:
1: has anyone else seen this behavior?
2: We don't want to allow mixed platform files within our projects so I can filter by dgn version. I can't find documentation on dgn version numbers but using MicroStationDGN.DesignFile.FormatMajorVersion & FormatMinorVersion it appears V8 files are versioned 8.1XX & CONNECT files are versioned 8.2XX, can anyone confirm this?

Parents Reply Children
No Data