在开发 SketchUp 扩展程序时,您希望能够加载该扩展程序
从您的源目录而不是直接在 SketchUp 插件目录中。

Extension Sources 是一种简化该过程的工具,尤其是当您拥有更大的
开发中的扩展项目数量。

## 如何使用

### 扩展源对话框

从 Extension Sources 添加扩展源所在的路径
对话。

这些路径被添加到 SketchUp 的 Ruby `$LOAD_PATH`。

可以从此对话框中管理路径。切换g 路径将控制
是否加载源。来源的顺序
添加到 `$LOAD_PATH` 也可以通过拖放重新排列
列表中的选定项目。

这些路径在扩展源所在的所有 SketchUp 安装之间共享
已安装。

### 扩展源扫描器对话框

要快速添加多个源,Extension Sources 可以扫描一个给定的分析
目录的子目录并查找扩展源的签名。
它将查找带有 `Sketchup.register_extension` 的 Ruby 文件
匹配名称的支持文件夹。

扫描可能需要几秒钟或几分钟,具体取决于您的文件系统和
硬盘速度。

`扩展源对话框` › `更多…` (`⋮`) › `扫描路径…`

从扫描结果中可以选择所需的来源。切换将控制
是否加载源路径。

请注意,已添加到扩展源的路径不会出现在扫描中
结果列表。
作者:汤姆汤姆
When developing a SketchUp extension you want to be able to load the extension
from your source directory instead of directly in the SketchUp Plugins directory.

Extension Sources is a tool to simplify that process, especially when you have a larger
number of extension projects in development.

## How to Use

### Extension Sources Dialog

Add the path to where your extension source is located from the Extension Sources
dialog.

These paths are added to SketchUp’s Ruby `$LOAD_PATH`.

Paths can be managed from within this dialog. Toggling the path will control
whether the sources will be loaded or not. The order of which the sources are
added to the `$LOAD_PATH` can also be rearranged by dragging and dropping the
selected items in the list.

The paths are shared among all installations of SketchUp where Extension Sources
is installed.

### Extension Sources Scanner Dialog

To quickly add multiple sources Extension Sources can scan an analyze a given
directory’s sub-directories and look for the signature of extension sources.
It will look for Ruby files with `Sketchup.register_extension` accompanied by
a support folder of matching name.

The scan might take a few seconds or minutes, depending on your file system and
harddrive speed.

`Extension Sources Dialog` › `More…` (`⋮`) › `Scan for Paths…`

From the scan results the desired sources can be selected. The toggle will control
whether the source path will be loaded or not.

Note that paths already added to Extension Sources will not appear in the scan
results list.

扩展源