SketchUp Command Line Switches

SketchUp Command Line Switches

Postby Jim » Sat Feb 02, 2013 10:48 pm

From this topic, here's a few command-line options for SketchUp.

$ Sketchup.exe [opts] [file.skp]

Where [opts] are:
-DisableRubyAPI
-RubyStartup "/path/to/ruby.rb"
-template "/path/to/template.skp"
-notemplate
-page "Scene1"
-timing


These may be options, but I haven't been able to verify they work:

-DisableAutoSave
-DisableWarnIfReadOnly
-thumbnail
-thumbprefs
1
Hi

Jim 
Global Moderator
 

Re: SketchUp Command Line Switches

Postby driven » Sun Feb 03, 2013 12:07 am

cheers Jim,

on a mac, because of the ridiculous Google Folder you need to use, unless you add it to the ~.profile

/Applications/Google\ SketchUp\ 8/Sketchup.app/Contents/MacOS/SketchUp -DisableRubyAPI

anyway, that one works...

EDIT: it seems to work [as in it starts SU], but when you actually click SU, it continues loading, including the Plugins...

john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: SketchUp Command Line Switches

Postby Jim » Sun Feb 03, 2013 12:27 am

Oh, that one might use a / (slash) instead of a - (dash)
0
Hi

Jim 
Global Moderator
 

Re: SketchUp Command Line Switches

Postby Aerilius » Sun Feb 03, 2013 12:40 am

-lang ru
where the language is exactly the name of the localization folder in the resources directory. For example create a new folder of your favorite dialect (pfl) and load it with -lang pfl. It seems that eastern asian languages need also a special SketchUp.exe binary.
0

Aerilius 
PluginStore Author
PluginStore Author
 

Re: SketchUp Command Line Switches

Postby driven » Sun Feb 03, 2013 12:48 am

knew I'd seen it before, needs a boolean

cd /
Applications/Google\ SketchUp\ 8/SketchUp.app/Contents/MacOS/SketchUp -DisableRubyAPI YES

john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: SketchUp Command Line Switches

Postby TBoy » Sat Apr 29, 2017 4:50 pm

Is it possible to start Sketchup with different location for plugins folder. For example - a thumbdrive or "disk name/MyFavoritePluginsFolder" ?
0

TBoy 
 

Re: SketchUp Command Line Switches

Postby TIG » Sun Apr 30, 2017 1:05 pm

SketchUp always includes its own Tools folder [and the nested Ruby folders] and your user Plugins folder in it load-path [$:]
You can include addition plugins folders in the load-path array, and any scripts in there will load as SketchUp starts.

Fredo wrote a clever extension to do this for you.
https://sketchucation.com/pluginstore?p ... ginFolders

Read its More Info... pages for usage etc...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

cron

Who is online

Users browsing this forum: Google Bot and 3 guests

Visit our sponsors: