sketchup-api-stubs 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +5 -5
  2. data/.yardopts +9 -9
  3. data/lib/sketchup-api-stubs.rb +1 -1
  4. data/lib/sketchup-api-stubs/sketchup.rb +145 -145
  5. data/lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb +318 -318
  6. data/lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb +172 -172
  7. data/lib/sketchup-api-stubs/stubs/Geom/LatLong.rb +126 -126
  8. data/lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb +102 -102
  9. data/lib/sketchup-api-stubs/stubs/Geom/Point2d.rb +400 -400
  10. data/lib/sketchup-api-stubs/stubs/Geom/Point3d.rb +661 -661
  11. data/lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb +492 -492
  12. data/lib/sketchup-api-stubs/stubs/Geom/Transformation.rb +478 -478
  13. data/lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb +263 -263
  14. data/lib/sketchup-api-stubs/stubs/Geom/UTM.rb +141 -141
  15. data/lib/sketchup-api-stubs/stubs/Geom/Vector2d.rb +522 -522
  16. data/lib/sketchup-api-stubs/stubs/Geom/Vector3d.rb +691 -691
  17. data/lib/sketchup-api-stubs/stubs/Layout.rb +25 -25
  18. data/lib/sketchup-api-stubs/stubs/Layout/AngularDimension.rb +573 -573
  19. data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinition.rb +411 -411
  20. data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinitions.rb +174 -186
  21. data/lib/sketchup-api-stubs/stubs/Layout/ConnectionPoint.rb +70 -70
  22. data/lib/sketchup-api-stubs/stubs/Layout/Document.rb +514 -514
  23. data/lib/sketchup-api-stubs/stubs/Layout/Ellipse.rb +29 -29
  24. data/lib/sketchup-api-stubs/stubs/Layout/Entities.rb +143 -155
  25. data/lib/sketchup-api-stubs/stubs/Layout/Entity.rb +353 -353
  26. data/lib/sketchup-api-stubs/stubs/Layout/FormattedText.rb +349 -349
  27. data/lib/sketchup-api-stubs/stubs/Layout/Grid.rb +311 -311
  28. data/lib/sketchup-api-stubs/stubs/Layout/Group.rb +261 -261
  29. data/lib/sketchup-api-stubs/stubs/Layout/Image.rb +91 -91
  30. data/lib/sketchup-api-stubs/stubs/Layout/Label.rb +371 -371
  31. data/lib/sketchup-api-stubs/stubs/Layout/Layer.rb +218 -218
  32. data/lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb +128 -128
  33. data/lib/sketchup-api-stubs/stubs/Layout/Layers.rb +220 -232
  34. data/lib/sketchup-api-stubs/stubs/Layout/LinearDimension.rb +567 -567
  35. data/lib/sketchup-api-stubs/stubs/Layout/LockedEntityError.rb +10 -10
  36. data/lib/sketchup-api-stubs/stubs/Layout/LockedLayerError.rb +11 -11
  37. data/lib/sketchup-api-stubs/stubs/Layout/Page.rb +183 -183
  38. data/lib/sketchup-api-stubs/stubs/Layout/PageInfo.rb +387 -387
  39. data/lib/sketchup-api-stubs/stubs/Layout/Pages.rb +204 -216
  40. data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +344 -344
  41. data/lib/sketchup-api-stubs/stubs/Layout/Rectangle.rb +174 -174
  42. data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +694 -694
  43. data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +1519 -1519
  44. data/lib/sketchup-api-stubs/stubs/Layout/Table.rb +290 -290
  45. data/lib/sketchup-api-stubs/stubs/Layout/TableCell.rb +149 -149
  46. data/lib/sketchup-api-stubs/stubs/Layout/TableColumn.rb +139 -139
  47. data/lib/sketchup-api-stubs/stubs/Layout/TableRow.rb +135 -135
  48. data/lib/sketchup-api-stubs/stubs/Sketchup/Animation.rb +140 -140
  49. data/lib/sketchup-api-stubs/stubs/Sketchup/AppObserver.rb +157 -157
  50. data/lib/sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb +209 -209
  51. data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb +152 -152
  52. data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb +281 -281
  53. data/lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb +149 -149
  54. data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +328 -328
  55. data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +577 -577
  56. data/lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb +63 -63
  57. data/lib/sketchup-api-stubs/stubs/Sketchup/Classifications.rb +122 -122
  58. data/lib/sketchup-api-stubs/stubs/Sketchup/Color.rb +281 -281
  59. data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb +562 -562
  60. data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb +593 -593
  61. data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +76 -76
  62. data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb +257 -257
  63. data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionPoint.rb +32 -32
  64. data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +194 -194
  65. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionList.rb +329 -329
  66. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionObserver.rb +72 -72
  67. data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionsObserver.rb +102 -102
  68. data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +165 -165
  69. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb +312 -312
  70. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionObserver.rb +38 -38
  71. data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionRadial.rb +87 -87
  72. data/lib/sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb +390 -390
  73. data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +508 -508
  74. data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +211 -211
  75. data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +1119 -1119
  76. data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb +125 -125
  77. data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +544 -544
  78. data/lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb +59 -59
  79. data/lib/sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb +125 -125
  80. data/lib/sketchup-api-stubs/stubs/Sketchup/Face.rb +750 -750
  81. data/lib/sketchup-api-stubs/stubs/Sketchup/FrameChangeObserver.rb +104 -104
  82. data/lib/sketchup-api-stubs/stubs/Sketchup/Group.rb +697 -697
  83. data/lib/sketchup-api-stubs/stubs/Sketchup/Http.rb +27 -27
  84. data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Request.rb +285 -285
  85. data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb +62 -62
  86. data/lib/sketchup-api-stubs/stubs/Sketchup/Image.rb +409 -409
  87. data/lib/sketchup-api-stubs/stubs/Sketchup/ImageRep.rb +226 -226
  88. data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +190 -190
  89. data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +393 -393
  90. data/lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb +82 -82
  91. data/lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb +303 -303
  92. data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +285 -280
  93. data/lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb +244 -231
  94. data/lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb +136 -136
  95. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb +48 -48
  96. data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +86 -86
  97. data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyle.rb +24 -24
  98. data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb +112 -123
  99. data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +137 -137
  100. data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +416 -416
  101. data/lib/sketchup-api-stubs/stubs/Sketchup/Materials.rb +311 -311
  102. data/lib/sketchup-api-stubs/stubs/Sketchup/MaterialsObserver.rb +141 -141
  103. data/lib/sketchup-api-stubs/stubs/Sketchup/Menu.rb +95 -95
  104. data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +1638 -1601
  105. data/lib/sketchup-api-stubs/stubs/Sketchup/ModelObserver.rb +356 -356
  106. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb +132 -132
  107. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +284 -284
  108. data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb +58 -58
  109. data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +770 -770
  110. data/lib/sketchup-api-stubs/stubs/Sketchup/Pages.rb +353 -353
  111. data/lib/sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb +76 -76
  112. data/lib/sketchup-api-stubs/stubs/Sketchup/PickHelper.rb +456 -456
  113. data/lib/sketchup-api-stubs/stubs/Sketchup/RegionalSettings.rb +43 -43
  114. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +364 -364
  115. data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptionsObserver.rb +44 -44
  116. data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +150 -150
  117. data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +454 -454
  118. data/lib/sketchup-api-stubs/stubs/Sketchup/SelectionObserver.rb +115 -115
  119. data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +212 -212
  120. data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb +257 -257
  121. data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb +57 -57
  122. data/lib/sketchup-api-stubs/stubs/Sketchup/Style.rb +69 -69
  123. data/lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb +211 -211
  124. data/lib/sketchup-api-stubs/stubs/Sketchup/Text.rb +262 -262
  125. data/lib/sketchup-api-stubs/stubs/Sketchup/Texture.rb +225 -225
  126. data/lib/sketchup-api-stubs/stubs/Sketchup/TextureWriter.rb +237 -237
  127. data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +829 -829
  128. data/lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb +132 -132
  129. data/lib/sketchup-api-stubs/stubs/Sketchup/ToolsObserver.rb +154 -154
  130. data/lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb +61 -61
  131. data/lib/sketchup-api-stubs/stubs/Sketchup/Vertex.rb +142 -142
  132. data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +1301 -1301
  133. data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +43 -43
  134. data/lib/sketchup-api-stubs/stubs/UI/Command.rb +310 -310
  135. data/lib/sketchup-api-stubs/stubs/UI/HtmlDialog.rb +356 -356
  136. data/lib/sketchup-api-stubs/stubs/UI/Notification.rb +229 -229
  137. data/lib/sketchup-api-stubs/stubs/UI/Toolbar.rb +240 -240
  138. data/lib/sketchup-api-stubs/stubs/UI/WebDialog.rb +633 -633
  139. data/lib/sketchup-api-stubs/stubs/_top_level.rb +311 -311
  140. data/lib/sketchup-api-stubs/stubs/array.rb +741 -741
  141. data/lib/sketchup-api-stubs/stubs/geom.rb +348 -348
  142. data/lib/sketchup-api-stubs/stubs/languagehandler.rb +92 -92
  143. data/lib/sketchup-api-stubs/stubs/length.rb +278 -278
  144. data/lib/sketchup-api-stubs/stubs/numeric.rb +249 -249
  145. data/lib/sketchup-api-stubs/stubs/sketchup.rb +1310 -1310
  146. data/lib/sketchup-api-stubs/stubs/sketchupextension.rb +353 -353
  147. data/lib/sketchup-api-stubs/stubs/string.rb +24 -24
  148. data/lib/sketchup-api-stubs/stubs/ui.rb +667 -667
  149. metadata +3 -4
