Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rhino:schemes [2020/12/15]
wim [How to create a new scheme and desktop shortcut]
rhino:schemes [2023/09/12] (current)
Line 1: Line 1:
 ====== Using Schemes to Start Rhino====== ====== Using Schemes to Start Rhino======
  
->Using Schemes to start Rhino with different sets of options on the same computer +>Start Rhino with different sets of options on the same computer (Windows only)
  
-Basically, Rhino Schemes are just different sets of personalized options that can be called from a specific desktop shortcut.  Everything in the Options section of Rhino can be stored in a scheme (with the exception of display modes). In this way, Rhino can be started with different combinations of workspaces (*.rui files), languages, colors, etc., just by starting Rhino from the appropriate desktop shortcut. The schemes exist independently of each other, and can be modified.+Basically, Rhino Schemes are just different sets of personalized options that can be called from a specific desktop shortcut.  Pretty much everything in the Options section of Rhino can be stored in a scheme. In this way, Rhino can be started with different combinations of workspaces (*.rui/*.rhw files), languages, colors, etc., just by starting Rhino from the appropriate desktop shortcut. The schemes exist independently of each other, and can be modified.
  
 By default, one scheme is always created (Default), and any modifications will automatically get saved to that.  To have more than one scheme, you must specifically create new ones. This page explains how to do that. By default, one scheme is always created (Default), and any modifications will automatically get saved to that.  To have more than one scheme, you must specifically create new ones. This page explains how to do that.
  
-A newly created scheme will always start with the default set of options (as if Rhino was freshly installed).  If you want to duplicate an existing modified scheme, there isn't yet a direct, one-button way to do that.  For this reason, this page also outlines several methods to duplicate existing schemes.+A newly created scheme will always start with the default set of options (as if Rhino was freshly installed).  If you want to duplicate an existing modified scheme, there isn't yet a direct, one-button way to do that, but as of V6 it's pretty simple, instructions further down on this page.  Those instructions also apply to copying settings from one installation to another.
  
 ===== How to create a new scheme and desktop shortcut===== ===== How to create a new scheme and desktop shortcut=====
-//(for Rhino 3 and up)// 
  
-1. Create a new shortcut on your desktop which points to your new Rhino scheme.  The easiest way to do this is to copy an existing Rhino shortcut. Hold the Control key down while dragging the default Rhino icon to a new location on the Desktopor right-click and copy it.+You first need to create a new shortcut which points to your new Rhino scheme.  I find that Windows sometimes mixes up copied and modified shortcuts if you simply copy them in place directly on the desktopso I suggest the following method:
  
-2. Right-click on the copied iconFrom the menu, click **Properties**.+  * Make a new folder on your desktop 
 +  * //Copy// the shortcut from your desktop into the new folder. 
 +  * //Rename// the shortcut (with the name of your new scheme or whatever) 
 +  Make the modifications to the shortcut - add the new scheme as outlined below 
 +  After all is working, //move// the modified shortcut back to the desktop 
 +  Delete the (now empty) folder you made 
  
-3. On the General Tab, edit the name: Rename it to something that will identify the scheme with which you are starting Rhino.+Edit your copied shortcut to create a new scheme:
  
-4On the Shortcut tab, edit the Target pathAdd a switch for the new scheme: \\ +1Right-click on the copied iconFrom the menuclick **Properties**.
-//(The example path below is for Windows Vista/7/8Rhino 5 64 bit. Others are similar.)//+
  
-**"C:\Program Files\Rhinoceros 5 (64-bit)\System\Rhino.exe" /<color darkslateblue>Scheme=MyNewScheme</color>**+2. On the General Tab, edit the name: Rename it to something that will identify the scheme with which you are starting Rhino. 
 + 
 +3. On the Shortcut tab, edit the Target path. Add a switch for the new scheme: \\ 
 +//(The example path below is for Windows 10/11, Rhino 7.0. Others are similar.)// 
 + 
 +**"C:\Program Files\Rhino 7\System\Rhino.exe" /<color darkslateblue>Scheme=MyNewScheme</color>**
  
 //-- Make sure there is a single space before the **/Scheme=...**// //-- Make sure there is a single space before the **/Scheme=...**//
  
-{{rhino:rhinoscheme.png}}+{{:undefined:rhino7schemeproperties.png?216|}}
  
  
-5. The new scheme should start from this shortcut with a new set of default Rhino settings that you can change without affecting the original Rhino scheme.  Change the options to what you want while in this instance of Rhino. These changes are automatically saved under the new scheme.+4. The new scheme should start from this shortcut with a new set of default Rhino settings that you can change without affecting the original Rhino scheme.  Change the options to what you want while in this instance of Rhino. These changes are automatically saved under the new scheme.
  
 **Notes:** //// **Notes:** ////
  
   * **A template** is a 3DM file that can include any information stored in a Rhino 3DM file: document properties such as units, grid settings, tolerances, etc. as well as viewport layouts, layers, and even geometry. So you can create templates with preset units, layouts, title blocks, geometry, etc. -- anything that normally can be saved in a 3dm file.   * **A template** is a 3DM file that can include any information stored in a Rhino 3DM file: document properties such as units, grid settings, tolerances, etc. as well as viewport layouts, layers, and even geometry. So you can create templates with preset units, layouts, title blocks, geometry, etc. -- anything that normally can be saved in a 3dm file.
-  * **A scheme** is a new location in the registry where an additional set of Rhino Options can be stored. These are the Rhino settings that you configure in the Options command.+ 
 + 
 +  * **A scheme** is a key in the Windows registry that tells Rhino that a set of options has been stored under that scheme name From Rhino V6 on, the options themselves are stored in the settings folder under the scheme name. The settings folder is located here:  **//C:\Users\<username>\AppData\Roaming\McNeel\Rhinoceros\<version number>\settings//** where //<username>// is your user name and //<version number>// is 6.0, 7.0, 8.0 etc. 
 + 
   * **A scheme can include a template specification**, i.e. any scheme can open with a specific template. After starting Rhino with your newly created scheme, use the **New** command and browse to the file you want to be your starting template for that scheme. In the lower left corner of the dialog, check **use this file when Rhino starts**. You can create a custom template by saving a drawing with the **SaveAsTemplate** command or using Save As Template from the file menu.   * **A scheme can include a template specification**, i.e. any scheme can open with a specific template. After starting Rhino with your newly created scheme, use the **New** command and browse to the file you want to be your starting template for that scheme. In the lower left corner of the dialog, check **use this file when Rhino starts**. You can create a custom template by saving a drawing with the **SaveAsTemplate** command or using Save As Template from the file menu.
  
-===== How to (more or less) duplicate a scheme without editing the registry===== +===== How to duplicate a scheme===== 
-//This requires you have Rhino V4or V3 with Bonus Tools installed.//+//This topic has been updated to Rhino V6 and later !// 
 + 
 +As of V6Rhino options and various other settings are stored in an .xml file the settings folder located in C:\Users\<username>\AppData\Roaming\McNeel\Rhinoceros\<version number>. The default scheme's file for example is called <file>settings-Scheme__Default.xml</file>  Creating a new scheme called "MyNewScheme" will create a new file in the same folder with the name <file>settings-Scheme__MyNewScheme.xml</file> 
 + 
 +This has made duplicating schemes (within the same version) relatively simple.  When you make a new scheme, the new file as outlined above will automatically be created.  //All you need to do is make a copy of the settings file from the scheme you want to duplicate and rename it with the name of the new scheme, **replacing** the old one// All the options from the duplicated scheme will then be applied. 
 + 
 +**Note that this can also be applied for duplicating Rhino options from one computer to another.**  Simply copy over the settings file from the first computer and replace the original on the second.
  
-While in the instance of Rhino whose scheme you want to duplicate:// (Make sure only this instance is running!)// +**Important notes:**
-  Go to //Tools > Export Options// (V4) or //Bonus > Tools > Export Options// (V3). +
-  In V3, pick the **Select All** button.  In V4 all options are always exported. +
-  * At the top, pick the "..." (Browse) button and browse to an easily found location, give the file a name, then pick **OK**. +
-  * This file will be a .ini file with all your options. +
-  * Close Rhino, then create a new shortcut on your desktop by copying the original Rhino shortcut. +
-  * Right-click on the copy, choose properties, and change the Target to: **...Rhino4.exe" /<color darkslateblue>Scheme=MyNewScheme</color>** //(or ...Rhino3.exe...)//+
-  * It's a good idea to rename the shortcut so that you know which scheme will start. +
-  * Start Rhino from this shortcut.  Inside Rhino go to //Tools > Import Options// (V4) or //Bonus > Tools > Import Options// (V3). +
-  * Browse to your newly created .ini file, make sure all the options are selected (in V4 use the **Select All** button) and click **OK**. You will still have to open your custom toolbar layout/workspace if you have one as this is not covered by this procedure. +
-  * To do this, go to Tools > Toolbar layout. Close the current workspace, navigate to your custom workspace, and Open. +
-  * Custom display modes in V4 are neither covered by Schemes nor by Export Options, so you will have to export and reload those independently +
-  * Change whatever else you want while in this instance of Rhino. These changes will be saved under the new scheme automatically.  The changes only affect the new scheme, not any others.+
  
-===== How to duplicate scheme by editing the registry=====+  * Replacing the settings file from one Rhino version with that of different Rhino version (i.e. V6 to V7) is not recommended.  There are often many changes to the settings file format between versions. It may work correctly - or it may not.
  
-**Note: //<color red>Be extremely careful when registry editing! If you use the above method, this is usually not necessary.</color>//**+  The settings file includes which workspace file(s) should be loaded by a specific scheme, //but it does not modify the workspace files themselves// - that needs to be done separately via Rhino's workspace editing tools. 
  
-        From the Windows Start button, choose **Run**, then type **Regedit**, **OK**. +  * //(For V7 and earlier)// If different schemes share the same workspace file (.rui), a change made to the workspace by one instance will affect all others that use it The workspace file is independent of schemes -- the scheme only knows which one to opennot its structure.  If you have multiple instances of Rhino running, the last instance to close will overwrite the .rui file. So when making changesit is advisable to have only one instance of Rhino open at time.  If multiple users are using personalized workspaces, it is best to have separate workspaces with separate names and have each one open with the corresponding scheme //The workspace concept has been completely revised for V8, so some of the above may not apply.//
-        * Navigate to //HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\4.0// (or 3.0)+
-  * You will see all your schemes listed there.  Right-click on the scheme key you want to copy, and choose **Export**. +
-  * Place the file where you can find it again, like on the desktop.  The file has a **.reg** extension.  The actual file name is not important. +
-  * Right-click on the .reg file and choose **Open With...** and select **Notepad**. +
-  * Inside you will see many instances of your original scheme namelet's say it's //Scheme: MyCurrentScheme//. +
-  * Using the Replace function in Notepad, replace the phrase //Scheme: MyCurrentScheme// with //Scheme: MyNewScheme//, +
-  * Make sure you replace __all__ instances+
-  * When that is donesave the .reg file and close Notepad. +
-  * Right-click on the .reg file and choose **Merge** When you click **OK**your data is merged into the registry in the correct place. +
-  * All you have to do now is create shortcut on your desktop to your new Rhino scheme.  The easiest way to do this is to copy an existing shortcut and then right-click on the copy, choose properties, and change the Target to: **...Rhino4.exe" /<color darkslateblue>Scheme=MyNewScheme</color>** //(or ...Rhino3.exe...)// +
-  * It's a good idea to rename the shortcut so that you know which scheme it will start. +
-  * The new scheme should start from this shortcut with all of the previous settings of //MyCurrentScheme//. +
-  * Change what you want while in this instance of Rhino// (make sure only this instance is running!)//, these changes will be saved under the new scheme automatically.+
  
-**Note:** //It is not currently possible to control the loading or unloading of plug-ins with Schemes.  Plug-ins are either loaded or unloaded for all schemes at the same time.//+  * It is not currently possible to control the loading or unloading of plug-ins with Schemes.  Plug-ins are either loaded or unloaded globally for all schemes at the same time.
  
-> **Important:** //If different schemes share the same workspace (.tb) file a change made to the toolbar layout by one instance will affect all others that use it!  The toolbar layout in the .tb file is independent of schemes -- the scheme only knows which .tb to open, not its structure.  If you have multiple instances of Rhino running, the last instance to close will overwrite the .tb file. So when making  toolbar changes, it is advisable to have only one instance of Rhino open at a time.  If multiple users are using personalized workspaces, it is best to have separate workspaces with separate names and have each one open with the corresponding scheme.// 
  
  
 +>Last edit 12.09.23 by MSH/Helvetosaur
    
rhino/schemes.1608029838.txt.gz · Last modified: 2020/12/15 by wim