Modelbuilder displays model differently when loaded directed vs in project
When a project is loaded with a model resource, that resource is displayed at zoomed out range compared to when the same model resource file is loaded directly. I created a project containing one model resource (pillbox4.gen) to illustrate.
When the project resource is loaded:
But when the model resource is loaded directly:
To reproduce
-
Use this script to build a project resource containing a model: make_project.py. Specify a model file (that vtk session can import) and a project directory. I use the directory name "example"
-
In modelbuilder, use "File => Open" to open the smtk file in the project directory. In my case, the filename is 'example.project.smtk'.
-
Then use "File => Open" to open the model resource. That file is in the project directory, in a
resources
subdirectory with a name of the form model-.smtk.