Hi,
Just found out files are modified when they are not meant to be when using OBD U9.2. Sample files attached.
readonly_file_changed_original.dgn = compressed 3D model file
readonly_file_changed_reference.dgn = blank 3D model file
Example sequence:
1 - Create a copy of readonly_file_changed_original.dgn, named readonly_file_changed_original - Copy.dgn. Note both files have same size and timestamp.
2 - Open readonly_file_changed_reference.dgn, and attach readonly_file_changed_original - Copy.dgn. Note the copy dgn now has different file size and timestamp compared to original file.
Expected behaviour: readonly_file_changed_original - Copy.dgn to stay same size and timestamp as readonly_file_changed_original.dgn.
3 - Create a copy of readonly_file_changed_original.dgn, named readonly_file_changed_original - Copy (2).dgn. Note both original and copy (2) files have same size and timestamp.
4 - Open readonly_file_changed_original - Copy (2).dgn in readonly mode. Note the copy (2) file now has different size and timestamp compared to original.
Expected behaviour: readonly_file_changed_original - Copy (2).dgn to stay same size and timestamp as readonly_file_changed_original.dgn.
Is this something that can be prevented?
Best regards,
Tuan Le
readonly_file_changed_original.dgnreadonly_file_changed_reference.dgn
Testing was done in Example Building Au workset.
Hi Tuan,
I'm not seeing this behavior, at least in Update 10, though I'm not aware of anything that changed in this area.
When I opened readonly_file_changed_original.dgn the first thing that happened is it changed size from 88KB to 232KB. The copy was also 232KB and remained there when being referenced into readonly_file_changed_reference.dgn. Now, readonly_file_changed_reference.dgn did change size because it now includes a reference attachment, but that makes sense.
After making a second copy of readonly_file_changed_original.dgn and opening it read-only it also remained at 232KB.
So essentially the difference is that I see a file size increase as soon as these files are opened while you do not, and at the same time I don't see any difference with any of the other steps you've outlined while you do.
I've picked up SR 700151416 that you also created for this issue but thought I'd reply back here first. It would be helpful if someone else could run thru the same steps to see whether they're results match up with yours or mine. And if for some reason there actually is a difference between update 9.2 and Update 10.
Steve Cocchi said:When I opened readonly_file_changed_original.dgn
Hi Steve,
I think this is why you don't see my issue, the readonly_file_changed_original.dgn should not be opened directly. It should only be referenced or opened as readonly.
The copy of the readonly_file_changed_original.dgn file was done using Windows Explorer file operation, not through a save as via OBD.
And the same issue appears in U10 (.199) as well.
Ah, I see. OK, now I am getting similar results - attaching the first copy as a reference increases its size from 88KB to 100KB.
Opening a second copy using read-only mode changes the size to 116KB.
Creating a third copy and opening it normally changes it to 308KB.
I believe this is the result of the elements and levels required to support DVs being written to the file when opened. This is a fairly old wiki but outlines the process: https://communities.bentley.com/products/building/building_analysis___design/w/building_analysis_and_design__wiki/13084/unwanted-levels-in-openbuildings-designer-dgn-files
And this wiki specifies the two configuration variables that control this behavior: https://communities.bentley.com/products/building/building_analysis___design/w/building_analysis_and_design__wiki/35470/new-configuration-variables-for-aecosim-building-designer-connect-edition
I've just run a test with both BB_DVDATASETELEMENTDISABLE and BB_DVLEVELSDISABLE set to 1, and same behavior still persists. It's quite concerning when files that are meant to be accessed in read-only mode are still being modified. My question at this stage is if this behaviour is work as design.