sketchup-api-stubs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/SketchUp/Geom/BoundingBox.rb +335 -0
  3. data/SketchUp/Geom/LatLong.rb +123 -0
  4. data/SketchUp/Geom/Point3d.rb +643 -0
  5. data/SketchUp/Geom/PolygonMesh.rb +478 -0
  6. data/SketchUp/Geom/Transformation.rb +476 -0
  7. data/SketchUp/Geom/UTM.rb +135 -0
  8. data/SketchUp/Geom/Vector3d.rb +684 -0
  9. data/SketchUp/Sketchup/Animation.rb +137 -0
  10. data/SketchUp/Sketchup/AppObserver.rb +157 -0
  11. data/SketchUp/Sketchup/ArcCurve.rb +209 -0
  12. data/SketchUp/Sketchup/AttributeDictionaries.rb +146 -0
  13. data/SketchUp/Sketchup/AttributeDictionary.rb +280 -0
  14. data/SketchUp/Sketchup/Axes.rb +149 -0
  15. data/SketchUp/Sketchup/Behavior.rb +338 -0
  16. data/SketchUp/Sketchup/Camera.rb +594 -0
  17. data/SketchUp/Sketchup/ClassificationSchema.rb +63 -0
  18. data/SketchUp/Sketchup/Classifications.rb +118 -0
  19. data/SketchUp/Sketchup/Color.rb +291 -0
  20. data/SketchUp/Sketchup/ComponentDefinition.rb +562 -0
  21. data/SketchUp/Sketchup/ComponentInstance.rb +597 -0
  22. data/SketchUp/Sketchup/Console.rb +78 -0
  23. data/SketchUp/Sketchup/ConstructionLine.rb +257 -0
  24. data/SketchUp/Sketchup/ConstructionPoint.rb +32 -0
  25. data/SketchUp/Sketchup/Curve.rb +196 -0
  26. data/SketchUp/Sketchup/DefinitionList.rb +312 -0
  27. data/SketchUp/Sketchup/DefinitionObserver.rb +73 -0
  28. data/SketchUp/Sketchup/DefinitionsObserver.rb +102 -0
  29. data/SketchUp/Sketchup/Dimension.rb +167 -0
  30. data/SketchUp/Sketchup/DimensionLinear.rb +232 -0
  31. data/SketchUp/Sketchup/DimensionObserver.rb +38 -0
  32. data/SketchUp/Sketchup/DimensionRadial.rb +87 -0
  33. data/SketchUp/Sketchup/Drawingelement.rb +400 -0
  34. data/SketchUp/Sketchup/Edge.rb +517 -0
  35. data/SketchUp/Sketchup/EdgeUse.rb +213 -0
  36. data/SketchUp/Sketchup/Entities.rb +1011 -0
  37. data/SketchUp/Sketchup/EntitiesObserver.rb +125 -0
  38. data/SketchUp/Sketchup/Entity.rb +522 -0
  39. data/SketchUp/Sketchup/EntityObserver.rb +59 -0
  40. data/SketchUp/Sketchup/ExtensionsManager.rb +129 -0
  41. data/SketchUp/Sketchup/Face.rb +737 -0
  42. data/SketchUp/Sketchup/FrameChangeObserver.rb +104 -0
  43. data/SketchUp/Sketchup/Group.rb +705 -0
  44. data/SketchUp/Sketchup/Http.rb +27 -0
  45. data/SketchUp/Sketchup/Http/Request.rb +285 -0
  46. data/SketchUp/Sketchup/Http/Response.rb +62 -0
  47. data/SketchUp/Sketchup/Image.rb +393 -0
  48. data/SketchUp/Sketchup/Importer.rb +192 -0
  49. data/SketchUp/Sketchup/InputPoint.rb +393 -0
  50. data/SketchUp/Sketchup/InstanceObserver.rb +82 -0
  51. data/SketchUp/Sketchup/InstancePath.rb +297 -0
  52. data/SketchUp/Sketchup/Layer.rb +240 -0
  53. data/SketchUp/Sketchup/Layers.rb +235 -0
  54. data/SketchUp/Sketchup/LayersObserver.rb +136 -0
  55. data/SketchUp/Sketchup/Licensing.rb +47 -0
  56. data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +88 -0
  57. data/SketchUp/Sketchup/Loop.rb +141 -0
  58. data/SketchUp/Sketchup/Material.rb +384 -0
  59. data/SketchUp/Sketchup/Materials.rb +283 -0
  60. data/SketchUp/Sketchup/MaterialsObserver.rb +141 -0
  61. data/SketchUp/Sketchup/Menu.rb +97 -0
  62. data/SketchUp/Sketchup/Model.rb +1459 -0
  63. data/SketchUp/Sketchup/ModelObserver.rb +356 -0
  64. data/SketchUp/Sketchup/OptionsManager.rb +135 -0
  65. data/SketchUp/Sketchup/OptionsProvider.rb +277 -0
  66. data/SketchUp/Sketchup/OptionsProviderObserver.rb +58 -0
  67. data/SketchUp/Sketchup/Page.rb +636 -0
  68. data/SketchUp/Sketchup/Pages.rb +349 -0
  69. data/SketchUp/Sketchup/PagesObserver.rb +76 -0
  70. data/SketchUp/Sketchup/PickHelper.rb +457 -0
  71. data/SketchUp/Sketchup/RegionalSettings.rb +43 -0
  72. data/SketchUp/Sketchup/RenderingOptions.rb +337 -0
  73. data/SketchUp/Sketchup/RenderingOptionsObserver.rb +44 -0
  74. data/SketchUp/Sketchup/SectionPlane.rb +88 -0
  75. data/SketchUp/Sketchup/Selection.rb +470 -0
  76. data/SketchUp/Sketchup/SelectionObserver.rb +115 -0
  77. data/SketchUp/Sketchup/Set.rb +253 -0
  78. data/SketchUp/Sketchup/ShadowInfo.rb +257 -0
  79. data/SketchUp/Sketchup/ShadowInfoObserver.rb +57 -0
  80. data/SketchUp/Sketchup/Style.rb +77 -0
  81. data/SketchUp/Sketchup/Styles.rb +204 -0
  82. data/SketchUp/Sketchup/Text.rb +241 -0
  83. data/SketchUp/Sketchup/Texture.rb +211 -0
  84. data/SketchUp/Sketchup/TextureWriter.rb +237 -0
  85. data/SketchUp/Sketchup/Tool.rb +808 -0
  86. data/SketchUp/Sketchup/Tools.rb +120 -0
  87. data/SketchUp/Sketchup/ToolsObserver.rb +154 -0
  88. data/SketchUp/Sketchup/UVHelper.rb +61 -0
  89. data/SketchUp/Sketchup/Vertex.rb +143 -0
  90. data/SketchUp/Sketchup/View.rb +965 -0
  91. data/SketchUp/Sketchup/ViewObserver.rb +40 -0
  92. data/SketchUp/UI/Command.rb +307 -0
  93. data/SketchUp/UI/HtmlDialog.rb +346 -0
  94. data/SketchUp/UI/Notification.rb +229 -0
  95. data/SketchUp/UI/Toolbar.rb +243 -0
  96. data/SketchUp/UI/WebDialog.rb +623 -0
  97. data/SketchUp/_top_level.rb +193 -0
  98. data/SketchUp/array.rb +593 -0
  99. data/SketchUp/geom.rb +231 -0
  100. data/SketchUp/languagehandler.rb +92 -0
  101. data/SketchUp/length.rb +210 -0
  102. data/SketchUp/numeric.rb +249 -0
  103. data/SketchUp/sketchup.rb +1290 -0
  104. data/SketchUp/sketchupextension.rb +355 -0
  105. data/SketchUp/string.rb +24 -0
  106. data/SketchUp/ui.rb +637 -0
  107. metadata +176 -0
@@ -0,0 +1,137 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The {Sketchup::Animation} interface is implemented to create animations
5
+ # inside SketchUp. At any given time, a single animation can be active on a
6
+ # {Sketchup::View}. To make your own, build a Ruby class that contains the
7
+ # methods described below:
8
+ #
9
+ # # This is an example of a simple animation that floats the camera up to
10
+ # # a z position of 200". The only required method for an animation is
11
+ # # nextFrame. It is called whenever you need to show the next frame of
12
+ # # the animation. If nextFrame returns false, the animation will stop.
13
+ # class FloatUpAnimation
14
+ # def nextFrame(view)
15
+ # new_eye = view.camera.eye
16
+ # new_eye.z = new_eye.z + 1.0
17
+ # view.camera.set(new_eye, view.camera.target, view.camera.up)
18
+ # view.show_frame
19
+ # return new_eye.z < 500.0
20
+ # end
21
+ # end
22
+ #
23
+ # # This adds an item to the Camera menu to activate our custom animation.
24
+ # UI.menu("Camera").add_item("Run Float Up Animation") {
25
+ # Sketchup.active_model.active_view.animation = FloatUpAnimation.new
26
+ # }
27
+ #
28
+ # {Sketchup::Animation} objects are activated by using the
29
+ # {Sketchup::View#animation=} method on a {Sketchup::View}
30
+ # object. To stop an animation set the view's animation object to +nil+, like
31
+ # so:
32
+ #
33
+ # Sketchup.active_model.active_view.animation = nil
34
+ #
35
+ # @version SketchUp 6.0
36
+ class Sketchup::Animation
37
+
38
+ # Instance Methods
39
+
40
+ # The {#nextFrame} method is invoked by SketchUp to tell the animation to
41
+ # display its next frame. This method should set up the camera and then call
42
+ # {Sketchup::View#show_frame}.
43
+ #
44
+ # The {#nextFrame} method is the only required method of the
45
+ # {Sketchup::Animation} interface that you must implement.
46
+ #
47
+ # @example
48
+ # def nextFrame(view)
49
+ # # Insert your handler code for updating the camera or other entities.
50
+ # view.show_frame
51
+ # return true
52
+ # end
53
+ #
54
+ # @param [Sketchup::View] view
55
+ # The view for the animation.
56
+ #
57
+ # @return [Boolean] continue - +true+ if you want the animation to continue
58
+ # on to the next frame, +false+ if you want the animation
59
+ # to stop after this frame.
60
+ #
61
+ # @version SketchUp 6.0
62
+ #
63
+ # @version SketchUp 6.0
64
+ def nextFrame(view)
65
+ end
66
+
67
+ # The {#pause} method is invoked by SketchUp when the animation is paused.
68
+ #
69
+ # This method is optional (you do not need to implement this method unless you
70
+ # want to perform some specialized function when the animation is paused). You
71
+ # cannot call this method in your code explicitly and expect an animation to
72
+ # pause, only certain SketchUp events cause the method to be called.
73
+ #
74
+ # @example
75
+ # def pause
76
+ # # Insert handler code for whatever you need to do when it is paused.
77
+ # end
78
+ #
79
+ # @note The user interface for pausing and resuming animations isn't integrated
80
+ # with the Ruby API in the current version, so this method is probably not
81
+ # useful to you.
82
+ #
83
+ # @return [nil]
84
+ #
85
+ # @version SketchUp 6.0
86
+ def pause
87
+ end
88
+
89
+ # The {#resume} method is invoked by SketchUp when the animation is resumed
90
+ # after being paused.
91
+ #
92
+ # This method is optional (you do not need to implement this method unless you
93
+ # want to perform some specialized function when the animation is resumed).
94
+ # You cannot call this method in your code explicitly and expect an animation
95
+ # to stop, only certain SketchUp events cause the method to be called.
96
+ #
97
+ # @example
98
+ # def resume
99
+ # # Insert your handler code for whatever you need to do as you resume.
100
+ # end
101
+ #
102
+ # @note The user interface for pausing and resuming animations isn't integrated
103
+ # with the Ruby API in the current version, so this method is probably not
104
+ # useful to you.
105
+ #
106
+ # @return [nil]
107
+ #
108
+ # @version SketchUp 6.0
109
+ def resume
110
+ end
111
+
112
+ # The {#stop} method is invoked by SketchUp when the animation is stopped.
113
+ #
114
+ # This method is optional (you do not need to implement this method unless you
115
+ # want to perform some specialized function when the animation is stopped). You
116
+ # cannot call this method in your code explicitly and expect an animation to
117
+ # stop, only certain SketchUp events cause the method to be called.
118
+ #
119
+ # Perhaps the most common way for this method to be called is when your Ruby
120
+ # code sets {Sketchup::View#animation=} to +nil+. See the class comments for
121
+ # an example of this.
122
+ #
123
+ # @example
124
+ # def stop
125
+ # # Insert your handler code for cleaning up after your animation.
126
+ # end
127
+ #
128
+ # @note Do not call +view.animation = nil+ within this method! This will cause
129
+ # a recursive loop and crash SketchUp.
130
+ #
131
+ # @return [nil]
132
+ #
133
+ # @version SketchUp 6.0
134
+ def stop
135
+ end
136
+
137
+ end
@@ -0,0 +1,157 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # This observer interface is implemented to react to application events.
5
+ # This interface is often used to attach other observers to models as they
6
+ # are opened or started.
7
+ # This ensures that your observers are watching all open models.
8
+ #
9
+ # For example, when one attaches a {Sketchup::SelectionObserver}, it is only
10
+ # attached to the {Sketchup::Selection} collection of a given model. If a 2nd
11
+ # model is opened, the new model's selection changes will not fire selection
12
+ # callbacks unless you've attached a {Sketchup::SelectionObserver} to the new
13
+ # model as well. By watching for {#onNewModel}, you can be sure to do so.
14
+ #
15
+ # To implement this observer, create a Ruby class of this type, override the
16
+ # desired methods, and add an instance of the observer to the
17
+ # application class.
18
+ #
19
+ # @example
20
+ # # This is an example of an observer that watches the application for
21
+ # # new models and shows a messagebox.
22
+ # class MyAppObserver < Sketchup::AppObserver
23
+ # def onNewModel(model)
24
+ # puts "onNewModel: #{model}"
25
+ #
26
+ # # Here is where one might attach other observers to the new model.
27
+ # model.selection.add_observer(MySelectionObserver.new)
28
+ # end
29
+ # end
30
+ #
31
+ # # Attach the observer
32
+ # Sketchup.add_observer(MyAppObserver.new)
33
+ #
34
+ # @version SketchUp 6.0
35
+ class Sketchup::AppObserver
36
+
37
+ # Instance Methods
38
+
39
+ # The {#expectsStartupModelNotifications} method is called to determine if the
40
+ # observer expects to receive {#onNewModel} and {#onOpenModel} calls for the
41
+ # models that are created or opened at SketchUp startup. This includes the
42
+ # empty initial model, a model opened via command line arguments, or
43
+ # auto-restored models on Mac OS X.
44
+ #
45
+ # @example
46
+ # def expectsStartupModelNotifications
47
+ # return true
48
+ # end
49
+ #
50
+ # @note Prior to SketchUp 2014, {#onNewModel} and {#onOpenModel} were
51
+ # not being called for the startup models. This issue is now fixed but
52
+ # observers still need to express their intent to receive these calls. This is
53
+ # for back-compatibility with existing scripts which worked around these
54
+ # missing calls by other means. For new code, this method should be implemented
55
+ # and should return +true+.
56
+ #
57
+ # @return [Boolean] +true+ to receive {#onNewModel} and {#onOpenModel} calls
58
+ # for startup models. Return +false+ or simply not
59
+ # implement the method in order to not receive these calls
60
+ # (which was the behavior prior to SketchUp 2014).
61
+ #
62
+ # @version SketchUp 2014
63
+ def expectsStartupModelNotifications
64
+ end
65
+
66
+ # The {#onActivateModel} method is called when an open model is activated. This
67
+ # is relevant on Mac only which supports multiple documents to be opened
68
+ # simultaneously.
69
+ #
70
+ # @example
71
+ # def onActivateModel(model)
72
+ # puts "onActivateModel: #{model}"
73
+ # end
74
+ #
75
+ # @param [Sketchup::Model] model
76
+ # The newly-activated model object.
77
+ #
78
+ # @return [nil]
79
+ #
80
+ # @version SketchUp 2015
81
+ def onActivateModel(model)
82
+ end
83
+
84
+ # The {#onNewModel} method is called when the application creates a new, empty
85
+ # model.
86
+ #
87
+ # @example
88
+ # def onNewModel(model)
89
+ # puts "onNewModel: #{model}"
90
+ # end
91
+ #
92
+ # @param [Sketchup::Model] model
93
+ # The active model object.
94
+ #
95
+ # @return [nil]
96
+ #
97
+ # @version SketchUp 6.0
98
+ def onNewModel(model)
99
+ end
100
+
101
+ # The {#onOpenModel} method is called when the application opens an existing
102
+ # model.
103
+ #
104
+ # @example
105
+ # def onOpenModel(model)
106
+ # puts "onOpenModel: #{model}"
107
+ # end
108
+ #
109
+ # @note If a skp file is loaded via the command line or double-clicking on
110
+ # a skp in explorer (which is also is the command line) then this
111
+ # observer will not be called. The Ruby interpreter in SketchUp is
112
+ # initialized after command line processing so the observer won't
113
+ # be added in time to get the notification.
114
+ #
115
+ # @param [Sketchup::Model] model
116
+ # The active model object.
117
+ #
118
+ # @return [nil]
119
+ #
120
+ # @version SketchUp 6.0
121
+ def onOpenModel(model)
122
+ end
123
+
124
+ # The {#onQuit} method is called when SketchUp closes. This is useful if you
125
+ # need to clean up anything or store your application state upon close.
126
+ #
127
+ # @example
128
+ # def onQuit()
129
+ # puts "onQuit"
130
+ # end
131
+ #
132
+ # @return [nil]
133
+ #
134
+ # @version SketchUp 6.0
135
+ def onQuit
136
+ end
137
+
138
+ # The {#onUnloadExtension} method is called when the user turns off a Ruby
139
+ # extension. This is useful for detecting if the user is deactivating
140
+ # some critical set of observers, for example, so you can warn them
141
+ # or cache your extension state.
142
+ #
143
+ # @example
144
+ # def onUnloadExtension(extension_name)
145
+ # puts "onUnloadExtension: #{extension_name}"
146
+ # end
147
+ #
148
+ # @param [String] extension_name
149
+ # The name of the extension just unloaded.
150
+ #
151
+ # @return [nil]
152
+ #
153
+ # @version SketchUp 7.0
154
+ def onUnloadExtension(extension_name)
155
+ end
156
+
157
+ end
@@ -0,0 +1,209 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # An ArcCurve is a Curve that makes up part of a circle. This is the
5
+ # underlying class for circles as well.
6
+ #
7
+ # You can think of ArcCurves as entities that were created with SketchUp's
8
+ # Arc or Circle drawing tools and Curves as entities that were created with
9
+ # the Freehand drawing tool.
10
+ #
11
+ # However, keep in mind that all Curves in SketchUp are really edges with
12
+ # some extra data attached to them. When you use the API to draw a Curve or
13
+ # ArcCurve, you are really drawing edges.
14
+ #
15
+ # ArcCurve is a subclass of Curve, so all of the methods that are available
16
+ # to Curves are also available to ArcCurves.
17
+ #
18
+ # @example
19
+ # # Draw a circle on the ground plane around the origin.
20
+ # center_point = Geom::Point3d.new(0,0,0)
21
+ # normal_vector = Geom::Vector3d.new(0,0,1)
22
+ # radius = 10
23
+ #
24
+ # entities = Sketchup.active_model.entities
25
+ # edgearray = entities.add_circle center_point, normal_vector, radius
26
+ # first_edge = edgearray[0]
27
+ # arccurve = first_edge.curve
28
+ #
29
+ # @version SketchUp 6.0
30
+ class Sketchup::ArcCurve < Sketchup::Curve
31
+
32
+ # Instance Methods
33
+
34
+ # The center method is used to retrieve the Point3d that is at the center of
35
+ # the circular arc.
36
+ #
37
+ # @example
38
+ # centerpoint = Geom::Point3d.new
39
+ # # Create a circle perpendicular to the normal or Z axis
40
+ # vector = Geom::Vector3d.new 0,0,1
41
+ # vector2 = vector.normalize!
42
+ # model = Sketchup.active_model
43
+ # entities = model.entities
44
+ # edgearray = entities.add_circle centerpoint, vector2, 10
45
+ # edge = edgearray[0]
46
+ # arccurve = edge.curve
47
+ # point = arccurve.center
48
+ #
49
+ # @return point - a Point3d at the center of the arc if
50
+ # successful
51
+ #
52
+ # @version SketchUp 6.0
53
+ def center
54
+ end
55
+
56
+ # The end_angle method is used to retrieve the angle of the end of the arc
57
+ # measured from the X axis in radians.
58
+ #
59
+ # @example
60
+ # # Create a 1/2 circle, normal to the Z axis
61
+ # center = Geom::Point3d.new
62
+ # normal = Geom::Vector3d.new 0,0,1
63
+ # xaxis = Geom::Vector3d.new 1,0,0
64
+ # start_a = 0.0
65
+ # end_a = Math::PI
66
+ # model = Sketchup.active_model
67
+ # entities = model.entities
68
+ # edgearray = entities.add_arc center, xaxis, normal, 5, start_a, end_a
69
+ # edge = edgearray[0]
70
+ # arccurve = edge.curve
71
+ # end_angle = arccurve.end_angle
72
+ #
73
+ # @return angle - the angle of the end of the arc if successful
74
+ #
75
+ # @version SketchUp 6.0
76
+ def end_angle
77
+ end
78
+
79
+ # The normal method retrieves a Vector3d that is perpendicular to the plane of
80
+ # the arc.
81
+ #
82
+ # @example
83
+ # centerpoint = Geom::Point3d.new
84
+ # # Create a circle perpendicular to the normal or Z axis
85
+ # vector = Geom::Vector3d.new 0,0,1
86
+ # vector2 = vector.normalize!
87
+ # model = Sketchup.active_model
88
+ # entities = model.entities
89
+ # edgearray = entities.add_circle centerpoint, vector2, 10
90
+ # edge = edgearray[0]
91
+ # arccurve = edge.curve
92
+ # v = arccurve.normal
93
+ #
94
+ # @return vector - a Vector3d object if successful
95
+ #
96
+ # @version SketchUp 6.0
97
+ def normal
98
+ end
99
+
100
+ # The plane method is used to retrieve the plane of the arc.
101
+ #
102
+ # Refer to the Geom module for instructions to create a plane.
103
+ #
104
+ # @example
105
+ # centerpoint = Geom::Point3d.new
106
+ # # Create a circle perpendicular to the normal or Z axis
107
+ # vector = Geom::Vector3d.new 0,0,1
108
+ # vector2 = vector.normalize!
109
+ # model = Sketchup.active_model
110
+ # entities = model.entities
111
+ # edgearray = entities.add_circle centerpoint, vector2, 10
112
+ # edge = edgearray[0]
113
+ # arccurve = edge.curve
114
+ # plane = arccurve.plane
115
+ #
116
+ # @return plane - the plane of the arc if successful
117
+ #
118
+ # @version SketchUp 6.0
119
+ def plane
120
+ end
121
+
122
+ # The radius method is used to retrieve the radius of the arc.
123
+ #
124
+ # @example
125
+ # centerpoint = Geom::Point3d.new
126
+ # # Create a circle perpendicular to the normal or Z axis
127
+ # vector = Geom::Vector3d.new 0,0,1
128
+ # vector2 = vector.normalize!
129
+ # model = Sketchup.active_model
130
+ # entities = model.entities
131
+ # edgearray = entities.add_circle centerpoint, vector2, 10
132
+ # edge = edgearray[0]
133
+ # arccurve = edge.curve
134
+ # radius = arccurve.radius
135
+ #
136
+ # @return radius - the radius of the arc if successful
137
+ #
138
+ # @version SketchUp 6.0
139
+ def radius
140
+ end
141
+
142
+ # The start_angle method is used to retrieve the angle of the start of the
143
+ # arc, measured from the X axis in radians.
144
+ #
145
+ # @example
146
+ # # Create a 1/4 circle, radius of 5, normal to the Z axis
147
+ # center = Geom::Point3d.new 0, 0, -1
148
+ # normal = Geom::Vector3d.new 0,0,1
149
+ # xaxis = Geom::Vector3d.new 1,0,0
150
+ # start_a = Math::PI/2
151
+ # end_a = Math::PI
152
+ # model = Sketchup.active_model
153
+ # entities = model.entities
154
+ # edgearray = entities.add_arc center, xaxis, normal, 5, start_a, end_a
155
+ # edge = edgearray[0]
156
+ # arccurve = edge.curve
157
+ # start_angle = arccurve.start_angle
158
+ #
159
+ # @return angle - the angle of the start of the arc if successful
160
+ #
161
+ # @version SketchUp 6.0
162
+ def start_angle
163
+ end
164
+
165
+ # The xaxis method is used to retrieve the X axis of the coordinate system for
166
+ # the curve. Note that the length of the returned vector is equal to the radius
167
+ # of the underlying curve.
168
+ #
169
+ # @example
170
+ # centerpoint = Geom::Point3d.new
171
+ # # Create a circle perpendicular to the normal or Z axis
172
+ # vector = Geom::Vector3d.new 0,0,1
173
+ # vector2 = vector.normalize!
174
+ # model = Sketchup.active_model
175
+ # entities = model.entities
176
+ # edgearray = entities.add_circle centerpoint, vector2, 10
177
+ # edge = edgearray[0]
178
+ # arccurve = edge.curve
179
+ # v = arccurve.xaxis
180
+ #
181
+ # @return vector - a Vector3d object if successful
182
+ #
183
+ # @version SketchUp 6.0
184
+ def xaxis
185
+ end
186
+
187
+ # The yaxis method is used to retrieve the Y axis of the coordinate system for
188
+ # the curve. Note that the length of the returned vector is equal to the radius
189
+ # of the underlying curve.
190
+ #
191
+ # @example
192
+ # centerpoint = Geom::Point3d.new
193
+ # # Create a circle perpendicular to the normal or Z axis
194
+ # vector = Geom::Vector3d.new 0,0,1
195
+ # vector2 = vector.normalize!
196
+ # model = Sketchup.active_model
197
+ # entities = model.entities
198
+ # edgearray = entities.add_circle centerpoint, vector2, 10
199
+ # edge = edgearray[0]
200
+ # arccurve = edge.curve
201
+ # v = arccurve.yaxis
202
+ #
203
+ # @return vector - a Vector3d object if successful
204
+ #
205
+ # @version SketchUp 6.0
206
+ def yaxis
207
+ end
208
+
209
+ end