I hope someone can help me.
I want to merge approximately 50 DGN-files together in one file.
For this i made a bat. file with following content.
msbatch merge <"destination"> <"source_1"> <"source_2"> <"source_3"> ...
The probleme know is, that the merge process gets interrupted after exactly 7 source-files. No matter what files I use. And in what sequence i try to merge them.
So it doesn't seem to be a problem with one of these files. I also tried it with different versions of MS, no luck.
An "Out of memory"-error is also out of question, cause 4GB of free memory should be enought for that task.
By the way this was tested on OS Win7 and Win10.
Sorry, can't give you this files, cause this is costumer content.
But I made a litte scenario for testing purpose, with the same outcome.
I've created sourcefiles numbered 1 to 9, each with just one textelement (File number) inside.
Merged together that should result in a sequence 1 to 9.
But the same problem as before: My sequence ends with a 7.
merge_test.zip
Using previous forum posts I managed to pull together a VBA project which gives the same effect as merging all references files however I was using test DGN files which are much larger than your sample. I found that the VBA solution would cause MicroStation to crash after approx 9 files even though the VBA contained recommended steps to ensure best possible performance (i.e. calling mdlSystem_compressDgnFile after each reference attachment has been processed). The VBA did work with your sample files without any problem so I can only presume that dealing with more complex files is getting into the realms of where VBA is not a suitable solution.
Can I ask why you are not simply selecting all references in the references dialog and using Merge into Master?
When I did that with my own test files, it worked without any issues whatsoever.
I can do so but not by hand. Cause the 30 files i've mentioned were just a small part of the files i actually have to merge.
Actually i have more than 500 of them, and they have to be merged into 8 destination files, filtered be several criterias. The batchfile i use ist just the outcome of a VBA script doing that automatically.
Merging them with the merge.ma was my first solution but if this doesn't work, i have to rework my script for using the"merge reference all" command.
Which versions of MicroStation did you try?
Samir
I tried it with V8 XM, V8i SS2 and V8i SS4.