where can I find webdialog's position and size in su 2018  Topic is solved

where can I find webdialog's position and size in su 2018

Postby wikii » Mon Nov 27, 2017 3:34 pm

In su2017 or before, each Webdialog's position and size was stored in registry .

but where can i find Webdialog's position and size when I use sketchup 2018 ?

thanks a lot!

wikii
0

wikii 
PluginStore Author
PluginStore Author
 

Re: where can I find webdialog's position and size in su 201  Topic is solved

Postby TIG » Mon Nov 27, 2017 7:55 pm

C:/Users/USERNAME/AppData/Local/SketchUp/SketchUp 2018/SketchUp/PrivatePreferences.json

For example, for the "ExtensionStore" toolbar info, you need to find the entries using some grepping and parsing/splitting... for the toolbar
Code: Select all
"RubyWorkspace\\ToolbarsUser-Bar8": {
  "BarID": 59661,
  "BarName": "ExtensionStore"
},
and from its BarID, its status later on
Code: Select all
"RubyWorkspace\\RubyToolBar-59661": {
  "Columns": 0,
  "DockBarId": 0,
  "Visible": 1
},
and for its main dialog details
Code: Select all
"WebDialog_SketchUcation ExtensionStore": {
  "Height": 918,
  "Left": 11,
  "Top": 84,
  "Width": 862
},
for this kind of entry note that another 'prefix' might apply for the newer HTML dialog type - test it..
1
TIG
User avatar
TIG 
Global Moderator
 

Re: where can I find webdialog's position and size in su 201

Postby wikii » Tue Nov 28, 2017 1:28 am

TIG wrote:C:/Users/USERNAME/AppData/Local/SketchUp/SketchUp 2018/SketchUp/PrivatePreferences.json

For example, for the "ExtensionStore" toolbar info, you need to find the entries using some grepping and parsing/splitting... for the toolbar
Code: Select all
"RubyWorkspace\\ToolbarsUser-Bar8": {
  "BarID": 59661,
  "BarName": "ExtensionStore"
},
and from its BarID, its status later on
Code: Select all
"RubyWorkspace\\RubyToolBar-59661": {
  "Columns": 0,
  "DockBarId": 0,
  "Visible": 1
},
and for its main dialog details
Code: Select all
"WebDialog_SketchUcation ExtensionStore": {
  "Height": 918,
  "Left": 11,
  "Top": 84,
  "Width": 862
},
for this kind of entry note that another 'prefix' might apply for the newer HTML dialog type - test it..


Great!
Many thanks!
wikii
0

wikii 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: EddFrac, M Klein and 3 guests

Visit our sponsors: