On-Demand Ruby Archives | SketchUpFamily https://sketchupfamily.com/tag/on-demand-ruby/ Sketchup, Sketchup Plugins, sketchup texture, Sketchup Components Fri, 16 Sep 2022 04:05:26 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://sketchupfamily.com/wp-content/uploads/2022/04/cropped-favicon.jpg On-Demand Ruby Archives | SketchUpFamily https://sketchupfamily.com/tag/on-demand-ruby/ 32 32 SketchUp Ruby Code Editor is Updated https://sketchupfamily.com/sketchup-ruby-code-editor-is-updated/ Tue, 24 Aug 2021 08:10:00 +0000 http://sketchupfamily.com/?p=1791 This code editor extension offers an easy-to-utilize and outwardly engaging approach to composing and altering Ruby contents straightforwardly inside SketchUp. These contents would then be ready to be utilized to…

The post SketchUp Ruby Code Editor is Updated appeared first on SketchUpFamily.

]]>
This code editor extension offers an easy-to-utilize and outwardly engaging approach to composing and altering Ruby contents straightforwardly inside SketchUp. These contents would then be ready to be utilized to form calculations, include usefulness or include information inside the SketchUp 3D modeling condition.

The SketchUp Ruby API gives a broad arrangement of capacities to automatize SketchUp from multiple points of view or make scripted, computational math.

Reasons

The developer, Alex Schreyer made this editor basically for 2 reasons: One is that Alex needed an approach to change and run SketchUp Ruby code directly within SketchUp’s 3D modeling condition. Regularly this is often wiped out an outer editor, yet having an indoor editor takes under consideration utilizing both scripting and modeling simultaneously – relying upon your requirements.

The editor needed to offer simple admittance to the Ruby coding condition and act more sort of a genuine code editor. to realize this, I included slightly jQuery (and jQuery UI) enchantment to form it look great and have some extra visual highlights (for example the tabs and menus).

Alex additionally included the superb CodeMirror grammar highlighting motor. this provides the editor with multi-language code highlighting, right TAB control, find/supplant, section coordinating, code collapsing, and various different highlights. Simply load the module and check it bent see together with your own eyes that it’s so natural to utilize!

The other purpose behind this extension is that once you compose code, for all time you would like to seem into documentation. to form this simpler, Alex included tons of reference webpages in a browser window.

Additionally, a dropdown beneath the editor contains some normal code pieces which will be embedded at the present cursor position. I’m additionally exploring different avenues regarding a code-finish including one that you simply can conjure anytime by clicking CTRL-SHIFT. It contains SketchUp’s classes and methods.

The SketchUp extension Ruby Code Editor held the best position on Alex’s daily agenda for an extended time as of recently. He eventually got around to giving the code a big redesign and may now gladly report that variant 4.0 has quite recently been delivered. In the event that you simply are a prepared coder or a novice simply wanting to evaluate scripted calculation, check out the new form, there are some very decent new highlights in there.

Highlights of SketchUp Ruby Code Editor

  • Excellent and clean editor UI with menu-based UI
  • Light/dark themed editor
  • Permits executing multi-line Ruby code straightforwardly in SketchUp
  • Works with files of any size
  • Quick opening and code highlighting of huge files
  • Most as of late utilized file list
  • Console alternate route
  • Line numbering in the editor
  • Indenting/un-indenting of code blocks
  • Coordinating sections, current line highlighting
  • Fix/re-try in the editor
  • Find/supplant in the editor
  • Code collapsing
  • Supplement code bits at the cursor
  • Code-consummation for SketchUp classes and techniques
  • Programmed reinforcement file creation
  • Different choices: font size, tab/space indenting
  • Fix of code execution
  • Single fix choice for whole code
  • Results window monitors run history
  • Reference web browser for regular websites
  • Investigate the determination of object properties and qualities
  • The choice for direct admittance to the Ruby support
  • The choice to alter the default code scrap
  • Clean printing of code
  • Where to get the SketchUp Ruby Code Editor

As usual, it’s ideal to simply download it or update it from the Extension Warehouse discourse directly inside SketchUp. Obviously, you can discover it in SketchUcation’s Plugin Store just as on the developer’s website.

The post SketchUp Ruby Code Editor is Updated appeared first on SketchUpFamily.

]]>
The newest Sketchup Extension – Ruby / Extension Loader https://sketchupfamily.com/the-newest-sketchup-extension-ruby-extension-loader/ Wed, 17 Mar 2021 06:16:00 +0000 http://sketchupfamily.com/?p=1334 The SketchupExtension class contains techniques permitting you to make and control SketchUp augmentations. Augmentations are Ruby contents that can be stacked and dumped utilizing the Extension director (Extensions board of…

The post The newest Sketchup Extension – Ruby / Extension Loader appeared first on SketchUpFamily.

]]>
The SketchupExtension class contains techniques permitting you to make and control SketchUp augmentations. Augmentations are Ruby contents that can be stacked and dumped utilizing the Extension director (Extensions board of the Preferences exchange box). By and large, you should enroll your ruby content as an expansion to enable SketchUp clients to impair it through the UI.

The thought here is to take the ruby content that really makes your usefulness and spot it in an organizer someplace outside of the/Plugins envelope, most ordinarily a subdirectory like/Plugins. At that point, you make another ruby content inside the/Plugins catalog that will set up the expansion passage and burden your unique content if the client has your augmentation turned on.

Alex Schreyer is the developer of an on-demand ruby/extension loader. This tool allows you to apply Ruby scripts/extensions devoid of installing them (ideal for computer labs or keeping SketchUp lean).

This sketchUpExtension is compatible with SketchUp 8, SketchUp 2013, SketchUp 2014, SketchUp 2015, SketchUp 2016, SketchUp 2017, SketchUp 2018, SketchUp 2019.

This SketchUp extension is developed to get extensions accessible in a ? locked down? computer lab setting. It also offers a simple way to utilize extensions in SketchUp devoid of installing them and as a result SketchUp starts (and possibly run) more rapidly.

Besides, this tool can be applied to run any external ruby code (e.g. for development purposes).

In order to apply this tool, it is necessary to save extensions (their Ruby – RB – files and any folders that the extension author packages with them) to a suitable location (a folder on your hard disk or network drive or a USB stick). Ensure, the file/folder structure keeps intact (accurately as it remains inside SketchUp’s own Plugins folder).

With the menu items inside the tool, you can perform the following :

On-demand load a single Ruby file / extension (.RB). As soon as the file/extension is loaded, it will be instantly accessible for use (and remain unless SketchUp is restarted).

To choose other types of entities, select the type from the dropdown and perform:

On-demand load several Ruby files/extensions (.RB) at once which are all included in a directory. Those will then be instantly accessible for use (and remain unless SketchUp is restarted).

Choose a directory (e.g. on a USB drive) that comprises Ruby files or extensions which are then automatically loaded every time SketchUp starts. This is in addition to the regular SketchUp Plugin directory that comprises of all installed extensions.

Permanently install an .RBZ or .ZIP extension in SketchUp. It is simply another way to perform what the “Install Extensions…” button does but in this case also facilitating installing from .ZIP files.

Manage extensions. It is a very suitable shortcut to the Extension Manger Window. The extensions can be installed/ disabled / enable extensions here.

If you get locked, the About option demonstrates a website with information, discussions, and a way to contact the author.

This sketchUp extension is available in extension warehouse extensions.sketchup.com

The post The newest Sketchup Extension – Ruby / Extension Loader appeared first on SketchUpFamily.

]]>