

Likewise, the Layout::Document has a Layout::Group structure that contains all of the Layout::Entitys on shared Layout::Layers for the entire Layout::Document (see Layout::Document#shared_entities). Each Layout::Page has its own Layout::Group structure that contains all of the Layout::Entitys on non-shared Layout::Layers for that Layout::Page (see Layout::Page#nonshared_entities). To traverse the hierarchical Layout::Group structure of a Layout::Document, it is important to understand that due to the rule about shared and non-shared Layout::Groups, there are multiple Layout::Group structures in a Layout::Document. In general, these operations follow the same behavior as the LayOut application itself. Also, functions that cause an Layout::Entity's sharedness to change may have the side effect of splitting Layout::Groups (see Layout::Entity#move_to_layer). This is enforced when creating Layout::Groups (see Layout::Group#initialize) as well as when moving Layout::Entitys into a Layout::Group (see Layout::Entity#move_to_group). Shared and Non-Shared GroupsĪ Layout::Group may not contain a mix of Layout::Entitys on both shared and non-shared Layout::Layers. Geom::Point3d objects specify model-space coordinates within a Layout::SketchUpModel. Geom::Point3d objects are used for certain functions that interact with a Layout::SketchUpModel. All 2D lengths and radii are also specified in inches, unless the function documentation specifies otherwise. The units for all Geom::Point2d objects are inches. The positive X axis extends to the right, and the positive Y axis extends downward. LayOut uses a 2D coordinate system for Layout::Entitys, whose origin is at the top-left corner of the page. Things To Know About The LayOut Ruby API LayOut's Coordinate System
Sketchup layout how to#
For an example of how to use the LayOut Ruby API from within a SketchUp extension, see the RubyExampleCreateLayOut sample. The LayOut Ruby API is included in the SketchUp application, meaning developers may utilize the LayOut Ruby API from within their SketchUp application via the console, or in their SketchUp Ruby extension without being required to include it. The online Ruby API documentation can be found here: LayOut Ruby API Online Documentation Using the LayOut Ruby API in SketchUp The documentation contains reference material for all functions, data structures, constants, and enumerations in the LayOut Ruby API. It can create new Layout::Documents as well as read or modify existing Layout::Documents. The LayOut Ruby API provides an interface for reading and writing data to and from LayOut Layout::Documents (.layout files) via an intuitive and easy to learn programming language, Ruby.
