ruby.sketchup.com
Class: UI::Command — SketchUp Ruby API Documentation
http://ruby.sketchup.com/UI/Command.html
The Command class is the preferred class for adding tools to the menus and Ruby toolbars. For example, you could add a menu item and pass it a code block directly, or you could first create a Command. You can add menu items as procedure blocks, as shown here, but. You have no control over whether it is grayed out, for example. Better to create a command object. Class Method Summary #. Menutext) { . } ⇒ Object. The new method is used to create a new command. Instance Method Summary #. Path) ⇒ Object.
ruby.sketchup.com
Class: Sketchup::Color — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/Color.html
The Color class is used to create and manipulate colors within SketchUp models. For methods that accept a Color object, such as the face.material method, you can pass in an actual Color object, or an object that can be converted to a Color. For example:. SketchUp ships with several built in colors in the Materials Browser. These colors are listed in the following table. 220,220,220,. Class Method Summary #. The names method is used to retrieve an array of all color names recognized by SketchUp. Red, gree...
ruby.sketchup.com
Class: Array — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Array.html
The SketchUp Array class adds additional methods to the standard Ruby Array class. Specifically, it contains methods allowing an array to behave just as a Geom: Vector3d. Object (which can be thought of as arrays of 3 coordinate values). Therefore, you can use the Array class in place of a Geom: Point3d. As a way to pass coordinate values. An array of 3 values can represent a 1 long vector pointing straight. Up in the z-direction. An array of 3 values can also represent a point 1 above the origin in.
ruby.sketchup.com
Class: Sketchup::ComponentDefinition — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/ComponentDefinition.html
The ComponentDefinition class is used to define the contents for a SketchUp component. Components are a collection of entities that can be instanced and reused multiple times throughout a model. For example, you could draw a chair once, turn it into a component, and then use 6 instances of it to surround a table. Edits to the original definition will then propagate across all of its instances. Instance Method Summary #. Instance method" title="# = (instance method)" # =. Compdef2) ⇒ Object. The descripti...
ruby.sketchup.com
Class: Sketchup::Camera — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/Camera.html
The Camera class contains methods for creating and manipulating a camera. The camera in SketchUp is the point of view from which you look at the model. Create a camera from scratch with an eye position in. X, y, z coordinates, a target position that. Defines what to look at, and an up vector. Get a handle to the current view and change its camera. Instance Method Summary #. The aspect ratio method is used to retrieve the aspect ratio of the Camera. Ratio) ⇒ Object. Description) ⇒ Object. The height metho...
ruby.sketchup.com
Class: Sketchup::AppObserver — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/AppObserver.html
This observer interface is implemented to react to application events. This interface is often used to attach other observers to models as they are opened or started. This ensures that your observers are watching all open models. For example, when one attaches a SelectionObserver. It is only attached to the Selection. Collection of a given model. If a 2nd model is opened, the new models selection changes will not fire selection callbacks unless youve attached a SelectionObserver. You can be sure to do so.
ruby.sketchup.com
Class: Geom::BoundingBox — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Geom/BoundingBox.html
That the bounding box returned for face-me components is the center of its entire range of motion. This behavior changed in SketchUp 7.1. In 7.0 and earlier, the .bounds method would return the bounds around the face-me components current, visible center. You can also create arbitrary BoundingBox objects by calling BoundingBox.new. You can get the bounding box on a model. Or you can get the bounding box on any Drawingelement object. Or you can create an empty bounding box of your own. The depth method is...
ruby.sketchup.com
Class: Sketchup::Behavior — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/Behavior.html
The Behavior class is used to control the behavior of components, which roughly correlates to the series of options that you see in the Components dialog under the edit tab, such as whether it casts shadows, glues to walls, etc. A Behavior object is accessed from a ComponentDefinition object, not created with a Behavior.new call. Grab the Behavior object from the first component definition. Instance Method Summary #. Setting) ⇒ Object. The always face camera? Setting) ⇒ Object. Setting) ⇒ Object. The sha...
ruby.sketchup.com
Class: Sketchup::ClassificationSchema — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/ClassificationSchema.html
The ClassificationSchema class represent schemas loaded in the model. Instance Method Summary #. Instance method" title="# = (instance method)" # =. Schema2) ⇒ Object. The = method is used to compare two ClassificationSchema objects for sorting. The name method returns the name of the schema. The namespace method returns the namespace of the schema. Instance method" ↑. The = method is used to compare two ClassificationSchema objects for sorting. The comparison is done based on the schema name.
ruby.sketchup.com
Class: Sketchup::Axes — SketchUp Ruby API Documentation
http://ruby.sketchup.com/Sketchup/Axes.html
SketchUps drawing axes consist of three colored lines (red, green, blue), usually perpendicular to each other, displayed in the drawing area. The exception is when the user open an instance with a non-orthogonal transformation. The root model transformation is always orthogonal. The drawing axes are used by drawing tools to align the geometry it creates as well as affecting the inference engine. Instance Method Summary #. The axes method returns the vectors representing the directions of the axes. The se...
SOCIAL ENGAGEMENT