sketchup-api-stubs 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sketchup-api-stubs/sketchup.rb +157 -151
- data/lib/sketchup-api-stubs/stubs/Array.rb +741 -741
- data/lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb +322 -322
- data/lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb +182 -172
- data/lib/sketchup-api-stubs/stubs/Geom/LatLong.rb +111 -126
- data/lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb +102 -102
- data/lib/sketchup-api-stubs/stubs/Geom/Point2d.rb +423 -400
- data/lib/sketchup-api-stubs/stubs/Geom/Point3d.rb +693 -661
- data/lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb +535 -509
- data/lib/sketchup-api-stubs/stubs/Geom/Transformation.rb +500 -476
- data/lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb +267 -263
- data/lib/sketchup-api-stubs/stubs/Geom/UTM.rb +133 -141
- data/lib/sketchup-api-stubs/stubs/Geom/Vector2d.rb +547 -522
- data/lib/sketchup-api-stubs/stubs/Geom/Vector3d.rb +678 -693
- data/lib/sketchup-api-stubs/stubs/Geom.rb +351 -351
- data/lib/sketchup-api-stubs/stubs/LanguageHandler.rb +93 -93
- data/lib/sketchup-api-stubs/stubs/Layout/AngularDimension.rb +595 -595
- data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinition.rb +751 -747
- data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinitions.rb +183 -183
- data/lib/sketchup-api-stubs/stubs/Layout/ConnectionPoint.rb +70 -70
- data/lib/sketchup-api-stubs/stubs/Layout/Dictionary.rb +234 -0
- data/lib/sketchup-api-stubs/stubs/Layout/Document.rb +683 -517
- data/lib/sketchup-api-stubs/stubs/Layout/Ellipse.rb +29 -29
- data/lib/sketchup-api-stubs/stubs/Layout/Entities.rb +148 -148
- data/lib/sketchup-api-stubs/stubs/Layout/Entity.rb +464 -353
- data/lib/sketchup-api-stubs/stubs/Layout/FormattedText.rb +354 -354
- data/lib/sketchup-api-stubs/stubs/Layout/Grid.rb +311 -311
- data/lib/sketchup-api-stubs/stubs/Layout/Group.rb +261 -261
- data/lib/sketchup-api-stubs/stubs/Layout/Image.rb +91 -91
- data/lib/sketchup-api-stubs/stubs/Layout/Label.rb +370 -370
- data/lib/sketchup-api-stubs/stubs/Layout/Layer.rb +218 -218
- data/lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb +128 -128
- data/lib/sketchup-api-stubs/stubs/Layout/Layers.rb +225 -225
- data/lib/sketchup-api-stubs/stubs/Layout/LinearDimension.rb +614 -567
- data/lib/sketchup-api-stubs/stubs/Layout/LockedEntityError.rb +10 -10
- data/lib/sketchup-api-stubs/stubs/Layout/LockedLayerError.rb +11 -11
- data/lib/sketchup-api-stubs/stubs/Layout/Page.rb +282 -183
- data/lib/sketchup-api-stubs/stubs/Layout/PageInfo.rb +458 -387
- data/lib/sketchup-api-stubs/stubs/Layout/Pages.rb +209 -209
- data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +346 -344
- data/lib/sketchup-api-stubs/stubs/Layout/Rectangle.rb +174 -174
- data/lib/sketchup-api-stubs/stubs/Layout/ReferenceEntity.rb +82 -82
- data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +714 -692
- data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +1565 -1519
- data/lib/sketchup-api-stubs/stubs/Layout/Table.rb +290 -290
- data/lib/sketchup-api-stubs/stubs/Layout/TableCell.rb +149 -149
- data/lib/sketchup-api-stubs/stubs/Layout/TableColumn.rb +139 -139
- data/lib/sketchup-api-stubs/stubs/Layout/TableRow.rb +135 -135
- data/lib/sketchup-api-stubs/stubs/Layout.rb +25 -25
- data/lib/sketchup-api-stubs/stubs/Length.rb +286 -278
- data/lib/sketchup-api-stubs/stubs/Numeric.rb +249 -249
- data/lib/sketchup-api-stubs/stubs/Sketchup/Animation.rb +196 -144
- data/lib/sketchup-api-stubs/stubs/Sketchup/AppObserver.rb +169 -169
- data/lib/sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb +226 -209
- data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb +145 -150
- data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb +294 -281
- data/lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb +149 -149
- data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +296 -302
- data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +473 -478
- data/lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb +63 -63
- data/lib/sketchup-api-stubs/stubs/Sketchup/Classifications.rb +121 -121
- data/lib/sketchup-api-stubs/stubs/Sketchup/Color.rb +294 -294
- data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb +673 -659
- data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb +600 -593
- data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +76 -76
- data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb +252 -257
- data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionPoint.rb +32 -32
- data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +201 -201
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionList.rb +443 -449
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionObserver.rb +74 -74
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionsObserver.rb +104 -104
- data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +167 -165
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb +306 -306
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionObserver.rb +42 -42
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionRadial.rb +87 -87
- data/lib/sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb +403 -406
- data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +397 -397
- data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +211 -211
- data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +1282 -1239
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesBuilder.rb +261 -261
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb +127 -127
- data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +519 -545
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb +60 -60
- data/lib/sketchup-api-stubs/stubs/Sketchup/Environment.rb +406 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/Environments.rb +185 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/EnvironmentsObserver.rb +113 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb +122 -125
- data/lib/sketchup-api-stubs/stubs/Sketchup/Face.rb +1006 -937
- data/lib/sketchup-api-stubs/stubs/Sketchup/FrameChangeObserver.rb +102 -102
- data/lib/sketchup-api-stubs/stubs/Sketchup/Group.rb +740 -750
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Request.rb +289 -282
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb +64 -62
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http.rb +27 -27
- data/lib/sketchup-api-stubs/stubs/Sketchup/Image.rb +405 -468
- data/lib/sketchup-api-stubs/stubs/Sketchup/ImageRep.rb +266 -266
- data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +189 -189
- data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +432 -406
- data/lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb +84 -84
- data/lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb +307 -306
- data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +332 -326
- data/lib/sketchup-api-stubs/stubs/Sketchup/LayerFolder.rb +380 -422
- data/lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb +409 -427
- data/lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb +241 -249
- data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +86 -86
- data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb +55 -48
- data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyle.rb +24 -24
- data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb +114 -114
- data/lib/sketchup-api-stubs/stubs/Sketchup/LoadHandler.rb +70 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +137 -137
- data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +1115 -414
- data/lib/sketchup-api-stubs/stubs/Sketchup/Materials.rb +330 -317
- data/lib/sketchup-api-stubs/stubs/Sketchup/MaterialsObserver.rb +142 -142
- data/lib/sketchup-api-stubs/stubs/Sketchup/Menu.rb +93 -93
- data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +1714 -1652
- data/lib/sketchup-api-stubs/stubs/Sketchup/ModelObserver.rb +372 -357
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb +133 -130
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +271 -271
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb +58 -58
- data/lib/sketchup-api-stubs/stubs/Sketchup/Overlay.rb +463 -490
- data/lib/sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb +104 -116
- data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +939 -797
- data/lib/sketchup-api-stubs/stubs/Sketchup/Pages.rb +388 -361
- data/lib/sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb +77 -77
- data/lib/sketchup-api-stubs/stubs/Sketchup/PickHelper.rb +501 -478
- data/lib/sketchup-api-stubs/stubs/Sketchup/RegionalSettings.rb +43 -43
- data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +385 -361
- data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptionsObserver.rb +45 -45
- data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +150 -150
- data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +451 -458
- data/lib/sketchup-api-stubs/stubs/Sketchup/SelectionObserver.rb +115 -115
- data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +211 -212
- data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb +259 -255
- data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb +59 -59
- data/lib/sketchup-api-stubs/stubs/Sketchup/Skp.rb +40 -40
- data/lib/sketchup-api-stubs/stubs/Sketchup/Snap.rb +125 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/Style.rb +88 -69
- data/lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb +263 -217
- data/lib/sketchup-api-stubs/stubs/Sketchup/Text.rb +283 -262
- data/lib/sketchup-api-stubs/stubs/Sketchup/Texture.rb +199 -217
- data/lib/sketchup-api-stubs/stubs/Sketchup/TextureWriter.rb +237 -237
- data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +924 -834
- data/lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb +132 -132
- data/lib/sketchup-api-stubs/stubs/Sketchup/ToolsObserver.rb +156 -156
- data/lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb +75 -75
- data/lib/sketchup-api-stubs/stubs/Sketchup/Vertex.rb +143 -142
- data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +1566 -1311
- data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +71 -45
- data/lib/sketchup-api-stubs/stubs/Sketchup.rb +1429 -1377
- data/lib/sketchup-api-stubs/stubs/SketchupExtension.rb +353 -353
- data/lib/sketchup-api-stubs/stubs/String.rb +24 -24
- data/lib/sketchup-api-stubs/stubs/UI/Command.rb +399 -389
- data/lib/sketchup-api-stubs/stubs/UI/HtmlDialog.rb +580 -494
- data/lib/sketchup-api-stubs/stubs/UI/Notification.rb +280 -269
- data/lib/sketchup-api-stubs/stubs/UI/Toolbar.rb +258 -241
- data/lib/sketchup-api-stubs/stubs/UI/WebDialog.rb +636 -635
- data/lib/sketchup-api-stubs/stubs/UI.rb +791 -683
- data/lib/sketchup-api-stubs/stubs/_top_level.rb +303 -303
- data/lib/sketchup-api-stubs.rb +1 -1
- metadata +10 -24
|
@@ -1,458 +1,451 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
2
|
-
# License:: The MIT License (MIT)
|
|
3
|
-
|
|
4
|
-
# A set of the currently selected
|
|
5
|
-
# to get a Selection object. Note that the order of
|
|
6
|
-
# (<code>selection[0]</code>, <code>selection[1]</code> and so on) in the set
|
|
7
|
-
# is in no particular order and should not be assumed to be in the same order
|
|
8
|
-
# as the user selected the
|
|
9
|
-
#
|
|
10
|
-
# @example
|
|
11
|
-
# # Get a handle to the selection set.
|
|
12
|
-
# model = Sketchup.active_model
|
|
13
|
-
# selection = model.selection
|
|
14
|
-
#
|
|
15
|
-
# @version SketchUp 6.0
|
|
16
|
-
class Sketchup::Selection
|
|
17
|
-
|
|
18
|
-
# Includes
|
|
19
|
-
|
|
20
|
-
include Enumerable
|
|
21
|
-
|
|
22
|
-
# Instance Methods
|
|
23
|
-
|
|
24
|
-
# The {#[]} method is used to retrieve
|
|
25
|
-
# by index. Index 0 is the first
|
|
26
|
-
#
|
|
27
|
-
# This method is not very efficient. If you need to look at every entity in
|
|
28
|
-
# the selection, consider using {#each} instead of using this method
|
|
29
|
-
# to manually grab each one.
|
|
30
|
-
#
|
|
31
|
-
# @example
|
|
32
|
-
# model = Sketchup.active_model
|
|
33
|
-
# entities = model.active_entities
|
|
34
|
-
# selection = model.selection
|
|
35
|
-
# selection.add(entities.to_a)
|
|
36
|
-
# p selection[0]
|
|
37
|
-
#
|
|
38
|
-
# @param [Integer] index
|
|
39
|
-
# The index of the
|
|
40
|
-
#
|
|
41
|
-
# @return [Sketchup::
|
|
42
|
-
#
|
|
43
|
-
# @see #at
|
|
44
|
-
#
|
|
45
|
-
# @version SketchUp 6.0
|
|
46
|
-
def [](index)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
# The add method is used to add
|
|
50
|
-
# added to the Selection are visually indicated by the selection bounding box.
|
|
51
|
-
#
|
|
52
|
-
# You can pass it individual
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
# @overload add(
|
|
71
|
-
#
|
|
72
|
-
# @param [Array<Sketchup::
|
|
73
|
-
#
|
|
74
|
-
# @
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
#
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
# @
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
#
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
107
|
-
#
|
|
108
|
-
#
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
# @
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
#
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
-
#
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
#
|
|
125
|
-
#
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
#
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
#
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
# @
|
|
143
|
-
#
|
|
144
|
-
# @
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
#
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
#
|
|
153
|
-
# @
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
#
|
|
157
|
-
# @
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
# @
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
#
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
#
|
|
170
|
-
#
|
|
171
|
-
#
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
#
|
|
179
|
-
#
|
|
180
|
-
#
|
|
181
|
-
#
|
|
182
|
-
# @
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
#
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
#
|
|
191
|
-
# selection.
|
|
192
|
-
#
|
|
193
|
-
# @
|
|
194
|
-
#
|
|
195
|
-
#
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
#
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
#
|
|
204
|
-
#
|
|
205
|
-
#
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
#
|
|
209
|
-
# @
|
|
210
|
-
#
|
|
211
|
-
#
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
#
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
#
|
|
220
|
-
#
|
|
221
|
-
#
|
|
222
|
-
#
|
|
223
|
-
#
|
|
224
|
-
#
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
# @
|
|
230
|
-
#
|
|
231
|
-
# @
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
#
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
#
|
|
240
|
-
#
|
|
241
|
-
#
|
|
242
|
-
#
|
|
243
|
-
#
|
|
244
|
-
#
|
|
245
|
-
#
|
|
246
|
-
#
|
|
247
|
-
#
|
|
248
|
-
#
|
|
249
|
-
#
|
|
250
|
-
#
|
|
251
|
-
#
|
|
252
|
-
#
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
#
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
#
|
|
261
|
-
#
|
|
262
|
-
#
|
|
263
|
-
# @
|
|
264
|
-
#
|
|
265
|
-
#
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
#
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
#
|
|
274
|
-
#
|
|
275
|
-
#
|
|
276
|
-
# @
|
|
277
|
-
#
|
|
278
|
-
#
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
#
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
#
|
|
287
|
-
#
|
|
288
|
-
# @
|
|
289
|
-
#
|
|
290
|
-
#
|
|
291
|
-
#
|
|
292
|
-
# @
|
|
293
|
-
#
|
|
294
|
-
# @
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
#
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
#
|
|
303
|
-
#
|
|
304
|
-
#
|
|
305
|
-
#
|
|
306
|
-
#
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
#
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
#
|
|
315
|
-
#
|
|
316
|
-
# @
|
|
317
|
-
#
|
|
318
|
-
#
|
|
319
|
-
#
|
|
320
|
-
# @
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
#
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
#
|
|
329
|
-
#
|
|
330
|
-
#
|
|
331
|
-
#
|
|
332
|
-
#
|
|
333
|
-
#
|
|
334
|
-
#
|
|
335
|
-
#
|
|
336
|
-
#
|
|
337
|
-
#
|
|
338
|
-
#
|
|
339
|
-
#
|
|
340
|
-
#
|
|
341
|
-
#
|
|
342
|
-
#
|
|
343
|
-
#
|
|
344
|
-
#
|
|
345
|
-
#
|
|
346
|
-
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
351
|
-
#
|
|
352
|
-
# @
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
#
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
367
|
-
#
|
|
368
|
-
#
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
#
|
|
373
|
-
#
|
|
374
|
-
#
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
#
|
|
379
|
-
#
|
|
380
|
-
#
|
|
381
|
-
#
|
|
382
|
-
#
|
|
383
|
-
#
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
#
|
|
388
|
-
#
|
|
389
|
-
#
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
#
|
|
394
|
-
#
|
|
395
|
-
#
|
|
396
|
-
#
|
|
397
|
-
#
|
|
398
|
-
#
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
#
|
|
403
|
-
#
|
|
404
|
-
# @
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
#
|
|
409
|
-
#
|
|
410
|
-
# @
|
|
411
|
-
#
|
|
412
|
-
#
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
#
|
|
417
|
-
#
|
|
418
|
-
#
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
#
|
|
423
|
-
#
|
|
424
|
-
#
|
|
425
|
-
#
|
|
426
|
-
#
|
|
427
|
-
#
|
|
428
|
-
#
|
|
429
|
-
#
|
|
430
|
-
#
|
|
431
|
-
#
|
|
432
|
-
#
|
|
433
|
-
#
|
|
434
|
-
#
|
|
435
|
-
#
|
|
436
|
-
#
|
|
437
|
-
#
|
|
438
|
-
#
|
|
439
|
-
#
|
|
440
|
-
#
|
|
441
|
-
#
|
|
442
|
-
#
|
|
443
|
-
#
|
|
444
|
-
#
|
|
445
|
-
#
|
|
446
|
-
#
|
|
447
|
-
#
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
# @return [Integer] the number of Entity objects changed
|
|
453
|
-
#
|
|
454
|
-
# @version SketchUp 6.0
|
|
455
|
-
def toggle(*args)
|
|
456
|
-
end
|
|
457
|
-
|
|
458
|
-
end
|
|
1
|
+
# Copyright:: Copyright 2026 Trimble Inc.
|
|
2
|
+
# License:: The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
# A set of the currently selected drawing elements. Use the Model.selection method
|
|
5
|
+
# to get a Selection object. Note that the order of drawing elements
|
|
6
|
+
# (<code>selection[0]</code>, <code>selection[1]</code> and so on) in the set
|
|
7
|
+
# is in no particular order and should not be assumed to be in the same order
|
|
8
|
+
# as the user selected the drawing elements.
|
|
9
|
+
#
|
|
10
|
+
# @example
|
|
11
|
+
# # Get a handle to the selection set.
|
|
12
|
+
# model = Sketchup.active_model
|
|
13
|
+
# selection = model.selection
|
|
14
|
+
#
|
|
15
|
+
# @version SketchUp 6.0
|
|
16
|
+
class Sketchup::Selection
|
|
17
|
+
|
|
18
|
+
# Includes
|
|
19
|
+
|
|
20
|
+
include Enumerable
|
|
21
|
+
|
|
22
|
+
# Instance Methods
|
|
23
|
+
|
|
24
|
+
# The {#[]} method is used to retrieve a {Sketchup::Drawingelement} from the selection
|
|
25
|
+
# by index. Index 0 is the first Drawingelement in the selection.
|
|
26
|
+
#
|
|
27
|
+
# This method is not very efficient. If you need to look at every entity in
|
|
28
|
+
# the selection, consider using {#each} instead of using this method
|
|
29
|
+
# to manually grab each one.
|
|
30
|
+
#
|
|
31
|
+
# @example
|
|
32
|
+
# model = Sketchup.active_model
|
|
33
|
+
# entities = model.active_entities
|
|
34
|
+
# selection = model.selection
|
|
35
|
+
# selection.add(entities.to_a)
|
|
36
|
+
# p selection[0]
|
|
37
|
+
#
|
|
38
|
+
# @param [Integer] index
|
|
39
|
+
# The index of the Drawingelement object to retrieve.
|
|
40
|
+
#
|
|
41
|
+
# @return [Sketchup::Drawingelement, nil]
|
|
42
|
+
#
|
|
43
|
+
# @see #at
|
|
44
|
+
#
|
|
45
|
+
# @version SketchUp 6.0
|
|
46
|
+
def [](index)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# The {#add} method is used to add Drawingelement to the selection. Drawingelements that are
|
|
50
|
+
# added to the Selection are visually indicated by the selection bounding box.
|
|
51
|
+
#
|
|
52
|
+
# You can pass it individual Drawingelements or an Array of Drawingelements.
|
|
53
|
+
#
|
|
54
|
+
# @example
|
|
55
|
+
# # Add by listing the Drawingelements...
|
|
56
|
+
# ss.add(e1, e2, e3)
|
|
57
|
+
#
|
|
58
|
+
# # ...or add by passing an Array of Drawingelements.
|
|
59
|
+
# ss.add([e1, e2, e3])
|
|
60
|
+
#
|
|
61
|
+
# @example
|
|
62
|
+
# model = Sketchup.active_model
|
|
63
|
+
# edge = model.active_entities.add_line([0, 0, 0], [9, 9, 9])
|
|
64
|
+
# model.selection.add(edge)
|
|
65
|
+
#
|
|
66
|
+
# @overload add(drawing_elements)
|
|
67
|
+
#
|
|
68
|
+
# @param [Array<Sketchup::Drawingelement>] drawing_elements
|
|
69
|
+
#
|
|
70
|
+
# @overload add(*drawing_elements)
|
|
71
|
+
#
|
|
72
|
+
# @param [Array<Sketchup::Drawingelement>] drawing_elements
|
|
73
|
+
#
|
|
74
|
+
# @return [Integer] the number of Drawingelement objects added
|
|
75
|
+
#
|
|
76
|
+
# @version SketchUp 6.0
|
|
77
|
+
def add(*args)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# The add_observer method is used to add an observer to the selection object.
|
|
81
|
+
#
|
|
82
|
+
# @example
|
|
83
|
+
# selection = Sketchup.active_model.selection
|
|
84
|
+
# status = selection.add_observer observer
|
|
85
|
+
#
|
|
86
|
+
# @param [Object] observer
|
|
87
|
+
# An observer.
|
|
88
|
+
#
|
|
89
|
+
# @return [Boolean] true if successful, false if unsuccessful.
|
|
90
|
+
#
|
|
91
|
+
# @version SketchUp 6.0
|
|
92
|
+
def add_observer(observer)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# The {#at} method is an alias for {#[]}.
|
|
96
|
+
#
|
|
97
|
+
# @example
|
|
98
|
+
# model = Sketchup.active_model
|
|
99
|
+
# entities = model.active_entities
|
|
100
|
+
# selection = model.selection
|
|
101
|
+
# selection.add(entities.to_a)
|
|
102
|
+
# p selection.at(0)
|
|
103
|
+
#
|
|
104
|
+
# @param [Integer] index
|
|
105
|
+
# The index of the Drawingelement object to retrieve.
|
|
106
|
+
#
|
|
107
|
+
# @return [Sketchup::Drawingelement, nil]
|
|
108
|
+
#
|
|
109
|
+
# @see #[]
|
|
110
|
+
#
|
|
111
|
+
# @version SketchUp 6.0
|
|
112
|
+
def at(index)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# The clear method is used to clear the selection.
|
|
116
|
+
#
|
|
117
|
+
# @example
|
|
118
|
+
# entity = entities[0]
|
|
119
|
+
# selection.add entity
|
|
120
|
+
# UI.messagebox "Ready to Clear"
|
|
121
|
+
# selection.clear
|
|
122
|
+
#
|
|
123
|
+
# @return [nil]
|
|
124
|
+
#
|
|
125
|
+
# @version SketchUp 6.0
|
|
126
|
+
def clear
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# The {#contains?} method is and alias of {#include?}.
|
|
130
|
+
#
|
|
131
|
+
# @example
|
|
132
|
+
# model = Sketchup.active_model
|
|
133
|
+
# entity = model.active_entities.first
|
|
134
|
+
# selection = model.selection
|
|
135
|
+
# selection.add(entity)
|
|
136
|
+
# p selection.contains?(entity)
|
|
137
|
+
#
|
|
138
|
+
# @param [Sketchup::Drawingelement] drawing_element
|
|
139
|
+
#
|
|
140
|
+
# @return [Boolean]
|
|
141
|
+
#
|
|
142
|
+
# @see #include?
|
|
143
|
+
#
|
|
144
|
+
# @version SketchUp 6.0
|
|
145
|
+
def contains?(drawing_element)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
#
|
|
149
|
+
# @example
|
|
150
|
+
# selection = Sketchup.active_model.selection
|
|
151
|
+
# number = selection.count
|
|
152
|
+
#
|
|
153
|
+
# @note Since SketchUp 2014 the count method is inherited from Ruby's
|
|
154
|
+
# +Enumerable+ mix-in module. Prior to that the {#count} method is an alias
|
|
155
|
+
# for {#length}.
|
|
156
|
+
#
|
|
157
|
+
# @return [Integer]
|
|
158
|
+
#
|
|
159
|
+
# @see #length
|
|
160
|
+
#
|
|
161
|
+
# @version SketchUp 6.0
|
|
162
|
+
def count
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# The {#each} method is used to iterate through all of the selected Drawingelements.
|
|
166
|
+
#
|
|
167
|
+
# If you want to do something with all of the selected Drawingelements, this is more
|
|
168
|
+
# efficient than using {#[]}.
|
|
169
|
+
#
|
|
170
|
+
# @example
|
|
171
|
+
# selection.each { |drawing_element| puts drawing_element }
|
|
172
|
+
#
|
|
173
|
+
# @note Don't remove content from this collection while iterating over it with
|
|
174
|
+
# {#each}. This would change the size of the collection and cause elemnts to
|
|
175
|
+
# be skipped as the indices change. Instead copy the current collection to an
|
|
176
|
+
# array using +to_a+ and then use +each+ on the array, when removing content.
|
|
177
|
+
#
|
|
178
|
+
# @return [nil]
|
|
179
|
+
#
|
|
180
|
+
# @version SketchUp 6.0
|
|
181
|
+
#
|
|
182
|
+
# @yieldparam [Sketchup::Drawingelement] drawing_element
|
|
183
|
+
def each
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# The {#empty?} method is used to determine if there are drawing elements in the
|
|
187
|
+
# selection.
|
|
188
|
+
#
|
|
189
|
+
# @example
|
|
190
|
+
# status = selection.add drawing_element
|
|
191
|
+
# status = selection.empty
|
|
192
|
+
#
|
|
193
|
+
# @return [Boolean]
|
|
194
|
+
#
|
|
195
|
+
# @version SketchUp 6.0
|
|
196
|
+
def empty?
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# The {#first} method is used to retrieve the first selected Drawingelement
|
|
200
|
+
#
|
|
201
|
+
# Returns nil if nothing is selected. This method is useful when you know that
|
|
202
|
+
# only a single Drawingelement is selected, or you are only interested in the first
|
|
203
|
+
# selected Drawingelement.
|
|
204
|
+
#
|
|
205
|
+
# @example
|
|
206
|
+
# status = selection.add drawing_element
|
|
207
|
+
# drawing_element = selection.first
|
|
208
|
+
#
|
|
209
|
+
# @return [Sketchup::Drawingelement] the first selected Drawingelement object if successful
|
|
210
|
+
#
|
|
211
|
+
# @version SketchUp 6.0
|
|
212
|
+
def first
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# The {#include?} method is used to determine if a given {Sketchup::Drawingelement} is
|
|
216
|
+
# in the selection.
|
|
217
|
+
#
|
|
218
|
+
# @example
|
|
219
|
+
# model = Sketchup.active_model
|
|
220
|
+
# entity = model.active_entities.first
|
|
221
|
+
# selection = model.selection
|
|
222
|
+
# selection.add(entity)
|
|
223
|
+
# p selection.include?(entity)
|
|
224
|
+
#
|
|
225
|
+
# @param [Sketchup::Drawingelement] drawing_element
|
|
226
|
+
#
|
|
227
|
+
# @return [Boolean]
|
|
228
|
+
#
|
|
229
|
+
# @see #contains?
|
|
230
|
+
#
|
|
231
|
+
# @version SketchUp 6.0
|
|
232
|
+
def include?(drawing_element)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# The {#invert} method is used to invert the selection.
|
|
236
|
+
#
|
|
237
|
+
# @example
|
|
238
|
+
# model = Sketchup.active_model
|
|
239
|
+
# entities = model.active_entities
|
|
240
|
+
# selection = model.selection
|
|
241
|
+
# # Create a cube
|
|
242
|
+
# face = entities.add_face([0, 0, 0], [9, 0, 0], [9, 9, 0], [0, 9, 0])
|
|
243
|
+
# face.pushpull(-9)
|
|
244
|
+
# # Add the first two faces to the selection
|
|
245
|
+
# faces = entities.grep(Sketchup::Face).take(2)
|
|
246
|
+
# selection.add(faces)
|
|
247
|
+
# # Invert selection
|
|
248
|
+
# selection.invert
|
|
249
|
+
#
|
|
250
|
+
# @return [nil]
|
|
251
|
+
#
|
|
252
|
+
# @version SketchUp 2019.2
|
|
253
|
+
def invert
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# The {#is_curve?} method is used to determine if the selection contains all
|
|
257
|
+
# edges that belong to a single curve.
|
|
258
|
+
#
|
|
259
|
+
# @example
|
|
260
|
+
# selection.add drawing_element
|
|
261
|
+
# status = selection.is_curve?
|
|
262
|
+
#
|
|
263
|
+
# @return [Boolean]
|
|
264
|
+
#
|
|
265
|
+
# @version SketchUp 6.0
|
|
266
|
+
def is_curve?
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# The {#is_surface?} method is used to determine if the selection contains only
|
|
270
|
+
# all of the faces that are part of a single curved surface.
|
|
271
|
+
#
|
|
272
|
+
# @example
|
|
273
|
+
# selection.add drawing_element
|
|
274
|
+
# status = selection.is_surface
|
|
275
|
+
#
|
|
276
|
+
# @return [Boolean]
|
|
277
|
+
#
|
|
278
|
+
# @version SketchUp 6.0
|
|
279
|
+
def is_surface?
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# The {#length} method is used to retrieve the number of selected drawing elements.
|
|
283
|
+
#
|
|
284
|
+
# @example
|
|
285
|
+
# selection = Sketchup.active_model.selection
|
|
286
|
+
# number = selection.length
|
|
287
|
+
#
|
|
288
|
+
# @return [Integer]
|
|
289
|
+
#
|
|
290
|
+
# @see #size
|
|
291
|
+
#
|
|
292
|
+
# @see #nitems
|
|
293
|
+
#
|
|
294
|
+
# @version SketchUp 6.0
|
|
295
|
+
def length
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# The {#model} method retrieves the model for the selection.
|
|
299
|
+
#
|
|
300
|
+
# @example
|
|
301
|
+
# model = selection.model
|
|
302
|
+
#
|
|
303
|
+
# @return [Sketchup::Model] the model that includes the selection if
|
|
304
|
+
# successful
|
|
305
|
+
#
|
|
306
|
+
# @version SketchUp 6.0
|
|
307
|
+
def model
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# The {#nitems} method is an alias for {#length}.
|
|
311
|
+
#
|
|
312
|
+
# @example
|
|
313
|
+
# selection = Sketchup.active_model.selection
|
|
314
|
+
# number = selection.nitems
|
|
315
|
+
#
|
|
316
|
+
# @return [Integer]
|
|
317
|
+
#
|
|
318
|
+
# @see #length
|
|
319
|
+
#
|
|
320
|
+
# @version SketchUp 6.0
|
|
321
|
+
def nitems
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# The {#remove} method is used to remove Drawingelements from the selection.
|
|
325
|
+
# You can pass it individual Drawingelements or an Array of Drawingelements.
|
|
326
|
+
#
|
|
327
|
+
# @example
|
|
328
|
+
# # Remove by listing the Drawingelements...
|
|
329
|
+
# ss.remove(e1, e2, e3)
|
|
330
|
+
#
|
|
331
|
+
# # ...or remove by passing an Array of Drawingelements.
|
|
332
|
+
# ss.remove([e1, e2, e3])
|
|
333
|
+
#
|
|
334
|
+
# @example
|
|
335
|
+
# model = Sketchup.active_model
|
|
336
|
+
# face = model.active_entities.add_line([0, 0, 0], [9, 0, 0], [9, 9, 0], [0, 9, 0])
|
|
337
|
+
# edges = face.all_connected
|
|
338
|
+
# model.selection.add(edges)
|
|
339
|
+
#
|
|
340
|
+
# model.selection.remove(edges.first)
|
|
341
|
+
#
|
|
342
|
+
# @overload remove(drawing_elements)
|
|
343
|
+
#
|
|
344
|
+
# @param [Array<Sketchup::Drawingelement>] drawing_elements
|
|
345
|
+
#
|
|
346
|
+
# @overload remove(*drawing_elements)
|
|
347
|
+
#
|
|
348
|
+
# @param [Array<Sketchup::Drawingelement>] drawing_elements
|
|
349
|
+
#
|
|
350
|
+
# @return [Integer] the number of Drawingelement objects removed
|
|
351
|
+
#
|
|
352
|
+
# @version SketchUp 6.0
|
|
353
|
+
def remove(*args)
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# The remove_observer method is used to remove an observer from the selection
|
|
357
|
+
# object.
|
|
358
|
+
#
|
|
359
|
+
# @example
|
|
360
|
+
# selection = Sketchup.active_model.selection
|
|
361
|
+
# status = object.remove_observer observer
|
|
362
|
+
#
|
|
363
|
+
# @param [Object] observer
|
|
364
|
+
# An observer.
|
|
365
|
+
#
|
|
366
|
+
# @return [Boolean] true if successful, false if unsuccessful.
|
|
367
|
+
#
|
|
368
|
+
# @version SketchUp 6.0
|
|
369
|
+
def remove_observer(observer)
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# The {#shift} method is used to remove the first Drawingelement from the selection and
|
|
373
|
+
# returns it.
|
|
374
|
+
#
|
|
375
|
+
# @example
|
|
376
|
+
# status = selection.add drawing_element
|
|
377
|
+
# UI.messagebox "Ready to remove item from selection set"
|
|
378
|
+
# drawing_element = selection.shift
|
|
379
|
+
#
|
|
380
|
+
# @return [Sketchup::Drawingelement] the first Drawingelement object in the selection set
|
|
381
|
+
# if successful
|
|
382
|
+
#
|
|
383
|
+
# @version SketchUp 6.0
|
|
384
|
+
def shift
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# The {#single_object?} method is used to determine if the selection contains a
|
|
388
|
+
# single object.
|
|
389
|
+
#
|
|
390
|
+
# It can either be a single DrawingElement or a group of DrawingElements for which is_curve?
|
|
391
|
+
# or is_surface? will return true.
|
|
392
|
+
#
|
|
393
|
+
# @example
|
|
394
|
+
# status = selection.single_object
|
|
395
|
+
#
|
|
396
|
+
# @return [Boolean]
|
|
397
|
+
#
|
|
398
|
+
# @version SketchUp 6.0
|
|
399
|
+
def single_object?
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# The {#size} method is an alias for {#length}.
|
|
403
|
+
#
|
|
404
|
+
# @example
|
|
405
|
+
# selection = Sketchup.active_model.selection
|
|
406
|
+
# number = selection.size
|
|
407
|
+
#
|
|
408
|
+
# @return [Integer]
|
|
409
|
+
#
|
|
410
|
+
# @see #length
|
|
411
|
+
#
|
|
412
|
+
# @version SketchUp 2014
|
|
413
|
+
def size
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# The {#toggle} method is used to change whether a Drawingelement is part of the
|
|
417
|
+
# selection. Drawingelements that are not already selected
|
|
418
|
+
# are added. Drawingelements that are already selected are removed.
|
|
419
|
+
#
|
|
420
|
+
# You can pass it individual Drawingelements or an Array of Drawingelements.
|
|
421
|
+
#
|
|
422
|
+
# @example
|
|
423
|
+
# # Toggle by listing the Drawingelements...
|
|
424
|
+
# ss.toggle(e1, e2, e3)
|
|
425
|
+
#
|
|
426
|
+
# # ...or toggle by passing an Array of Drawingelements.
|
|
427
|
+
# ss.toggle([e1, e2, e3])
|
|
428
|
+
#
|
|
429
|
+
# @example
|
|
430
|
+
# model = Sketchup.active_model
|
|
431
|
+
# face = model.active_entities.add_line([0, 0, 0], [9, 0, 0], [9, 9, 0], [0, 9, 0])
|
|
432
|
+
# edges = face.all_connected
|
|
433
|
+
# model.selection.add(edges)
|
|
434
|
+
#
|
|
435
|
+
# model.selection.toggle(edges.first)
|
|
436
|
+
#
|
|
437
|
+
# @overload toggle(drawings_elements)
|
|
438
|
+
#
|
|
439
|
+
# @param [Array<Sketchup::Drawingelement>] drawing_elements
|
|
440
|
+
#
|
|
441
|
+
# @overload toggle(*drawing_elements)
|
|
442
|
+
#
|
|
443
|
+
# @param [Array<Sketchup::Drawingelement>] drawing_elements
|
|
444
|
+
#
|
|
445
|
+
# @return [Integer] the number of Drawingelement objects changed
|
|
446
|
+
#
|
|
447
|
+
# @version SketchUp 6.0
|
|
448
|
+
def toggle(*args)
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
end
|