Launch TrueView from command line

Launch TrueView from command line

Berndt_Nording
Community Visitor Community Visitor
1,269 Views
1 Reply
Message 1 of 2

Launch TrueView from command line

Berndt_Nording
Community Visitor
Community Visitor

I would like to be able to use TrueView as a DWG viewer by launching it from an external program via the command line. I have found no documentation for this.  Google's Artificial Stupidity comes up with this:

 

"C:\Program Files\Autodesk\DWG TrueView 20xx\dwgtrueview.exe" "C:\path\to\your\drawing.dwg" /L "layout_name"; 

 

As expected, this does not work and only opens the drawing but not to the specified layout.

Is there any documentation on command line switches for TrueView, or does it even have switches? I'd also like to bypass all the nag dialogs about missing .shx files and references and such.

0 Likes
1,270 Views
1 Reply
Reply (1)
Message 2 of 2

paullimapa
Mentor
Mentor

What you could do is to follow the drawing name with the /b switch which lets you apply a script file to the dwg opened:

"C:\Program Files\Autodesk\DWG TrueView 20xx\dwgtrueview.exe" "C:\path\to\your\drawing.dwg" /b "C:\path\to\your\My Script File.scr"

Then the Script file can contain the following supported commands:

_.TILEMODE 0
_.PSPACE
_.PLOT

Unfortunately there's no supported command or setvar to specify a layout name.

This dated site gives you a list of supported commands but there could be more in the current version:

https://cadpanacea.com/wp/?p=224

Here's a list of the current supported setvar:

paullimapa_0-1744832811660.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes