스케치 업 루비 - seukechi eob lubi

스케치업을 하다보면 기본 툴만 가지고 그리기 힘든 객체들이 있습니다.

특히 비정형 모델같은 경우는 루비라는 PLUGIN을 사용해야 합니다.

우선 설치 방법에 대해서 알아보겠습니다.

크게 두가지 방법이 있습니다.

첫 번째입니다.

스케치 업 루비 - seukechi eob lubi

스케치업의 상부 메뉴에 Extensions - Extension Warehouse로 들어갑니다.

스케치 업 루비 - seukechi eob lubi

스케치업에 가입이 안된 분들은 가입부터 해야 합니다.

저번시간 솔리드에 대해서 알아봤는데 그것과 관련된 루비를 다운 받겠습니다.

검색창에 Solid inspector를 입력합니다.

스케치 업 루비 - seukechi eob lubi
스케치 업 루비 - seukechi eob lubi
스케치 업 루비 - seukechi eob lubi

Solid inspector2를 선택 - 그리고 Install를 클릭 - 예를 눌러 설치를 합니다.

두 번째는 sketchucation.com 사이트에서 다운받는 방법입니다.

유료와 무료가 섞여 있습니다. 

스케치 업 루비 - seukechi eob lubi

가입은 무료입니다. 가입을 하고 Plugin Store에 들어갑니다.

스케치 업 루비 - seukechi eob lubi

검색창에 JHS powerbar를 입력하고 검색을 합니다.

버전에 따라 다운받을 수 있는데 자신들이 사용하는 버전에 맞춰서 다운을 받아 줍니다.

바로 설치가 되는게 아니라 .rbz 파일로 받게 됩니다.

스케치 업 루비 - seukechi eob lubi

스케치업 상부 메뉴에서 Extensions - Extension Manager를 선택합니다.

스케치 업 루비 - seukechi eob lubi
스케치 업 루비 - seukechi eob lubi

Install Extension을 눌러서 .rbz파일을 선택합니다

스케치 업 루비 - seukechi eob lubi
스케치 업 루비 - seukechi eob lubi

화면에 설치한 루비가 보이질 않는다면 상부 메뉴바에 있는 공백에 우측마우스 클릭 하면 설치된 루비들을 볼 수 있습니다 거기서선택을 하면 화면에 나타나게 됩니다. 

감사합니다 :D

스케치 업 루비 - seukechi eob lubi
YDSKETCH

The SketchUp Ruby API allows you to interact with SketchUp models and the SketchUp application. It is available from within SketchUp, it cannot be used by itself.

Get started with the Ruby API Overview.

Visit our SketchUp Developer Center for more information and resources on SketchUp's APIs.

LayOut API

As of SketchUp 2018 you can also create and manipulate LayOut documents. For more information refer to the LayOut API Overview.

Currently the LayOut Ruby API is only available from SketchUp.

Examples and Tutorials

Getting Started

To get you started we have a collection of examples of tutorials. These will take you through various common scenarios and concepts of the SketchUp API.

github.com/SketchUp/sketchup-ruby-api-tutorials

Ruby C Extensions within SketchUp

Ruby itself allows you to work with Ruby code via C (and C++). This allows for more complex functionality and possible performance improvements. We provide examples on how to create Ruby C Extensions that work with various SketchUp versions and platforms:

github.com/SketchUp/ruby-c-extension-examples

Debugging

To make debugging SketchUp Ruby extensions easier we have a Ruby debugger interface that can be added to your SketchUp installation. This will let you use the debugging functionality of IDEs/editors that support the Ruby Debug protocol:

github.com/SketchUp/sketchup-ruby-debugger

We also have a guide on setting up RubyMine as an example of how you can set up your debugger:

github.com/SketchUp/sketchup-ruby-api-tutorials/wiki/RubyMine-Debugger-Setup

Testing

The standard testing frameworks for Ruby usually assume your tests are run from Ruby's console interpreter. This pose a problem when you want to set up unit tests for your code that needs to run within SketchUp.

To address this we created TestUp, a wrapper on top of Minitest that works within SketchUp along with a GUI interface to manage your tests.

github.com/SketchUp/testup-2

Give your IDE insight to the SketchUp Ruby API by feeding it stubs:

github.com/SketchUp/ruby-api-stubs

As an example of how to set up your IDE we created an example that describe the process for RubyMine:

github.com/SketchUp/sketchup-ruby-api-tutorials/wiki/RubyMine-Project-Setup#making-the-ide-sketchup-api-aware

VSCode example:

github.com/SketchUp/sketchup-extension-vscode-project

Documentation

If you find a typo, unclear description etc in the documentation, please log a new issue in the issue tracker for our APIs: github.com/SketchUp/api-issue-tracker/issues