LibFredo6 User Manual - English - V5.1
LibFredo6 User Manual - English - V5.1
Page 1 / 13
2. Installation
LibFredo6 supports Sketchup versions 5 (>= 5.160), 6 and above (Free and Pro) on Windows and on OSX. Since SU8 M2 and SU 2013, there are now several ways to install a plugin. - SCF Plugin Store - SU Extension Manager to install a .rbz file - Unzipping into the SU Plugins directory from a .zip file All installations however will end up with the following footprint in the SketchUp Plugins directory: one script file LibFredo6.rb one subfolder LibFredo6. This subfolder contains the library files, the icons and cursor files, language files (please do not alter, rename or move files there). Since version 5.1, there is no explicit versioning in the folder name (mainly to comply with the Sketchup Extension Wharehouse). On Windows, SketchUp 8.0 Name
C:\program files\Google\Google SketchUp 8\Plugins\
LibFredo6 LibFredo6.rb Folder Ruby file
Type
Plugins Root Folder
Type
Plugins Root Folder
Type
Folder
Folder Ruby file
Type
Folder
Folder Ruby file
Page 2 / 13
NOTE: You may want to install LibFredo6 in another directory than the standard Sketchup Plugins directory. If so, you can use the standalone plugin 000_AdditionalPluginFolders.rb1 to define an additional Plugin directory and put LibFredo6 and my plugins in this directory.
IMPORTANT: If you have problem with the installation Check that you respect the footprint (one file, one subfolder) Never move or rename files. If you are unsure of your unzipping operation, do it in a neutral folder, check that you obtain the right footprint and then copy the file LibFredo6.rb and subfolder LibFredo6_xx to the SU Plugins directory.
BACKWARD COMPATIBILITY: Before LibFredo6 5.0, my scripts were based on another naming convention, with subfolder name in uppercase, such as ROUNDCORNER_Dir_23 and no loader .rb file. With the new naming convention, the subfolder will be named Fredo6_RoundCorner and there will be a loader .rb file called Fredo6_RoundCorner.rb for the next version of RoundCorner. LibFredo6 supports the new and the old naming convention. So if you install LibFredo6 5.0, and you have not yet upgraded to RoundCorner 2.4, Roundcorner 2.3, based on the old convention, will load normally. This will allow a progressive migration of my scripts. In any case, you do NOT need to delete the old subfolders prior to installation (for instance LIBFREDO6_Dir_49). These old subfolders will simply be ignored and you can delete them later with the Purge Obsolete Files utility.
CLEANUP OF OLD VERSIONS: Once you have installed a new version, you can safely remove the previous ones. Say, if you install LibFredo6 5.1, you can remove the folder LIBFREDO6_Dir_49, etc from the SU Plugin directory. See the section related to the utility Purge Obsolete Files further down in the present document.
Page 3 / 13
3. LibFredo6 utilities
LibFredo6 creates a menu entry LibFredo6 Settings. in the Sketchup Windows menu. It provides some configuration commands common to all plugins, as well as information on LibFredo6 itself.
The menu entries after the double separator are pertaining to LibFredo6 itself. The menu entries at the top are more general and apply to all plugins or plugins built on LibFredo6. The main utilities are: Set Preferred Languages: to specify a sequence of languages for all plugins. Check Plugins for Update: to check the current status of the installed plugins that subscribe to this service. Purge Obsolete Files: list all files which are no more necessary and could be safely deleted. Performances: summarize the load time at SU startup of the plugins build on LibFredo6 View Trace log files: visualize the traces of the current, but also previous sessions. This allows checking for errors at Sketchup startup time.
1) Setting the language preferences The dialog box allows setting up one or several language preferences. This setting is persistent across Sketchup sessions.
By default, it will set up the language of your operating system, if recognized. Note that language preferences are used in cascade. If you choose [HU, DE, FR], it means that for each string it will take the first translation found in Hungarian, then in German, then in French and then in the default language (which happens to be English).
Page 4 / 13
2) Check Plugins for Update As of v3.7, LibFredo6 can check the status of the plugins versions online. This concerns my own plugins, but it is open to other script authors. Access to the Check For Update dialog box is done via the menu Windows > LibFredo6 Settings > Check Plugins for Update The dialog box displays the status of the registered plugins at last check (date is indicated on the top right of the window). Just click on the button Check Plugins for Update to get the new status. Indeed, you need a working connection to Internet. Here is an example, for illustration:
Filtering the list of plugins There may be 4 cases (each with a defined color) for the plugin status: 1) Plugins installed locally and up to date 2) Plugins installed locally that requires an upgrade 3) Plugins obsolete or to be replaced by another one 4) Plugins installed locally where no information is available on the web 5) Plugins not installed locally but for which information is available on the web You can filter the list based on each of these 5 cases by using the checkboxes at the top of the window:
Page 5 / 13
Accessing Plugin information on line The link Info (if present) allows you navigating to the web page where the plugin was published. Just click on it and it will open a browser window pointing to the right page.
Reminder for Checking Updates In LibFredo6 v4.0, the reminder mechanism is passive. It is just a way to warn the user about checking plugins for update at certain defined times. There is no underlying real check online (I will probably introduce it in a next version). You can set the next date for being reminded to do a check for update. This will take the form of a small window with a Ruby icon which will popup a few seconds after you start Sketchup.
If you click on the Ruby, it will open the dialog box. If you close it, then you will be reminded the next day, when you start Sketchup. In order to set the next date for checking, set the number of days in the appropriate field at the bottom left of the dialog box. Note that the exact date is shown in the tooltip.
The default value is 15 days. This parameter is saved across SU sessions, but is specific to each version of the Sketchup applications. If you enter 0 Day, then it means that the reminder will appear every time you start Sketchup If you enter 999 Days, then you will never be reminded
Page 6 / 13
3) Purge Obsolete Files As of v4.0, LibFredo6 provides a way to check and get rid of the obsolete files and folders coming from previous versions of the plugins (for instance, ZLoader_xxx.rb files are no longer useful as of v4.0). This will help you to maintain your Plugins folder cleaner and also to avoid compatibility problems. Access to the Purge Obsolete Files dialog box is done via the menu Windows > LibFredo6 Settings > Purge Obsolete Files The dialog box displays the list of obsolete files and folder by plugins.
You just have to select the ones you wish to delete and click on the Delete button. You can also delete ALL obsolete files and folders by clicking on the Delete All button, regardless of the selection. The full path of files and folder is indicated in the tooltip of the fields. There will be two level confirmation before proceeding to deletion of files or folders (with indication of the full path): General confirmation Confirmation for each folder deleted.
Page 7 / 13
4) Performances and Plugin Load Time As of v4.0, LibFredo6 provides a synthetic view of the time to load plugins built on top of LibFredo6. Access to the Plugin Load time Information dialog box is done via the menu Windows > LibFredo6 Settings > Performances. The dialog box displays the times related to the loading of plugins (including LibFredo6 itself). All times are in milliseconds.
The report indicates 3 categories of times: At Startup of Sketchup, the loading of a plugin consist in: Loading the Ruby Files, which is usually quite fast Creating the commands and toolbars, which may take more time, depending on the version of Sketchup and the environment. Phase 2 Loading: for some plugins, the strategy is to load the minimum of files (usually one file) to create the menu and toolbar. Then the rest of the files will be loaded at the first call of a function of the plugins. For instance FredoScale or RoundCorner use this two-phase loading mechanism, whose purpose is to slightly speed up the startup of Sketchup.
So the total impact of LibFredo6 plugins on the duration of the SU Startup is the total of the 3rd column (1,545 ms in the screenshot above). For convenience, the dialog box gives the average total load time for the last 10 SU startups.
Page 8 / 13
5) Trace Log files As of v4.0, LibFredo6 traces the status and errors when loading and executing plugins. Access to the Log viewer dialog box is done via the menu Windows > LibFredo6 Settings > View Trace log Files. The dialog box shows the log of main steps in the loading and execution of plugins. Errors are highlighted in red.
By default, the viewer shows the log file for the current session, but you can consult the log files of previous sessions, which can be useful in case you have just got a bugsplat. Additionally, you can export the log file as a text file (.txt). This may help the author of the plugin to troubleshoot the problem. Note: Full path names are masked in the log files and exported files. If you use 000_AdditionalPluginFolders, then the loading cycle of all other plugins is also traced and visible in the log file.
Page 9 / 13
6) Default Parameters LibFredo6 maintains a few parameters which are common to all plugins, such as the Inference colors. You can modify them via the dialog box Default Parameters.
Page 10 / 13
The principle is to translate FROM WITHIN the application, via the dialog box Language Translation. You must NOT edit the files manually2.
The reason is that the files still keep an ASCII format where all diacritic and double-bytes characters are encoded in a special ASCII format.
Page 11 / 13
1) Using the Translation Dialog Box Below is the Translation Box for LibFredo6. You normally have one for each plugin that will use LibFredo6.
First, select the target language using the Combo box on the top-left of the dialog box. If your language is not predefined, you can create a new one, by selecting New Language. This will show another dialog box where you can define the new language: ISO code, native name and English name.
Page 12 / 13
The Default Language strings are shown in Blue, with an arrow. You can however show other languages too, if it helps, by typing their ISO codes separated by space in the field on the top right of the dialog box. Then, you just need to type the translation in the fields. - You do NOT need to put back-slash in front of diacritic characters (accentuated). Just type the string naturally in your language. - You can use single quote (). - Be careful with angular brace (< and >), because it may interfere with HTML. I would recommend not to use them for the time being. - Strings not translated yet are highlighted in Green cells - Strings just modified and not saved yet are highlighted in yellow - The button Save changes just do a saving, but doe not exit the window. Use the button Close to exit.
Once you have translated strings (some or all), you can already see some of this translation active in the Plugin. Note however that the full integration of new translation may only take place when you restart Sketchup (in particular for all menu strings and toolbar tooltips). 2) Publishing the Language file Your effort to translate is valued as a contribution to the Sketchup community. So, what I suggest is to: - post the language file .lang on the Sketchucation forum (Plugin section or language-specific sections) for others to share - inform me by PM or on the forum, so that I can integrate the language in the standard distribution.
Page 13 / 13