DWG TrueView
Welcome to Autodesk’s DWG Trueview Forums. Share your knowledge, ask questions, and explore popular DWG Trueview topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to open a file from a commandline with specific zoom and scroll

1 REPLY 1
Reply
Message 1 of 2
Braccus
2293 Views, 1 Reply

How to open a file from a commandline with specific zoom and scroll

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

 

1 REPLY 1
Message 2 of 2
ikeki
in reply to: Braccus

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report