@@ -1,38 +1,38 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
2
- # License:: The MIT License (MIT)
3
-
4
- # This observer interface is implemented to react to changes in dimension text.
5
- #
6
- # @example
7
- # # This is an example of a DimensionObserver
8
- # class MyDimensionObserver < Sketchup::DimensionObserver
9
- # def onTextChanged(dimension)
10
- # puts "onTextChanged: #{dimension}, new_text= #{dimension.text}"
11
- # end
12
- # end
13
- #
14
- # # Attach the observer. (Assumes there is a dimension in the model root.)
15
- # dim = Sketchup.active_model.entities.grep(Sketchup::Dimension).first
16
- # dim.add_observer(MyDimensionObserver.new)
17
- #
18
- # @version SketchUp 2014
19
- class Sketchup::DimensionObserver
20
-
21
- # Instance Methods
22
-
23
- # The {#onTextChanged} method is invoked when your entity is erased.
24
- #
25
- # @example
26
- # def onTextChanged(dimension)
27
- # puts "onTextChanged: #{dimension}, new_text= #{dimension.text}"
28
- # end
29
- #
30
- # @param [Sketchup::Dimension] dimension
31
- # The dimension object whose text has
32
- # been changed.
33
- #
34
- # @version SketchUp 2014
35
- def onTextChanged(dimension)
36
- end
37
-
38
- end
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # This observer interface is implemented to react to changes in dimension text.
5
+ #
6
+ # @example
7
+ # # This is an example of a DimensionObserver
8
+ # class MyDimensionObserver < Sketchup::DimensionObserver
9
+ # def onTextChanged(dimension)
10
+ # puts "onTextChanged: #{dimension}, new_text= #{dimension.text}"
11
+ # end
12
+ # end
13
+ #
14
+ # # Attach the observer. (Assumes there is a dimension in the model root.)
15
+ # dim = Sketchup.active_model.entities.grep(Sketchup::Dimension).first
16
+ # dim.add_observer(MyDimensionObserver.new)
17
+ #
18
+ # @version SketchUp 2014
19
+ class Sketchup::DimensionObserver
20
+
21
+ # Instance Methods
22
+
23
+ # The {#onTextChanged} method is invoked when your entity is erased.
24
+ #
25
+ # @example
26
+ # def onTextChanged(dimension)
27
+ # puts "onTextChanged: #{dimension}, new_text= #{dimension.text}"
28
+ # end
29
+ #
30
+ # @param [Sketchup::Dimension] dimension
31
+ # The dimension object whose text has
32
+ # been changed.
33
+ #
34
+ # @version SketchUp 2014
35
+ def onTextChanged(dimension)
36
+ end
37
+
38
+ end
@@ -1,87 +1,87 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
2
- # License:: The MIT License (MIT)
3
-
4
- # The DimensionRadial class represents radius and diameter dimensions on
5
- # arcs and circles.
6
- #
7
- # @version SketchUp 2014
8
- class Sketchup::DimensionRadial < Sketchup::Dimension
9
-
10
- # Instance Methods
11
-
12
- # The arc_curve method returns the ArcCurve object to which this dimension is
13
- # attached.
14
- #
15
- # @example
16
- # arc = dim.arc_curve
17
- #
18
- # @return The ArcCurve object to which the dimension is attached.
19
- #
20
- # @version SketchUp 2014
21
- def arc_curve
22
- end
23
-
24
- # The arc_curve= method is used to set the ArcCurve object to which this
25
- # dimension is attached.
26
- #
27
- # @example
28
- # dim.arc_curve = arc
29
- #
30
- # @param arc_curve
31
- # The ArcCurve object to which the dimension is to be
32
- # attached.
33
- #
34
- # @return The ArcCurve object to which the dimension was attached.
35
- #
36
- # @version SketchUp 2014
37
- def arc_curve=(arc_curve)
38
- end
39
-
40
- # The leader_break_point method returns the break point on the leader where the
41
- # dimension text is attached.
42
- #
43
- # @example
44
- # pt = dim.leader_break_point
45
- # puts "Break point is #{pt}"
46
- #
47
- # @return the leader break point
48
- #
49
- # @version SketchUp 2014
50
- def leader_break_point
51
- end
52
-
53
- # The leader_break_point= method is used to set the break point on the leader
54
- # where the dimension text is attached.
55
- #
56
- # @example
57
- # dim.leader_break_point = [10, 0, 0]
58
- #
59
- # @param point
60
- # the point to be set
61
- #
62
- # @return the point that was set
63
- #
64
- # @version SketchUp 2014
65
- def leader_break_point=(point)
66
- end
67
-
68
- # The leader_points method returns the 3 significant points along the dimension
69
- # line in world coordinates.
70
- #
71
- # @example
72
- # pts = dim.leader_points
73
- # puts "Break point is #{pts[0]}"
74
- # puts "Attach point is #{pts[1]}"
75
- # puts "Opposite point is #{pts[2]}"
76
- #
77
- # @return Array of 3 Point3d objects. Point 0: leader break point,
78
- # where the text extension attaches. Point 1: attach point,
79
- # where leader touches the arc/circle. Point 2: opposite
80
- # point, where the diameter leader touches the circle on
81
- # the opposite side.
82
- #
83
- # @version SketchUp 2014
84
- def leader_points
85
- end
86
-
87
- end
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The DimensionRadial class represents radius and diameter dimensions on
5
+ # arcs and circles.
6
+ #
7
+ # @version SketchUp 2014
8
+ class Sketchup::DimensionRadial < Sketchup::Dimension
9
+
10
+ # Instance Methods
11
+
12
+ # The arc_curve method returns the ArcCurve object to which this dimension is
13
+ # attached.
14
+ #
15
+ # @example
16
+ # arc = dim.arc_curve
17
+ #
18
+ # @return The ArcCurve object to which the dimension is attached.
19
+ #
20
+ # @version SketchUp 2014
21
+ def arc_curve
22
+ end
23
+
24
+ # The arc_curve= method is used to set the ArcCurve object to which this
25
+ # dimension is attached.
26
+ #
27
+ # @example
28
+ # dim.arc_curve = arc
29
+ #
30
+ # @param arc_curve
31
+ # The ArcCurve object to which the dimension is to be
32
+ # attached.
33
+ #
34
+ # @return The ArcCurve object to which the dimension was attached.
35
+ #
36
+ # @version SketchUp 2014
37
+ def arc_curve=(arc_curve)
38
+ end
39
+
40
+ # The leader_break_point method returns the break point on the leader where the
41
+ # dimension text is attached.
42
+ #
43
+ # @example
44
+ # pt = dim.leader_break_point
45
+ # puts "Break point is #{pt}"
46
+ #
47
+ # @return the leader break point
48
+ #
49
+ # @version SketchUp 2014
50
+ def leader_break_point
51
+ end
52
+
53
+ # The leader_break_point= method is used to set the break point on the leader
54
+ # where the dimension text is attached.
55
+ #
56
+ # @example
57
+ # dim.leader_break_point = [10, 0, 0]
58
+ #
59
+ # @param point
60
+ # the point to be set
61
+ #
62
+ # @return the point that was set
63
+ #
64
+ # @version SketchUp 2014
65
+ def leader_break_point=(point)
66
+ end
67
+
68
+ # The leader_points method returns the 3 significant points along the dimension
69
+ # line in world coordinates.
70
+ #
71
+ # @example
72
+ # pts = dim.leader_points
73
+ # puts "Break point is #{pts[0]}"
74
+ # puts "Attach point is #{pts[1]}"
75
+ # puts "Opposite point is #{pts[2]}"
76
+ #
77
+ # @return Array of 3 Point3d objects. Point 0: leader break point,
78
+ # where the text extension attaches. Point 1: attach point,
79
+ # where leader touches the arc/circle. Point 2: opposite
80
+ # point, where the diameter leader touches the circle on
81
+ # the opposite side.
82
+ #
83
+ # @version SketchUp 2014
84
+ def leader_points
85
+ end
86
+
87
+ end
@@ -1,390 +1,390 @@
1
- # Copyright:: Copyright 2020 Trimble Inc.
2
- # License:: The MIT License (MIT)
3
-
4
- # Drawingelement is a base class for an item in the model that can be
5
- # displayed. These items include edges, construction points, construction
6
- # lines, and images. Arc curves and arcs are not included because they are not
7
- # drawing elements by themselves, but are a composition of edges.
8
- #
9
- # @version SketchUp 6.0
10
- class Sketchup::Drawingelement < Sketchup::Entity
11
-
12
- # Instance Methods
13
-
14
- # The bounds method is used to retrieve the BoundingBox for an drawing
15
- # element.
16
- #
17
- # @example
18
- # depth = 100
19
- # width = 100
20
- # model = Sketchup.active_model
21
- # entities = model.active_entities
22
- # pts = []
23
- # pts[0] = [0, 0, 0]
24
- # pts[1] = [width, 0, 0]
25
- # pts[2] = [width, depth, 0]
26
- # pts[3] = [0, depth, 0]
27
- # # Add the face to the entities in the model
28
- # face = entities.add_face pts
29
- # # Remember, anything that can be displayed, such as a face, is also
30
- # # a Drawingelement. So I can call bounds on a face because Face
31
- # # is a sub-class of Drawingelement.
32
- # boundingbox = face.bounds
33
- #
34
- # @return [Geom::BoundingBox] A BoundingBox object if successful
35
- #
36
- # @version SketchUp 6.0
37
- def bounds
38
- end
39
-
40
- # The casts_shadows= method is used to set the Drawingelement to cast shadows.
41
- #
42
- # @example
43
- # depth = 100
44
- # width = 100
45
- # model = Sketchup.active_model
46
- # entities = model.active_entities
47
- # pts = []
48
- # pts[0] = [0, 0, 100]
49
- # pts[1] = [width, 0, 100]
50
- # pts[2] = [width, depth, 100]
51
- # pts[3] = [0, depth, 100]
52
- # # Add the face to the entities in the model.
53
- # face = entities.add_face pts
54
- #
55
- # # Make the face not cast shadows.
56
- # status = face.casts_shadows = false
57
- # UI.messagebox status.to_s
58
- #
59
- # @param [Boolean] casts
60
- # true if you want the Drawingelement object to cast
61
- # shadows, false if you do not want the Drawingelement
62
- # object to cast shadows.
63
- #
64
- # @return [Boolean] true if successful, false if unsuccessful.
65
- #
66
- # @version SketchUp 6.0
67
- def casts_shadows=(casts)
68
- end
69
-
70
- # The casts_shadows? method is used to determine if the Drawingelement is
71
- # casting shadows.
72
- #
73
- # @example
74
- # depth = 100
75
- # width = 100
76
- # model = Sketchup.active_model
77
- # entities = model.active_entities
78
- # pts = []
79
- # pts[0] = [0, 0, 0]
80
- # pts[1] = [width, 0, 0]
81
- # pts[2] = [width, depth, 0]
82
- # pts[3] = [0, depth, 0]
83
- # # Add the face to the entities in the model
84
- # face = entities.add_face pts
85
- # status = face.casts_shadows?
86
- # UI.messagebox status.to_s
87
- #
88
- # @return [Boolean]
89
- #
90
- # @version SketchUp 6.0
91
- def casts_shadows?
92
- end
93
-
94
- # The erase! method is used to erase an element from the model.
95
- #
96
- # Erasing an Edge also erases all of the Face objects that use the Edge.
97
- #
98
- # @example
99
- # depth = 100
100
- # width = 100
101
- # model = Sketchup.active_model
102
- # entities = model.active_entities
103
- # pts = []
104
- # pts[0] = [0, 0, 0]
105
- # pts[1] = [width, 0, 0]
106
- # pts[2] = [width, depth, 0]
107
- # pts[3] = [0, depth, 0]
108
- # # Add the face to the entities in the model
109
- # face = entities.add_face pts
110
- # status = face.erase!
111
- #
112
- # @return [Boolean] true if successful, false if unsuccessful
113
- #
114
- # @version SketchUp 6.0
115
- def erase!
116
- end
117
-
118
- # The hidden= method is used to set the hidden status for an element.
119
- #
120
- # @example
121
- # depth = 100
122
- # width = 100
123
- # model = Sketchup.active_model
124
- # entities = model.active_entities
125
- # pts = []
126
- # pts[0] = [0, 0, 0]
127
- # pts[1] = [width, 0, 0]
128
- # pts[2] = [width, depth, 0]
129
- # pts[3] = [0, depth, 0]
130
- # # Add the face to the entities in the model
131
- # face = entities.add_face pts
132
- # UI.messagebox "Click OK to Hide the Box"
133
- # status = face.hidden = true
134
- #
135
- # @param [Boolean] hidden
136
- # true if you want to hide the element, false if you do
137
- # not want to hide the element.
138
- #
139
- # @return [Boolean] true if the element has been hidden, false if
140
- # the element has not been hidden.
141
- #
142
- # @version SketchUp 6.0
143
- def hidden=(hidden)
144
- end
145
-
146
- # The hidden? method is used to determine if the element is hidden.
147
- #
148
- # Hidden elements are still in the model, but they are not displayed.
149
- #
150
- # @example
151
- # depth = 100
152
- # width = 100
153
- # model = Sketchup.active_model
154
- # entities = model.active_entities
155
- # pts = []
156
- # pts[0] = [0, 0, 0]
157
- # pts[1] = [width, 0, 0]
158
- # pts[2] = [width, depth, 0]
159
- # pts[3] = [0, depth, 0]
160
- # # Add the face to the entities in the model
161
- # face = entities.add_face pts
162
- # status = face.hidden?
163
- # UI.messagebox "hidden? " + status.to_s
164
- #
165
- # @return [Boolean]
166
- #
167
- # @version SketchUp 6.0
168
- def hidden?
169
- end
170
-
171
- # The layer method is used to retrieve the Layer object of the drawing
172
- # element.
173
- #
174
- # @example
175
- # depth = 100
176
- # width = 100
177
- # model = Sketchup.active_model
178
- # entities = model.active_entities
179
- # pts = []
180
- # pts[0] = [0, 0, 0]
181
- # pts[1] = [width, 0, 0]
182
- # pts[2] = [width, depth, 0]
183
- # pts[3] = [0, depth, 0]
184
- # # Add the face to the entities in the model
185
- # face = entities.add_face pts
186
- # layer = face.layer
187
- #
188
- # @return [Sketchup::Layer] a layer object if successful
189
- #
190
- # @version SketchUp 6.0
191
- def layer
192
- end
193
-
194
- # The layer= method is used to set the layer for the drawing element.
195
- #
196
- # An exception is raised if you give a string that doesn't match any layer
197
- # name.
198
- #
199
- # @example
200
- # depth = 100
201
- # width = 100
202
- # model = Sketchup.active_model
203
- # entities = model.active_entities
204
- # pts = []
205
- # pts[0] = [0, 0, 0]
206
- # pts[1] = [width, 0, 0]
207
- # pts[2] = [width, depth, 0]
208
- # pts[3] = [0, depth, 0]
209
- # # Add the face to the entities in the model
210
- # face = entities.add_face pts
211
- # # Add a layer
212
- # layer = Sketchup.active_model.layers.add "joe"
213
- # # Put the face on the joe layer (instead of layer 0)
214
- # newlayer = face.layer = layer
215
- #
216
- # @param [Sketchup::Layer, String] layer
217
- # A layer or layer name.
218
- #
219
- # @return [Sketchup::Layer, String] the new Layer object if successful
220
- #
221
- # @version SketchUp 6.0
222
- def layer=(layer)
223
- end
224
-
225
- # The material method is used to retrieve the material for the drawing
226
- # element.
227
- #
228
- # @example
229
- # depth = 100
230
- # width = 100
231
- # model = Sketchup.active_model
232
- # entities = model.active_entities
233
- # pts = []
234
- # pts[0] = [0, 0, 0]
235
- # pts[1] = [width, 0, 0]
236
- # pts[2] = [width, depth, 0]
237
- # pts[3] = [0, depth, 0]
238
- # # Add the face to the entities in the model
239
- # face = entities.add_face pts
240
- # material = face.material
241
- #
242
- # @return [Sketchup::Material] the Material object if successful
243
- #
244
- # @version SketchUp 6.0
245
- def material
246
- end
247
-
248
- # The material= method is used to set the material for the drawing
249
- # element.
250
- #
251
- # @example
252
- # depth = 100
253
- # width = 100
254
- # model = Sketchup.active_model
255
- # entities = model.active_entities
256
- # pts = []
257
- # pts[0] = [0, 0, 0]
258
- # pts[1] = [width, 0, 0]
259
- # pts[2] = [width, depth, 0]
260
- # pts[3] = [0, depth, 0]
261
- # # Add the face to the entities in the model
262
- # face = entities.add_face pts
263
- # m = model.materials.add "Joe"
264
- # begin
265
- # # Returns nil if not successful, path if successful.
266
- # # Should return a texture object.
267
- # m.texture = "c:\\My Textures\\Carpet.jpg"
268
- # rescue
269
- # UI.messagebox $!.message
270
- # end
271
- # # You will see the material applied when you reverse the box's faces
272
- # material = face.material = m
273
- #
274
- # @param [Sketchup::Material, String, Sketchup::Color] material
275
- # A Material, name of a material, Color, or name of a
276
- # color.
277
- #
278
- # @return [Sketchup::Material, String, Sketchup::Color] the new Material object if successful
279
- #
280
- # @version SketchUp 6.0
281
- def material=(material)
282
- end
283
-
284
- # The receive_shadows= method is used to set the Drawingelement to receive
285
- # shadows.
286
- #
287
- # @example
288
- # depth = 100
289
- # width = 100
290
- # model = Sketchup.active_model
291
- # entities = model.active_entities
292
- # pts = []
293
- # pts[0] = [0, 0, 100]
294
- # pts[1] = [width, 0, 100]
295
- # pts[2] = [width, depth, 100]
296
- # pts[3] = [0, depth, 100]
297
- # # Add the face to the entities in the model.
298
- # face = entities.add_face pts
299
- #
300
- # # Make the face not receive shadows.
301
- # status = face.receives_shadows = false
302
- # UI.messagebox status.to_s
303
- #
304
- # @param [Boolean] receive
305
- # true if you want the Drawingelement object to
306
- # receive shadows, false if not.
307
- #
308
- # @return [Boolean] true if successful, false if unsuccessful.
309
- #
310
- # @version SketchUp 6.0
311
- def receives_shadows=(receive)
312
- end
313
-
314
- # The receive_shadows? method is used to determine if the Drawingelement is
315
- # receiving shadows.
316
- #
317
- # @example
318
- # depth = 100
319
- # width = 100
320
- # model = Sketchup.active_model
321
- # entities = model.active_entities
322
- # pts = []
323
- # pts[0] = [0, 0, 0]
324
- # pts[1] = [width, 0, 0]
325
- # pts[2] = [width, depth, 0]
326
- # pts[3] = [0, depth, 0]
327
- # # Add the face to the entities in the model
328
- # face = entities.add_face pts
329
- # status = face.receives_shadows?
330
- # UI.messagebox status.to_s
331
- #
332
- # @return [Boolean]
333
- #
334
- # @version SketchUp 6.0
335
- def receives_shadows?
336
- end
337
-
338
- # The visible= method is used to set the visible status for an element. This
339
- # method performs an opposite function to the hidden= method.
340
- #
341
- # @example
342
- # depth = 100
343
- # width = 100
344
- # model = Sketchup.active_model
345
- # entities = model.active_entities
346
- # pts = []
347
- # pts[0] = [0, 0, 0]
348
- # pts[1] = [width, 0, 0]
349
- # pts[2] = [width, depth, 0]
350
- # pts[3] = [0, depth, 0]
351
- # # Add the face to the entities in the model
352
- # face = entities.add_face pts
353
- # UI.messagebox "Click OK to Hide the Box"
354
- # status = face.visible = false
355
- #
356
- # @param [Boolean] visibility
357
- # true if you want to hide the element, false if not
358
- #
359
- # @return [Boolean] true if the element has been hidden, false if
360
- # the element has not been hidden.
361
- #
362
- # @version SketchUp 6.0
363
- def visible=(visibility)
364
- end
365
-
366
- # The visible? method is used to get the visible status for an element.
367
- #
368
- # @example
369
- # depth = 100
370
- # width = 100
371
- # model = Sketchup.active_model
372
- # entities = model.active_entities
373
- # pts = []
374
- # pts[0] = [0, 0, 0]
375
- # pts[1] = [width, 0, 0]
376
- # pts[2] = [width, depth, 0]
377
- # pts[3] = [0, depth, 0]
378
- # # Add the face to the entities in the model
379
- # face = entities.add_face pts
380
- # UI.messagebox "Click OK to Hide the Box"
381
- # face.visible = false
382
- # UI.messagebox "Is the face visible? " + face.visible?.to_s
383
- #
384
- # @return [Boolean]
385
- #
386
- # @version SketchUp 6.0
387
- def visible?
388
- end
389
-
390
- end
1
+ # Copyright:: Copyright 2020 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # Drawingelement is a base class for an item in the model that can be
5
+ # displayed. These items include edges, construction points, construction
6
+ # lines, and images. Arc curves and arcs are not included because they are not
7
+ # drawing elements by themselves, but are a composition of edges.
8
+ #
9
+ # @version SketchUp 6.0
10
+ class Sketchup::Drawingelement < Sketchup::Entity
11
+
12
+ # Instance Methods
13
+
14
+ # The bounds method is used to retrieve the BoundingBox for an drawing
15
+ # element.
16
+ #
17
+ # @example
18
+ # depth = 100
19
+ # width = 100
20
+ # model = Sketchup.active_model
21
+ # entities = model.active_entities
22
+ # pts = []
23
+ # pts[0] = [0, 0, 0]
24
+ # pts[1] = [width, 0, 0]
25
+ # pts[2] = [width, depth, 0]
26
+ # pts[3] = [0, depth, 0]
27
+ # # Add the face to the entities in the model
28
+ # face = entities.add_face pts
29
+ # # Remember, anything that can be displayed, such as a face, is also
30
+ # # a Drawingelement. So I can call bounds on a face because Face
31
+ # # is a sub-class of Drawingelement.
32
+ # boundingbox = face.bounds
33
+ #
34
+ # @return [Geom::BoundingBox] A BoundingBox object if successful
35
+ #
36
+ # @version SketchUp 6.0
37
+ def bounds
38
+ end
39
+
40
+ # The casts_shadows= method is used to set the Drawingelement to cast shadows.
41
+ #
42
+ # @example
43
+ # depth = 100
44
+ # width = 100
45
+ # model = Sketchup.active_model
46
+ # entities = model.active_entities
47
+ # pts = []
48
+ # pts[0] = [0, 0, 100]
49
+ # pts[1] = [width, 0, 100]
50
+ # pts[2] = [width, depth, 100]
51
+ # pts[3] = [0, depth, 100]
52
+ # # Add the face to the entities in the model.
53
+ # face = entities.add_face pts
54
+ #
55
+ # # Make the face not cast shadows.
56
+ # status = face.casts_shadows = false
57
+ # UI.messagebox status.to_s
58
+ #
59
+ # @param [Boolean] casts
60
+ # true if you want the Drawingelement object to cast
61
+ # shadows, false if you do not want the Drawingelement
62
+ # object to cast shadows.
63
+ #
64
+ # @return [Boolean] true if successful, false if unsuccessful.
65
+ #
66
+ # @version SketchUp 6.0
67
+ def casts_shadows=(casts)
68
+ end
69
+
70
+ # The casts_shadows? method is used to determine if the Drawingelement is
71
+ # casting shadows.
72
+ #
73
+ # @example
74
+ # depth = 100
75
+ # width = 100
76
+ # model = Sketchup.active_model
77
+ # entities = model.active_entities
78
+ # pts = []
79
+ # pts[0] = [0, 0, 0]
80
+ # pts[1] = [width, 0, 0]
81
+ # pts[2] = [width, depth, 0]
82
+ # pts[3] = [0, depth, 0]
83
+ # # Add the face to the entities in the model
84
+ # face = entities.add_face pts
85
+ # status = face.casts_shadows?
86
+ # UI.messagebox status.to_s
87
+ #
88
+ # @return [Boolean]
89
+ #
90
+ # @version SketchUp 6.0
91
+ def casts_shadows?
92
+ end
93
+
94
+ # The erase! method is used to erase an element from the model.
95
+ #
96
+ # Erasing an Edge also erases all of the Face objects that use the Edge.
97
+ #
98
+ # @example
99
+ # depth = 100
100
+ # width = 100
101
+ # model = Sketchup.active_model
102
+ # entities = model.active_entities
103
+ # pts = []
104
+ # pts[0] = [0, 0, 0]
105
+ # pts[1] = [width, 0, 0]
106
+ # pts[2] = [width, depth, 0]
107
+ # pts[3] = [0, depth, 0]
108
+ # # Add the face to the entities in the model
109
+ # face = entities.add_face pts
110
+ # status = face.erase!
111
+ #
112
+ # @return [Boolean] true if successful, false if unsuccessful
113
+ #
114
+ # @version SketchUp 6.0
115
+ def erase!
116
+ end
117
+
118
+ # The hidden= method is used to set the hidden status for an element.
119
+ #
120
+ # @example
121
+ # depth = 100
122
+ # width = 100
123
+ # model = Sketchup.active_model
124
+ # entities = model.active_entities
125
+ # pts = []
126
+ # pts[0] = [0, 0, 0]
127
+ # pts[1] = [width, 0, 0]
128
+ # pts[2] = [width, depth, 0]
129
+ # pts[3] = [0, depth, 0]
130
+ # # Add the face to the entities in the model
131
+ # face = entities.add_face pts
132
+ # UI.messagebox "Click OK to Hide the Box"
133
+ # status = face.hidden = true
134
+ #
135
+ # @param [Boolean] hidden
136
+ # true if you want to hide the element, false if you do
137
+ # not want to hide the element.
138
+ #
139
+ # @return [Boolean] true if the element has been hidden, false if
140
+ # the element has not been hidden.
141
+ #
142
+ # @version SketchUp 6.0
143
+ def hidden=(hidden)
144
+ end
145
+
146
+ # The hidden? method is used to determine if the element is hidden.
147
+ #
148
+ # Hidden elements are still in the model, but they are not displayed.
149
+ #
150
+ # @example
151
+ # depth = 100
152
+ # width = 100
153
+ # model = Sketchup.active_model
154
+ # entities = model.active_entities
155
+ # pts = []
156
+ # pts[0] = [0, 0, 0]
157
+ # pts[1] = [width, 0, 0]
158
+ # pts[2] = [width, depth, 0]
159
+ # pts[3] = [0, depth, 0]
160
+ # # Add the face to the entities in the model
161
+ # face = entities.add_face pts
162
+ # status = face.hidden?
163
+ # UI.messagebox "hidden? " + status.to_s
164
+ #
165
+ # @return [Boolean]
166
+ #
167
+ # @version SketchUp 6.0
168
+ def hidden?
169
+ end
170
+
171
+ # The layer method is used to retrieve the Layer object of the drawing
172
+ # element.
173
+ #
174
+ # @example
175
+ # depth = 100
176
+ # width = 100
177
+ # model = Sketchup.active_model
178
+ # entities = model.active_entities
179
+ # pts = []
180
+ # pts[0] = [0, 0, 0]
181
+ # pts[1] = [width, 0, 0]
182
+ # pts[2] = [width, depth, 0]
183
+ # pts[3] = [0, depth, 0]
184
+ # # Add the face to the entities in the model
185
+ # face = entities.add_face pts
186
+ # layer = face.layer
187
+ #
188
+ # @return [Sketchup::Layer] a layer object if successful
189
+ #
190
+ # @version SketchUp 6.0
191
+ def layer
192
+ end
193
+
194
+ # The layer= method is used to set the layer for the drawing element.
195
+ #
196
+ # An exception is raised if you give a string that doesn't match any layer
197
+ # name.
198
+ #
199
+ # @example
200
+ # depth = 100
201
+ # width = 100
202
+ # model = Sketchup.active_model
203
+ # entities = model.active_entities
204
+ # pts = []
205
+ # pts[0] = [0, 0, 0]
206
+ # pts[1] = [width, 0, 0]
207
+ # pts[2] = [width, depth, 0]
208
+ # pts[3] = [0, depth, 0]
209
+ # # Add the face to the entities in the model
210
+ # face = entities.add_face pts
211
+ # # Add a layer
212
+ # layer = Sketchup.active_model.layers.add "joe"
213
+ # # Put the face on the joe layer (instead of layer 0)
214
+ # newlayer = face.layer = layer
215
+ #
216
+ # @param [Sketchup::Layer, String] layer
217
+ # A layer or layer name.
218
+ #
219
+ # @return [Sketchup::Layer, String] the new Layer object if successful
220
+ #
221
+ # @version SketchUp 6.0
222
+ def layer=(layer)
223
+ end
224
+
225
+ # The material method is used to retrieve the material for the drawing
226
+ # element.
227
+ #
228
+ # @example
229
+ # depth = 100
230
+ # width = 100
231
+ # model = Sketchup.active_model
232
+ # entities = model.active_entities
233
+ # pts = []
234
+ # pts[0] = [0, 0, 0]
235
+ # pts[1] = [width, 0, 0]
236
+ # pts[2] = [width, depth, 0]
237
+ # pts[3] = [0, depth, 0]
238
+ # # Add the face to the entities in the model
239
+ # face = entities.add_face pts
240
+ # material = face.material
241
+ #
242
+ # @return [Sketchup::Material] the Material object if successful
243
+ #
244
+ # @version SketchUp 6.0
245
+ def material
246
+ end
247
+
248
+ # The material= method is used to set the material for the drawing
249
+ # element.
250
+ #
251
+ # @example
252
+ # depth = 100
253
+ # width = 100
254
+ # model = Sketchup.active_model
255
+ # entities = model.active_entities
256
+ # pts = []
257
+ # pts[0] = [0, 0, 0]
258
+ # pts[1] = [width, 0, 0]
259
+ # pts[2] = [width, depth, 0]
260
+ # pts[3] = [0, depth, 0]
261
+ # # Add the face to the entities in the model
262
+ # face = entities.add_face pts
263
+ # m = model.materials.add "Joe"
264
+ # begin
265
+ # # Returns nil if not successful, path if successful.
266
+ # # Should return a texture object.
267
+ # m.texture = "c:\\My Textures\\Carpet.jpg"
268
+ # rescue
269
+ # UI.messagebox $!.message
270
+ # end
271
+ # # You will see the material applied when you reverse the box's faces
272
+ # material = face.material = m
273
+ #
274
+ # @param [Sketchup::Material, String, Sketchup::Color] material
275
+ # A Material, name of a material, Color, or name of a
276
+ # color.
277
+ #
278
+ # @return [Sketchup::Material, String, Sketchup::Color] the new Material object if successful
279
+ #
280
+ # @version SketchUp 6.0
281
+ def material=(material)
282
+ end
283
+
284
+ # The receive_shadows= method is used to set the Drawingelement to receive
285
+ # shadows.
286
+ #
287
+ # @example
288
+ # depth = 100
289
+ # width = 100
290
+ # model = Sketchup.active_model
291
+ # entities = model.active_entities
292
+ # pts = []
293
+ # pts[0] = [0, 0, 100]
294
+ # pts[1] = [width, 0, 100]
295
+ # pts[2] = [width, depth, 100]
296
+ # pts[3] = [0, depth, 100]
297
+ # # Add the face to the entities in the model.
298
+ # face = entities.add_face pts
299
+ #
300
+ # # Make the face not receive shadows.
301
+ # status = face.receives_shadows = false
302
+ # UI.messagebox status.to_s
303
+ #
304
+ # @param [Boolean] receive
305
+ # true if you want the Drawingelement object to
306
+ # receive shadows, false if not.
307
+ #
308
+ # @return [Boolean] true if successful, false if unsuccessful.
309
+ #
310
+ # @version SketchUp 6.0
311
+ def receives_shadows=(receive)
312
+ end
313
+
314
+ # The receive_shadows? method is used to determine if the Drawingelement is
315
+ # receiving shadows.
316
+ #
317
+ # @example
318
+ # depth = 100
319
+ # width = 100
320
+ # model = Sketchup.active_model
321
+ # entities = model.active_entities
322
+ # pts = []
323
+ # pts[0] = [0, 0, 0]
324
+ # pts[1] = [width, 0, 0]
325
+ # pts[2] = [width, depth, 0]
326
+ # pts[3] = [0, depth, 0]
327
+ # # Add the face to the entities in the model
328
+ # face = entities.add_face pts
329
+ # status = face.receives_shadows?
330
+ # UI.messagebox status.to_s
331
+ #
332
+ # @return [Boolean]
333
+ #
334
+ # @version SketchUp 6.0
335
+ def receives_shadows?
336
+ end
337
+
338
+ # The visible= method is used to set the visible status for an element. This
339
+ # method performs an opposite function to the hidden= method.
340
+ #
341
+ # @example
342
+ # depth = 100
343
+ # width = 100
344
+ # model = Sketchup.active_model
345
+ # entities = model.active_entities
346
+ # pts = []
347
+ # pts[0] = [0, 0, 0]
348
+ # pts[1] = [width, 0, 0]
349
+ # pts[2] = [width, depth, 0]
350
+ # pts[3] = [0, depth, 0]
351
+ # # Add the face to the entities in the model
352
+ # face = entities.add_face pts
353
+ # UI.messagebox "Click OK to Hide the Box"
354
+ # status = face.visible = false
355
+ #
356
+ # @param [Boolean] visibility
357
+ # true if you want to hide the element, false if not
358
+ #
359
+ # @return [Boolean] true if the element has been hidden, false if
360
+ # the element has not been hidden.
361
+ #
362
+ # @version SketchUp 6.0
363
+ def visible=(visibility)
364
+ end
365
+
366
+ # The visible? method is used to get the visible status for an element.
367
+ #
368
+ # @example
369
+ # depth = 100
370
+ # width = 100
371
+ # model = Sketchup.active_model
372
+ # entities = model.active_entities
373
+ # pts = []
374
+ # pts[0] = [0, 0, 0]
375
+ # pts[1] = [width, 0, 0]
376
+ # pts[2] = [width, depth, 0]
377
+ # pts[3] = [0, depth, 0]
378
+ # # Add the face to the entities in the model
379
+ # face = entities.add_face pts
380
+ # UI.messagebox "Click OK to Hide the Box"
381
+ # face.visible = false
382
+ # UI.messagebox "Is the face visible? " + face.visible?.to_s
383
+ #
384
+ # @return [Boolean]
385
+ #
386
+ # @version SketchUp 6.0
387
+ def visible?
388
+ end
389
+
390
+ end