Is it possible to open a file in DWG TrueView from a commandline (an external commandline) and get the opened file automatically zoomed and scrolled to the right position?
In Adobe acrobat reader you use the following syntax to open, zoom and scroll a PDFautomatically.
Acrobat.exe /A "zoom=200,100,200" "C:\example.pdf".
(zoom=scale,left,top)
I want to do the same with DWG files in TrueView. Like:
TrueView.exe /A "zoom=200,100,200" "C:\example.dwg".
I know that this syntax is wrong. But is it possible?
Best regards Hans Öster
Sweden Borås
You can open file form command prompt. See below:
"C:\Program Files\Dwg TrueView 2009\dwgviewr.exe" "test.dwg"
And you can open file with scipt (SCR) file:
"C:\Program Files\Dwg TrueView 2009\dwgviewr.exe" "test.dwg" /b "zoom.scr"
with the switch /b added as shown above and then specify a script file which contains the typical responses to AutoCAD's command .
For example (zoom.scr) -- zoom extens and zoom with window
zoom
e
zoom
w
100,100