/ All posts
- Manifold 9 startup command line options
Are there command line options available when I start Manifold Viewer 9?
I would like my users to be able to click on a shortcut and open a certain map zoomed to a certain view.
Is the autexec: option available as in Manifold 8?
I have searched the documentation and not found an answer -- if it is there, please point me in the right direction.
After a bit of experimentation, I learned the following which upon reflection should have been obvious to me:
What does NOT work -- results in "Cannot load data."
E:\Downloads\manifold-9.0.169-x64\bin64\manifold.exe /autoexec: Dutchess Water Infrastructure.map
What does work -- enclose the filename in quotes if it has spaces in it:
E:\Downloads\manifold-9.0.169-x64\bin64\manifold.exe /autoexec: "Dutchess Water Infrastructure.map"
On to scripting opening a specific view.
There is currently no autoexec option in 9 / Viewer...
Really? I have it working to open a map file in both 9.0.169 and Viewer.
At work, where I have Viewer, the following line in a shortcut works to bring up viewer with the water.map open to the project pane where I can direct users to double click the map icon and right click a location to view in the active window. Not exactly what I want but close enough for now as I develop it further.
"F:\Software\Manifold 9 GIS Viewer\bin64\manifold.exe" -autoexec: water.map
opens the textfile
manifold.exe "File name.map"
autoexec: is ignored
Thank you -- I did not find that searching the documentation.
I did not find that searching the documentation.
Manifold documentation doesn't cover Windows features. This is one of those, but I agree a short note could be added for that. Most Windows programs will take a command line argument of a file to open.
Will open the file myfile.txt in notepad. Unlike Manifold, notepad does not silently ignore unsupported command line options that begin with -, and instead treats them as if they were intended as a file name to open. So if you try
cnotepad.exe -autoexec: myfile.txt
that doesn't work.
...is just Manifold being a regular Windows program. Doing
manifold.exe -autoexec: myproject.map
...is an example of Manifold ignoring invalid command line options and proceeding to open myproject.map in the usual Windows way.