# \#command

**URL:** https://forums.sketchup.com/tag/command/474.md

[Latest](https://forums.sketchup.com/latest.md) · [Categories](https://forums.sketchup.com/categories.md) · [Tags](https://forums.sketchup.com/tags.md)

---

## [\[Example\] Command to close all active edits](https://forums.sketchup.com/t/example-command-to-close-all-active-edits/25805)

<div class="topic-metadata">

**Author:** [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Replies:** 14\
**Last updated:** [June 9, 2021, 6:40pm UTC](https://forums.sketchup.com/t/example-command-to-close-all-active-edits/25805 "2021-06-09T18:40:22Z")

</div>

An simple example command to close all active editing contexts. Once loaded, a keyboard shortcut can be specified in Preferences \> Shortcuts. On PC, we cannot use CTRL+ESC (because it’s a system shortcut,) … so I used …

---

## [How to access existing toolbars and call existing commands?](https://forums.sketchup.com/t/how-to-access-existing-toolbars-and-call-existing-commands/119388)

<div class="topic-metadata">

**Author:** [@Hypercube](https://forums.sketchup.com/u/Hypercube)\
**Replies:** 7\
**Last updated:** [March 27, 2020, 4:09pm UTC](https://forums.sketchup.com/t/how-to-access-existing-toolbars-and-call-existing-commands/119388 "2020-03-27T16:09:49Z")

</div>

Hello Everyone! I am trying to build a better toolbar interface as a plugin. It should work like this: Access all existing toolbars. Gather information about all commands (icon & tooltip) in each toolbar. Hide all exi…

---

## [Launching subprocess in Ruby plugin - Not entering IF statement when loading from SketchUp](https://forums.sketchup.com/t/launching-subprocess-in-ruby-plugin-not-entering-if-statement-when-loading-from-sketchup/97380)

<div class="topic-metadata">

**Author:** [@Finfa811](https://forums.sketchup.com/u/Finfa811)\
**Replies:** 5\
**Last updated:** [June 19, 2019, 4:04pm UTC](https://forums.sketchup.com/t/launching-subprocess-in-ruby-plugin-not-entering-if-statement-when-loading-from-sketchup/97380 "2019-06-19T16:04:42Z")

</div>

There is some strange behavior happening to me when I launch a subprocess in my Ruby plugin. The purpose is reading a line from the output and getting a substring of that line, the name of the project in this case. I use…

---

## [Sketchup.send\_action 10624 on a MAC](https://forums.sketchup.com/t/sketchup-send-action-10624-on-a-mac/36877)

<div class="topic-metadata">

**Author:** [@sdyger](https://forums.sketchup.com/u/sdyger)\
**Replies:** 6\
**Last updated:** [February 13, 2017, 10:55am UTC](https://forums.sketchup.com/t/sketchup-send-action-10624-on-a-mac/36877 "2017-02-13T10:55:48Z")

</div>

Hey guys, I’m a kind of new guy, whom work with the Sketchup Pro 2016 on a Mac. On the Windows version, I used the “Sketchup.send\_action 10624” to show the camera parameter a lot, but when I switch to Mac version, th…

---

## [\[code\] Example of Context Menu Command during SelectionTool](https://forums.sketchup.com/t/code-example-of-context-menu-command-during-selectiontool/38058)

<div class="topic-metadata">

**Author:** [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Replies:** 0\
**Last updated:** [January 27, 2017, 7:41pm UTC](https://forums.sketchup.com/t/code-example-of-context-menu-command-during-selectiontool/38058 "2017-01-27T19:41:32Z")

</div>

Continuing the discussion from Sketchup tool cl@ss name: Example of Context Menu Command during SelectionTool Selection\_Context\_Menu\_Command.rb (638 Bytes) Which looks like: # encoding : UTF-8 module Author modul…

---

## [RightClick on toolbar button?](https://forums.sketchup.com/t/rightclick-on-toolbar-button/31538)

<div class="topic-metadata">

**Author:** [@WhyDi](https://forums.sketchup.com/u/WhyDi)\
**Replies:** 9\
**Last updated:** [October 4, 2016, 2:08pm UTC](https://forums.sketchup.com/t/rightclick-on-toolbar-button/31538 "2016-10-04T14:08:35Z")

</div>

Hello, I would like my\_button on toolbar runs code at leftClick and loads OpenFileBox at rightClick. But I find nothing in UI::Command API to do such. Do I miss something? Regards

---

## [Issue while running system commands inside Sketchup ruby extension , in Windows VM running with Parallels on Mac](https://forums.sketchup.com/t/issue-while-running-system-commands-inside-sketchup-ruby-extension-in-windows-vm-running-with-parallels-on-mac/28294)

<div class="topic-metadata">

**Author:** [@sampath\_kumarkrishnan](https://forums.sketchup.com/u/sampath_kumarkrishnan)\
**Replies:** 1\
**Last updated:** [July 25, 2016, 8:15pm UTC](https://forums.sketchup.com/t/issue-while-running-system-commands-inside-sketchup-ruby-extension-in-windows-vm-running-with-parallels-on-mac/28294 "2016-07-25T20:15:03Z")

</div>

In my Sketchup ruby extension, I have to run certain system commands (like running another .exe). For this purpose, in ruby script, I create a batch file and write the command into it. To run the batchfile I used the f…

---

## [The trick of customizing shortcuts in 2016](https://forums.sketchup.com/t/the-trick-of-customizing-shortcuts-in-2016/26879)

<div class="topic-metadata">

**Author:** [@billkeck](https://forums.sketchup.com/u/billkeck)\
**Replies:** 4\
**Last updated:** [June 21, 2016, 10:43pm UTC](https://forums.sketchup.com/t/the-trick-of-customizing-shortcuts-in-2016/26879 "2016-06-21T22:43:19Z")

</div>

In order to customize shortcuts in SU 2016 click on “Sketchup” on the top menu bar, select “Preferences”, then “Shortcuts” and enter the customized shortcut in the box at the bottom center. This is all the same as previ…
