Hi Aerilius,
Thanks for the quick reply and good suggestion on checking of the JSON.
I’m not familiar with JSON but I thought I’d figured out the syntax with some assistance from Notepad++ seeming to suggest that my edit was valid (it wasn’t).
I ran it through the JSON validator at https://jsonlint.com/ and it warned that I had an unnecessary extra comma after “false”.
My corrected file now looks like this (attached as SharedPreferences.json-01-Before):
{
“Shared for All Computers”: {},
“Preferences”: {
“CheckForUpdates”: false
},
“Windows Only”: {},
“Mac Only”: {},
“Web Only”: {},
“iOS Only”: {},
“Android Only”: {}
}
However, as soon as I launch SketchUp to the welcome screen point, the file gets amended to a state where the “Preference” section is removed (see this attached as SharedPreferences.json-02-LaunchToWelcome)
{
“Shared for All Computers”: {},
“Windows Only”: {},
“Mac Only”: {},
“Web Only”: {},
“iOS Only”: {},
“Android Only”: {}
}
When I progress through the application to launching a blank template, the JSON file updates to the following (see this attached as SharedPreferences.json-03-LaunchToTemplate):
{
“Shared for All Computers”: {
“Application”: {
“LastSECopyVersion”: “18.0.16975”
},
“Preferences”: {
“ComponentBrowser1Image”: 5,
“CompViewView”: 0,
“MaterialColorType”: 2,
“MaterialsBrowserImage”: 2,
“MaterialsBrowserView”: 0,
“SceneBrowserImage”: 5,
“SceneBrowserView”: 0,
“StylesBrowserImage”: 2,
“StylesBrowserView”: 0
}
},
“Windows Only”: {
“Preferences”: {
“DefaultTemplate18”: “C:\Program Files\SketchUp\SketchUp 2018\Resources\en-US\Templates\Temp01b - Simple.skp”
},
“UserLibrariesComponentBrowser1”: {
“count”: 8,
“first_run”: false,
“Name1”: “Components Sampler”,
“Name2”: “Dynamic Components Training”,
“Name3”: “Architecture”,
“Name4”: “Landscape”,
“Name5”: “Construction”,
“Name6”: “People”,
“Name7”: “Playground”,
“Name8”: “Transportation”,
“Path1”: “C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Components\Components Sampler”,
“Path2”: “C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Components\Dynamic Components Training”,
“Path3”: “is:downloadable”,
“Path4”: “is:downloadable”,
“Path5”: “is:downloadable”,
“Path6”: “is:downloadable”,
“Path7”: “is:downloadable”,
“Path8”: “is:downloadable”,
“Type1”: 0,
“Type2”: 0,
“Type3”: 1,
“Type4”: 1,
“Type5”: 1,
“Type6”: 1,
“Type7”: 1,
“Type8”: 1
}
},
“Mac Only”: {},
“Web Only”: {},
“iOS Only”: {},
“Android Only”: {}
}
Notice how there is no mention of “CheckForUpdates” under “Preferences”.
If I then disable updates via the GUI (Windows > Preferences > General, then untick “Allow checking for updates”) the “CheckForUpdates” part appears with the “false” value along with a lot of other data (see this attached as SharedPreferences.json-04-DisabledViaGUI):
{
“Shared for All Computers”: {
“AppGUID”: {
“sendok”: 1
},
“Application”: {
“LastSECopyVersion”: “18.0.16975”
},
“PageOptions”: {
“ShowTransition”: true,
“TransitionTime”: 1.5
},
“Preferences”: {
“AlwaysFixValidityErrors”: false,
“AutoDrawingPlane”: true,
“AutoSave”: true,
“AutoSaveFreq”: 5,
“AviExportAntiAlias”: true,
“AviExportAR”: 1.7777777777777777,
“AviExportFPS”: 24.0,
“AviExportHeight”: 720,
“AviExportLockAR”: true,
“AviExportLoop”: true,
“AviExportPlay”: false,
“AviExportPrompt”: false,
“AviExportWidth”: 1280,
“CheckForUpdates”: false,
“ColorParallelPerpendicular_RGB”: “255 0 255”,
“ColorTangent_RGB”: “0 255 255”,
“ColorX_RGB”: “255 0 0”,
“ColorY_RGB”: “0 255 0”,
“ColorZ_RGB”: “0 0 255”,
“ComponentBrowser1Image”: 5,
“CompViewView”: 0,
“DisplayTabs”: true,
“EnableCheckValidity”: true,
“MaterialColorType”: 2,
“MaterialsBrowserImage”: 2,
“MaterialsBrowserView”: 0,
“MaxUndo”: 100,
“SaveBackup”: true,
“SceneBrowserImage”: 5,
“SceneBrowserView”: 0,
“ShowInferenceTips”: true,
“ShowStylesWarning”: 1,
“StylesBrowserImage”: 2,
“StylesBrowserView”: 0,
“UpdateDefaultColorOn”: true,
“UpdateDefaultOn”: true,
“VCBShowTypedInputBackground”: true,
“VCBTimoutSeconds”: 5
},
“SlideshowOptions”: {
“LoopSlideshow”: true,
“SlideTime”: 1.0
},
“StyleEditTab”: {
“curPage”: 0
}
},
“Windows Only”: {
“Preferences”: {
“DefaultTemplate18”: “C:\Program Files\SketchUp\SketchUp 2018\Resources\en-US\Templates\Temp01b - Simple.skp”
},
“PrintOptions”: {
“ComputeSizeFromScale”: false,
“FitToPage”: true,
“LineWeight”: 0.5,
“ModelExtents”: true,
“NumberOfPages”: 1,
“PixelsPerInch”: 150.0,
“PrintHeight”: 11.0,
“PrintQuality”: 0,
“PrintWidth”: 8.5,
“QualityAdjustment”: 1.0,
“ScaleAdjustment”: 1.0,
“SectionSlice”: false,
“SizeInModel”: 1.0,
“SizeInPrint”: 1.0,
“VectorMode”: false
},
“Settings”: {
“Num_Shortcuts”: 20,
“Shortcut_1”: “0 0 0 H selectDollyTool:”,
“Shortcut_10”: “0 0 0 P selectPushPullTool:”,
“Shortcut_11”: “0 0 0 R selectRectangleTool:”,
“Shortcut_12”: “0 0 0 Space selectSelectionTool:”,
“Shortcut_13”: “0 0 0 L selectLineTool:”,
“Shortcut_14”: “0 0 0 K View/Edge Style/Back Edges”,
“Shortcut_15”: “0 0 0 M selectMoveTool:”,
“Shortcut_16”: “0 0 0 G Edit/Make Component…”,
“Shortcut_17”: “0 0 0 T selectMeasureTool:”,
“Shortcut_18”: “0 0 0 F selectOffsetTool:”,
“Shortcut_19”: “0 0 0 Q selectRotateTool:”,
“Shortcut_2”: “0 0 0 I selectImageIglooTool:”,
“Shortcut_20”: “0 0 0 S selectScaleTool:”,
“Shortcut_3”: “0 0 0 O selectOrbitTool:”,
“Shortcut_4”: “0 0 0 Z selectZoomTool:”,
“Shortcut_5”: “0 0 1 Z viewZoomExtents:”,
“Shortcut_6”: “0 0 0 A selectArcTool:”,
“Shortcut_7”: “0 0 0 C selectCircleTool:”,
“Shortcut_8”: “0 0 0 E selectEraseTool:”,
“Shortcut_9”: “0 0 0 B selectPaintTool:”
},
“UserLibrariesComponentBrowser1”: {
“count”: 8,
“first_run”: false,
“Name1”: “Components Sampler”,
“Name2”: “Dynamic Components Training”,
“Name3”: “Architecture”,
“Name4”: “Landscape”,
“Name5”: “Construction”,
“Name6”: “People”,
“Name7”: “Playground”,
“Name8”: “Transportation”,
“Path1”: “C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Components\Components Sampler”,
“Path2”: “C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Components\Dynamic Components Training”,
“Path3”: “is:downloadable”,
“Path4”: “is:downloadable”,
“Path5”: “is:downloadable”,
“Path6”: “is:downloadable”,
“Path7”: “is:downloadable”,
“Path8”: “is:downloadable”,
“Type1”: 0,
“Type2”: 0,
“Type3”: 1,
“Type4”: 1,
“Type5”: 1,
“Type6”: 1,
“Type7”: 1,
“Type8”: 1
}
},
“Mac Only”: {},
“Web Only”: {},
“iOS Only”: {},
“Android Only”: {}
}
If I then re-enable updates via the GUI (Windows > Preferences > General, then tick “Allow checking for updates”) the “CheckForUpdates” part appears with the “true” value along with a lot of other data (see this attached as SharedPreferences.json-05-EnabledViaGUI):
{
“Shared for All Computers”: {
“AppGUID”: {
“sendok”: 1
},
“Application”: {
“LastSECopyVersion”: “18.0.16975”
},
“PageOptions”: {
“ShowTransition”: true,
“TransitionTime”: 1.5
},
“Preferences”: {
“AlwaysFixValidityErrors”: false,
“AutoDrawingPlane”: true,
“AutoSave”: true,
“AutoSaveFreq”: 5,
“AviExportAntiAlias”: true,
“AviExportAR”: 1.7777777777777777,
“AviExportFPS”: 24.0,
“AviExportHeight”: 720,
“AviExportLockAR”: true,
“AviExportLoop”: true,
“AviExportPlay”: false,
“AviExportPrompt”: false,
“AviExportWidth”: 1280,
“CheckForUpdates”: true,
“ColorParallelPerpendicular_RGB”: “255 0 255”,
“ColorTangent_RGB”: “0 255 255”,
“ColorX_RGB”: “255 0 0”,
“ColorY_RGB”: “0 255 0”,
“ColorZ_RGB”: “0 0 255”,
“ComponentBrowser1Image”: 5,
“CompViewView”: 0,
“DisplayTabs”: true,
“EnableCheckValidity”: true,
“MaterialColorType”: 2,
“MaterialsBrowserImage”: 2,
“MaterialsBrowserView”: 0,
“MaxUndo”: 100,
“SaveBackup”: true,
“SceneBrowserImage”: 5,
“SceneBrowserView”: 0,
“ShowInferenceTips”: true,
“ShowStylesWarning”: 1,
“StylesBrowserImage”: 2,
“StylesBrowserView”: 0,
“UpdateDefaultColorOn”: true,
“UpdateDefaultOn”: true,
“VCBShowTypedInputBackground”: true,
“VCBTimoutSeconds”: 5
},
“SlideshowOptions”: {
“LoopSlideshow”: true,
“SlideTime”: 1.0
},
“StyleEditTab”: {
“curPage”: 0
}
},
“Windows Only”: {
“Preferences”: {
“DefaultTemplate18”: “C:\Program Files\SketchUp\SketchUp 2018\Resources\en-US\Templates\Temp01b - Simple.skp”
},
“PrintOptions”: {
“ComputeSizeFromScale”: false,
“FitToPage”: true,
“LineWeight”: 0.5,
“ModelExtents”: true,
“NumberOfPages”: 1,
“PixelsPerInch”: 150.0,
“PrintHeight”: 11.0,
“PrintQuality”: 0,
“PrintWidth”: 8.5,
“QualityAdjustment”: 1.0,
“ScaleAdjustment”: 1.0,
“SectionSlice”: false,
“SizeInModel”: 1.0,
“SizeInPrint”: 1.0,
“VectorMode”: false
},
“Settings”: {
“Num_Shortcuts”: 20,
“Shortcut_1”: “0 0 0 H selectDollyTool:”,
“Shortcut_10”: “0 0 0 P selectPushPullTool:”,
“Shortcut_11”: “0 0 0 R selectRectangleTool:”,
“Shortcut_12”: “0 0 0 Space selectSelectionTool:”,
“Shortcut_13”: “0 0 0 L selectLineTool:”,
“Shortcut_14”: “0 0 0 K View/Edge Style/Back Edges”,
“Shortcut_15”: “0 0 0 M selectMoveTool:”,
“Shortcut_16”: “0 0 0 G Edit/Make Component…”,
“Shortcut_17”: “0 0 0 T selectMeasureTool:”,
“Shortcut_18”: “0 0 0 F selectOffsetTool:”,
“Shortcut_19”: “0 0 0 Q selectRotateTool:”,
“Shortcut_2”: “0 0 0 I selectImageIglooTool:”,
“Shortcut_20”: “0 0 0 S selectScaleTool:”,
“Shortcut_3”: “0 0 0 O selectOrbitTool:”,
“Shortcut_4”: “0 0 0 Z selectZoomTool:”,
“Shortcut_5”: “0 0 1 Z viewZoomExtents:”,
“Shortcut_6”: “0 0 0 A selectArcTool:”,
“Shortcut_7”: “0 0 0 C selectCircleTool:”,
“Shortcut_8”: “0 0 0 E selectEraseTool:”,
“Shortcut_9”: “0 0 0 B selectPaintTool:”
},
“UserLibrariesComponentBrowser1”: {
“count”: 8,
“first_run”: false,
“Name1”: “Components Sampler”,
“Name2”: “Dynamic Components Training”,
“Name3”: “Architecture”,
“Name4”: “Landscape”,
“Name5”: “Construction”,
“Name6”: “People”,
“Name7”: “Playground”,
“Name8”: “Transportation”,
“Path1”: “C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Components\Components Sampler”,
“Path2”: “C:\ProgramData\SketchUp\SketchUp 2018\SketchUp\Components\Dynamic Components Training”,
“Path3”: “is:downloadable”,
“Path4”: “is:downloadable”,
“Path5”: “is:downloadable”,
“Path6”: “is:downloadable”,
“Path7”: “is:downloadable”,
“Path8”: “is:downloadable”,
“Type1”: 0,
“Type2”: 0,
“Type3”: 1,
“Type4”: 1,
“Type5”: 1,
“Type6”: 1,
“Type7”: 1,
“Type8”: 1
}
},
“Mac Only”: {},
“Web Only”: {},
“iOS Only”: {},
“Android Only”: {}
}
So, am I still doing something wrong with the syntax in my edited file (SharedPreferences.json-01-Before)?
Do I perhaps need to use the contents of SharedPreferences.json-04-DisabledViaGUI instead?
Is there a simpler way of disabling updates in large scale environments?
2018 10 17 - SketchUp 2018 JSON Config.zip (4.8 KB)