Class: Sketchup::Page
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/Page.rb
Overview
The Page class contains methods to extract information and modify the properties of an individual page.
Note that inside the SketchUp user interface pages are called “Scenes”.
Instance Method Summary collapse
-
#axes ⇒ Object
The axes method returns the drawing axes for the page.
-
#camera ⇒ Object
The camera method retrieves the camera for a particular page.
-
#delay_time ⇒ Object
The delay_time method retrieves the amount of time, in seconds, that a page will be displayed before transition to another page during a tour.
-
#delay_time=(seconds) ⇒ Object
The delay_time= method sets the amount of time, in seconds, that a page will be displayed before transitioning to another page during a tour.
-
#description ⇒ Object
The description method retrieves the description for a page as found in the Scenes manager dialog.
-
#description=(description) ⇒ Object
The description method sets the description for a page as found in the Scenes manager dialog.
-
#get_drawingelement_visibility(element) ⇒ Boolean
The #get_drawingelement_visibility method is used to get the visibility of a drawing element on a particular page.
-
#hidden_entities ⇒ Object
The hidden_entities method retrieves all hidden entities within a page.
-
#include_in_animation=(include) ⇒ Sketchup::Page
The #include_in_animation= method controls whether the page should be included when exporting an animation from the model.
-
#include_in_animation? ⇒ Boolean
The #include_in_animation? method determines whether the page should be included when exporting an animation from the model.
-
#label ⇒ Object
The label method retrieves the label for a page from the page tab.
-
#layer_folders ⇒ Array<Sketchup::LayerFolder>?
The #layer_folders method retrieves the hidden layer folders associated with a page.
-
#layers ⇒ Array<Sketchup::Layer>?
The #layers method retrieves layers that don’t use their default visibility on this page.
-
#name ⇒ Object
The name method retrieves the name for a page from the page tab.
-
#name=(name) ⇒ Object
The name= method sets the name for a page’s tab.
-
#rendering_options ⇒ Object
The rendering_options method retrieves a RenderingOptions object for the page.
-
#set_drawingelement_visibility(element, visibility) ⇒ Boolean
The #set_drawingelement_visibility method is used to change the visibility of a drawing element on a particular page.
-
#set_visibility(arg1, arg2) ⇒ Object
The #set_visibility method sets the visibility for a layer or layer folder on a page.
-
#shadow_info ⇒ Object
The shadow_info method retrieves the ShadowInfo object for the page.
-
#style ⇒ Object
The style method retrieves the style associated with the page.
-
#transition_time ⇒ Object
Get the amount of time that it takes to transition to this page during a slideshow or animation export.
-
#transition_time=(trans_time) ⇒ Object
The transition_time= method is used to set the transition time.
-
#update(flags) ⇒ Boolean
The #update method performs an update on the page properties based on the current view that the user has.
-
#use_axes=(pagesettings) ⇒ Object
The use_axes= method sets the page’s axes property.
-
#use_axes? ⇒ Boolean
The use_axes? method determines whether you are storing the axes property with the page.
-
#use_camera=(setting) ⇒ Object
The use_camera= method sets the page’s camera property.
-
#use_camera? ⇒ Boolean
The use_camera? method determines whether you are storing the camera property with the page.
-
#use_hidden=(setting) ⇒ Object
deprecated
Deprecated.
The functionality is replaced by #use_hidden_geometry= and #use_hidden_objects= in SketchUp 2020.1.
-
#use_hidden? ⇒ Boolean
deprecated
Deprecated.
The functionality is replaced by #use_hidden_geometry? and #use_hidden_objects? in SketchUp 2020.1.
-
#use_hidden_geometry=(setting) ⇒ Object
Sets the page’s use hidden geometry property.
-
#use_hidden_geometry? ⇒ Boolean
Returns the use hidden geometry property from the page.
-
#use_hidden_layers=(setting) ⇒ Object
The use_hidden_layers= method sets the page’s hidden layers property.
-
#use_hidden_layers? ⇒ Boolean
The use_hidden_layers? method determines whether you are storing the hidden layers property with the page.
-
#use_hidden_objects=(setting) ⇒ Object
Sets the page’s use hidden objects property.
-
#use_hidden_objects? ⇒ Boolean
Returns the use hidden objects property from the page.
-
#use_rendering_options=(setting) ⇒ Object
The use_rendering_optoins= method sets the page’s display settings property.
-
#use_rendering_options? ⇒ Boolean
The use_rendering_options? method determines whether you are storing the rendering options property with the page.
-
#use_section_planes=(setting) ⇒ Object
The use_section_planes= method sets the page’s section planes property.
-
#use_section_planes? ⇒ Boolean
The use_section_planes? method determines whether you are storing the section planes property with the page.
-
#use_shadow_info=(setting) ⇒ Object
The use_shadow_info= method sets the page’s shadow info property.
-
#use_shadow_info? ⇒ Boolean
The use_shadow_info? method determines whether you are storing the shadow info property with the page.
-
#use_style=(style) ⇒ Object
The use_style= method sets the style to be used by the page.
-
#use_style? ⇒ Boolean
The use_style? method determines whether storing a style with the page.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
#axes ⇒ Object
The axes method returns the drawing axes for the page.
25 26 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 25 def axes end |
#camera ⇒ Object
The camera method retrieves the camera for a particular page.
40 41 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 40 def camera end |
#delay_time ⇒ Object
The delay_time method retrieves the amount of time, in seconds, that a page will be displayed before transition to another page during a tour.
The default delay time can be modified in the Model Info > Animation panel of the SketchUp User Interface. If this method returns -1, the default delay time is used.
59 60 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 59 def delay_time end |
#delay_time=(seconds) ⇒ Object
The delay_time= method sets the amount of time, in seconds, that a page will be displayed before transitioning to another page during a tour. If you set the delay for a page to be -1, the default delay time will be used.
The default delay time can be modified in the Model Info > Animation panel of the SketchUp User Interface.
81 82 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 81 def delay_time=(seconds) end |
#description ⇒ Object
The description method retrieves the description for a page as found in the Scenes manager dialog.
96 97 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 96 def description end |
#description=(description) ⇒ Object
The description method sets the description for a page as found in the Scenes manager dialog.
114 115 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 114 def description=(description) end |
#get_drawingelement_visibility(element) ⇒ Boolean
The #get_drawingelement_visibility method is used to get the visibility of a drawing element on a particular page.
134 135 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 134 def get_drawingelement_visibility(element) end |
#hidden_entities ⇒ Object
The hidden_entities method retrieves all hidden entities within a page.
149 150 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 149 def hidden_entities end |
#include_in_animation=(include) ⇒ Sketchup::Page
The #include_in_animation= method controls whether the page should be included when exporting an animation from the model.
166 167 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 166 def include_in_animation=(include) end |
#include_in_animation? ⇒ Boolean
The #include_in_animation? method determines whether the page should be included when exporting an animation from the model.
179 180 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 179 def include_in_animation? end |
#label ⇒ Object
The label method retrieves the label for a page from the page tab.
193 194 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 193 def label end |
#layer_folders ⇒ Array<Sketchup::LayerFolder>?
The #layer_folders method retrieves the hidden layer folders associated with a page.
209 210 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 209 def layer_folders end |
#layers ⇒ Array<Sketchup::Layer>?
The #layers method retrieves layers that don’t use their default visibility on this page.
234 235 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 234 def layers end |
#name ⇒ Object
The name method retrieves the name for a page from the page tab.
248 249 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 248 def name end |
#name=(name) ⇒ Object
The name= method sets the name for a page’s tab.
265 266 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 265 def name=(name) end |
#rendering_options ⇒ Object
The rendering_options method retrieves a RenderingOptions object for the page.
280 281 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 280 def end |
#set_drawingelement_visibility(element, visibility) ⇒ Boolean
The #set_drawingelement_visibility method is used to change the visibility of a drawing element on a particular page. Only drawing elements on the root of the model, as well as nested instances of components, groups, and images are controlled by Page visibility.
304 305 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 304 def set_drawingelement_visibility(element, visibility) end |
#set_visibility(layer, visible_for_page) ⇒ Object #set_visibility(layer_folder, visible_for_page) ⇒ Sketchup::Page
The #set_visibility method sets the visibility for a layer or layer folder on a page.
331 332 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 331 def set_visibility(arg1, arg2) end |
#shadow_info ⇒ Object
The shadow_info method retrieves the ShadowInfo object for the page.
346 347 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 346 def shadow_info end |
#style ⇒ Object
The style method retrieves the style associated with the page.
360 361 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 360 def style end |
#transition_time ⇒ Object
Get the amount of time that it takes to transition to this page during a slideshow or animation export. If this value is -1, it means to use the default transition time.
378 379 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 378 def transition_time end |
#transition_time=(trans_time) ⇒ Object
The transition_time= method is used to set the transition time.
395 396 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 395 def transition_time=(trans_time) end |
#update(flags) ⇒ Boolean
The #update method performs an update on the page properties based on the current view that the user has. What properties of the Page get updated are controlled via an integer whose bits corresponds to different properties. These flags can be used individually or combined using bitwise OR.
PAGE_USE_CAMERA # Camera Location
PAGE_USE_RENDERING_OPTIONS # Drawing Style
PAGE_USE_SHADOWINFO # Shadow Setting
PAGE_USE_SKETCHCS # Axes Location
PAGE_USE_HIDDEN # Hidden Geometry & Objects (Up 2019 and older)
PAGE_USE_HIDDEN_GEOMETRY # Hidden Geometry (SU 2020 and later)
PAGE_USE_HIDDEN_OBJECTS # Hidden Objects (SU 2020 and later)
PAGE_USE_LAYER_VISIBILITY # Visible Layers
PAGE_USE_SECTION_PLANES # Active Section Planes
PAGE_USE_ALL # All possible scene properties
430 431 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 430 def update(flags) end |
#use_axes=(pagesettings) ⇒ Object
The use_axes= method sets the page’s axes property.
450 451 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 450 def use_axes=(pagesettings) end |
#use_axes? ⇒ Boolean
The use_axes? method determines whether you are storing the axes property with the page.
467 468 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 467 def use_axes? end |
#use_camera=(setting) ⇒ Object
The use_camera= method sets the page’s camera property.
486 487 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 486 def use_camera=(setting) end |
#use_camera? ⇒ Boolean
The use_camera? method determines whether you are storing the camera property with the page.
503 504 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 503 def use_camera? end |
#use_hidden=(setting) ⇒ Object
The functionality is replaced by #use_hidden_geometry= and #use_hidden_objects= in SketchUp 2020.1.
The use_hidden= method sets the page’s hidden property.
529 530 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 529 def use_hidden=(setting) end |
#use_hidden? ⇒ Boolean
The functionality is replaced by #use_hidden_geometry? and #use_hidden_objects? in SketchUp 2020.1.
The use_hidden? method determines whether you are storing the hidden property with the page.
553 554 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 553 def use_hidden? end |
#use_hidden_geometry=(setting) ⇒ Object
Sets the page’s use hidden geometry property.
569 570 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 569 def use_hidden_geometry=(setting) end |
#use_hidden_geometry? ⇒ Boolean
Returns the use hidden geometry property from the page.
583 584 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 583 def use_hidden_geometry? end |
#use_hidden_layers=(setting) ⇒ Object
The use_hidden_layers= method sets the page’s hidden layers property.
603 604 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 603 def use_hidden_layers=(setting) end |
#use_hidden_layers? ⇒ Boolean
The use_hidden_layers? method determines whether you are storing the hidden layers property with the page.
620 621 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 620 def use_hidden_layers? end |
#use_hidden_objects=(setting) ⇒ Object
Sets the page’s use hidden objects property.
636 637 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 636 def use_hidden_objects=(setting) end |
#use_hidden_objects? ⇒ Boolean
Returns the use hidden objects property from the page.
650 651 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 650 def use_hidden_objects? end |
#use_rendering_options=(setting) ⇒ Object
The use_rendering_optoins= method sets the page’s display settings property.
670 671 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 670 def (setting) end |
#use_rendering_options? ⇒ Boolean
The use_rendering_options? method determines whether you are storing the rendering options property with the page.
687 688 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 687 def end |
#use_section_planes=(setting) ⇒ Object
The use_section_planes= method sets the page’s section planes property.
707 708 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 707 def use_section_planes=(setting) end |
#use_section_planes? ⇒ Boolean
The use_section_planes? method determines whether you are storing the section planes property with the page.
724 725 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 724 def use_section_planes? end |
#use_shadow_info=(setting) ⇒ Object
The use_shadow_info= method sets the page’s shadow info property.
743 744 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 743 def use_shadow_info=(setting) end |
#use_shadow_info? ⇒ Boolean
The use_shadow_info? method determines whether you are storing the shadow info property with the page.
760 761 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 760 def use_shadow_info? end |
#use_style=(style) ⇒ Object
The use_style= method sets the style to be used by the page.
778 779 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 778 def use_style=(style) end |
#use_style? ⇒ Boolean
The use_style? method determines whether storing a style with the page.
794 795 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Page.rb', line 794 def use_style? end |