Module: Sketchup
- Defined in:
- lib/sketchup.rb,
lib/hlr.rb,
lib/edge.rb,
lib/face.rb,
lib/menu.rb,
lib/page.rb,
lib/loop.rb,
lib/text.rb,
lib/view.rb,
lib/image.rb,
lib/color.rb,
lib/style.rb,
lib/layer.rb,
lib/pages.rb,
lib/curve.rb,
lib/tools.rb,
lib/model.rb,
lib/group.rb,
lib/camera.rb,
lib/styles.rb,
lib/entity.rb,
lib/vertex.rb,
lib/layers.rb,
lib/edgeuse.rb,
lib/texture.rb,
lib/importer.rb,
lib/entities.rb,
lib/uvhelper.rb,
lib/arccurve.rb,
lib/behavior.rb,
lib/material.rb,
lib/materials.rb,
lib/selection.rb,
lib/inputpoint.rb,
lib/shadowinfo.rb,
lib/pickhelper.rb,
lib/appobserver.rb,
lib/viewobserver.rb,
lib/sectionplane.rb,
lib/modelobserver.rb,
lib/texturewriter.rb,
lib/pagesobserver.rb,
lib/toolsobserver.rb,
lib/drawingelement.rb,
lib/entityobserver.rb,
lib/optionsmanager.rb,
lib/layersobserver.rb,
lib/definitionlist.rb,
lib/optionsprovider.rb,
lib/entitiesobserver.rb,
lib/constructionline.rb,
lib/instanceobserver.rb,
lib/renderingoptions.rb,
lib/componentinstance.rb,
lib/selectionobserver.rb,
lib/extensionsmanager.rb,
lib/materialsobserver.rb,
lib/constructionpoint.rb,
lib/shadowinfoobserver.rb,
lib/definitionobserver.rb,
lib/attributedictionary.rb,
lib/definitionsobserver.rb,
lib/componentdefinition.rb,
lib/attributedictionaries.rb,
lib/optionsproviderobserver.rb,
lib/renderingoptionsobserver.rb
Overview
The Sketchup module namespace contains methods that might be considered
"application" level methods. The "entry-point" to most plugins.
Defined Under Namespace
Classes: AppObserver, ArcCurve, AttributeDictionaries, AttributeDictionary, Behavior, Camera, Color, ComponentDefinition, ComponentInstance, ConstructionLine, ConstructionPoint, Curve, DefinitionList, DefinitionObserver, DefinitionsObserver, Drawingelement, Edge, EdgeUse, Entities, EntitiesObserver, Entity, EntityObserver, ExtensionsManager, Face, Group, HLR, Image, Importer, InputPoint, InstanceObserver, Layer, Layers, LayersObserver, Loop, Material, Materials, MaterialsObserver, Menu, Model, ModelObserver, OptionsManager, OptionsProvider, OptionsProviderObserver, Page, Pages, PagesObserver, PickHelper, RenderingOptions, RenderingOptionsObserver, SectionPlane, Selection, SelectionObserver, ShadowInfo, ShadowInfoObserver, Style, Styles, Text, Texture, TextureWriter, Tools, ToolsObserver, UVHelper, Vertex, View, ViewObserver
Class Method Summary
(collapse)
Class Method Details
+ (Model) active_model
Note:
On Windows, there is only a single active model. Since the Mac version of
SketchUp can have multiple models open, this returns the currently focused
model.
The model!
18
19
20
21
22
|
# File 'lib/sketchup.rb', line 18
def self.active_model
if @model.class != Sketchup::Model
@model = Sketchup::Model.new
end
end
|
+ (Object) add_observer(app_observer)
Attaches an AppObserver to the current SketchUp Application. You should
retain a reference to the observer if you need to remove
it at a later time.
37
38
|
# File 'lib/sketchup.rb', line 37
def self.add_observer(app_observer)
end
|
+ (Object) app_name
40
41
|
# File 'lib/sketchup.rb', line 40
def self.app_name
end
|
+ (Object) break_edges=
42
43
|
# File 'lib/sketchup.rb', line 42
def self.break_edges=
end
|
+ (Boolean) break_edges?
44
45
|
# File 'lib/sketchup.rb', line 44
def self.break_edges?
end
|
+ (Object) create_texture_writer
46
47
|
# File 'lib/sketchup.rb', line 46
def self.create_texture_writer
end
|
+ (Object) display_name_from_action
48
49
|
# File 'lib/sketchup.rb', line 48
def self.display_name_from_action
end
|
55
56
|
# File 'lib/sketchup.rb', line 55
def self.extensions
end
|
+ (Object) file_new
58
59
|
# File 'lib/sketchup.rb', line 58
def self.file_new
end
|
+ (Object) find_support_file
60
61
|
# File 'lib/sketchup.rb', line 60
def self.find_support_file
end
|
+ (Object) find_support_files
62
63
|
# File 'lib/sketchup.rb', line 62
def self.find_support_files
end
|
64
65
|
# File 'lib/sketchup.rb', line 64
def self.format_angle
end
|
66
67
|
# File 'lib/sketchup.rb', line 66
def self.format_area
end
|
68
69
|
# File 'lib/sketchup.rb', line 68
def self.format_degrees
end
|
70
71
|
# File 'lib/sketchup.rb', line 70
def self.format_length
end
|
+ (Object) get_datfile_info
72
73
|
# File 'lib/sketchup.rb', line 72
def self.get_datfile_info
end
|
+ (Object) get_i18ndatfile_info
74
75
|
# File 'lib/sketchup.rb', line 74
def self.get_i18ndatfile_info
end
|
+ (Object) get_locale
76
77
|
# File 'lib/sketchup.rb', line 76
def self.get_locale
end
|
+ (Object) get_resource_path
78
79
|
# File 'lib/sketchup.rb', line 78
def self.get_resource_path
end
|
+ (Object) get_shortcuts
80
81
|
# File 'lib/sketchup.rb', line 80
def self.get_shortcuts
end
|
+ (ExtensionManager) install_from_archive(path)
Installs the contents of a ZIP archive file into SketchUp's Plugins
folder. If the ZIP contains subfolders, these will be preserved.
85
86
87
|
# File 'lib/sketchup.rb', line 85
def self.install_from_archive(path)
end
|
+ (Object) is_online
89
90
|
# File 'lib/sketchup.rb', line 89
def self.is_online
end
|
+ (Boolean) is_pro?
91
92
|
# File 'lib/sketchup.rb', line 91
def self.is_pro?
end
|
+ (Boolean) is_valid_filename?
93
94
|
# File 'lib/sketchup.rb', line 93
def self.is_valid_filename?
end
|
+ (Boolean) load(file)
Loads both encrypted (.rbs) and non-encrypted Ruby files.
102
103
|
# File 'lib/sketchup.rb', line 102
def self.load(file)
end
|
+ (Object) open_file
104
105
|
# File 'lib/sketchup.rb', line 104
def self.open_file
end
|
+ (Object) os_language
106
107
|
# File 'lib/sketchup.rb', line 106
def self.os_language
end
|
+ (Object) parse_length
108
109
|
# File 'lib/sketchup.rb', line 108
def self.parse_length
end
|
+ (Object) plugins_disabled=(true_or_false)
112
113
|
# File 'lib/sketchup.rb', line 112
def self.plugins_disabled=(true_or_false)
end
|
+ (Boolean) plugins_disabled?
115
116
|
# File 'lib/sketchup.rb', line 115
def self.plugins_disabled?
end
|
+ (Object) read_default
119
120
|
# File 'lib/sketchup.rb', line 119
def self.read_default
end
|
+ (Object) register_extension
121
122
|
# File 'lib/sketchup.rb', line 121
def self.register_extension
end
|
+ (Object) register_importer
123
124
|
# File 'lib/sketchup.rb', line 123
def self.register_importer
end
|
+ (Boolean) remove_observer(app_observer)
134
135
|
# File 'lib/sketchup.rb', line 134
def self.remove_observer(app_observer)
end
|
137
138
|
# File 'lib/sketchup.rb', line 137
def self.require
end
|
+ (Object) save_thumbnail
140
141
|
# File 'lib/sketchup.rb', line 140
def self.save_thumbnail
end
|
+ (Object) send_action
143
144
|
# File 'lib/sketchup.rb', line 143
def self.send_action
end
|
+ (Boolean) set_status_text(text, position)
Display a message in SketchUp's Status Bar or VCB value or label.
153
154
|
# File 'lib/sketchup.rb', line 153
def self.set_status_text(text, position)
end
|
+ (Boolean) status_text=(text)
True if successful, false if not.
159
160
|
# File 'lib/sketchup.rb', line 159
def self.status_text=(text)
end
|
+ (Object) template
161
162
|
# File 'lib/sketchup.rb', line 161
def self.template
end
|
+ (Object) template=
163
164
|
# File 'lib/sketchup.rb', line 163
def self.template=
end
|
+ (Object) template_dir
165
166
|
# File 'lib/sketchup.rb', line 165
def self.template_dir
end
|
167
168
|
# File 'lib/sketchup.rb', line 167
def self.undo
end
|
+ (Object) vcb_label=(label)
Sets the label for the VCB, more recently known as the Measurements box.
172
173
|
# File 'lib/sketchup.rb', line 172
def self.vcb_label=(label)
end
|
+ (Object) vcb_value=(str)
Sets the value of the VCB, aka the Measurements box.
177
178
|
# File 'lib/sketchup.rb', line 177
def self.vcb_value=(str)
end
|
180
181
|
# File 'lib/sketchup.rb', line 180
def self.version
end
|
+ (Object) version_number
182
183
|
# File 'lib/sketchup.rb', line 182
def self.version_number
end
|
+ (Boolean) write_default(section, key, value)
Write a key-value pair to the specified section of the Registry. Persistent
storage. Sections appear under HKCU\Software\Google\SketchUp(v) where v is
the SketchUp major version.
195
196
|
# File 'lib/sketchup.rb', line 195
def self.write_default(section, key, value)
end
|