When running batch process on cross section sheet files the process leaves the files in the last model view type DRAWING. To print them with ProjectWise rendition the sheet model has to be the one showing. So in the command file I need the key-in for getting back to the sheet file in each dgn file so it"s back to the model type SHEET.
Thanks for the help.
Hi Garry, the keyin itself is quite simple ("MODEL ACTIVE <modelname>"), but the issue is that you need to use the specific model name to switch to - and every section sheet would have a different name.
You could put together a quick VBA macro to find all Sheet models in the active DGN and use that to switch to the first one. In your Batch Process you would just need to run the macro for each dgn.
Regards,
Mark
OpenRoads Designer 2022 R3 (10.12) | Microstation 2023 | ProjectWise CE 3.4
We have 100 Cross Section dgn sheet files and each one has a different sheet model name. So, would I need 100 ("MODEL ACTIVE <modelname>") of these after the "Keyin" in the batch process each with the unique <modelname> to get it back to the sheet model correct? Isn't there a some thing like model type 0 for the first model created in a files and the model type 1 for the second and so on? Need something that will just switch it back to the first model created in the cross section dgn file or just to the sheet model because, all of our cross section sheets have one sheet model followed by 4 or 5 drawing models.
That's where a VBA would be more robust than keyin commands.
A VBA would be able to look at all of the models in a DGN, identify the sheet model, and set it active, no matter what the name is. As long as there is only one sheet model in the drawing, it wouldn't be terribly difficult.
Then for you batch process command, you would only need the command to run the macro.
VBA sounds challenging, but it's not too hard to learn a few basics.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2