MicroStation Connect Update 13
I am trying to control the version of the .imodel version being published with a script to 1.6 and not 2.0. It looks like the settings file I created and that is loaded is not supporting the imodel version output setting. Anyone have any ideas or solution for this issue before I file a ticket?
the keyin should be PUBLISHDGN CREATEDGNDBIMODEL 1.5
this would set it to publish in version 1.5 and you can try running the keyin publishdgn publish force.
Mark Winegar said:it publishes to the latest version, 2.0. No way to control the version setting via keyin or settings file, at least nothing in the settings file that represents that the version is set to a certain version. So far I am unable to control the dialog through vba either.
Have you tried to use the configuration variables to load the settings file you want to use. There is the variable MS_PUBLISHDGN_DESIGNLINKS see the following:
PUBLISHDGN CREATEDGNDBIMODEL 1.5 is responding with "The output file name must end with .imodel". The keyin is acting like that is the name of the file and now needs an extension before proceeding. Also the 1.5, 1.6 and 2.0 if usable are hidden in the keyin dialog. If I put anything behind the initial keyin it must have the file name and extension.
CREATEDGNDBIMODEL 1.5 is responding with "The output file name must end with .imodel". The keyin is acting like that is the name of the file and now needs an extension before proceeding. Also the 1.5, 1.6 and 2.0 if usable are hidden in the keyin dialog. If I put anything behind the initial keyin it must have the file name and extension.
I have not set the variable to define a default settings file. The issue at the moment is that the settings file is not honoring the version defined when the settings file is saved and then reloaded into the publish dialog.
Let me work with David and a few other colleagues to see if we can get the version to be honored.
By default MSTN CE only publishes to the latest .imodel format using the key-in 'publishdgn createdgndbimodel', as per the latest version of ItgDgnDbImporter available on a machine. If someone wants to publish to an older format with multiple versions of ItgDgnDbImporter installed, then we can use IDgnToIDgnDb.exe separately from "C:\Program Files\Bentley\ItgDgnDbImporter 1.5" with command like "C:\Program Files\Bentley\ItgDgnDbImporter 1.5\IDgnToIDgnDb.exe" -i C:\ABC.i.dgn -z c:\ABC.imodel --imodelVersion 1.6. It could be 1.5 also, but do remember the case sensitivities while using the command. We could add this option by default with MSTN key-ins in future updates but right now it is not possible.
Junaid Khan said:We could add this option by default with MSTN key-ins
Either that, or clarify MicroStation Help to include those *.exe options.
Junaid Khan said:If you browse to the ITG directory C:\Program Files\Bentley\ItgDgnDbImporter 1.5\ you will find the Bentley_DgnDb_iModel_Importer_2.0.pdf ReadMe for similar details
If your job involves working with the ITG directory, then I'm sure that's a good place to look. But, for the average MicroStation user, is it reasonable to expect him to make that unintuitive exploration? MicroStation Help is a well-known document, available from the MicroStation UI. If you want to make a user aware of arcane key-ins, put them in MicroStation Help. If you want to make a user aware of a well-hidden PDF document, put that in MicroStation Help as well.
The PDF documents you cite have the title Bentley DgnDb iModel Importer. That's misleading to a MicroStation user, who wants to publish or export DGN data. They don't want to import an iModel: they want to export an iModel.
Regards, Jon Summers LA Solutions