sketchup-api-stubs 0.7.7 → 0.7.8
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 +2 -1
- data/lib/sketchup-api-stubs/stubs/{array.rb → Array.rb} +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/LatLong.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Point2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Point3d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb +18 -4
- data/lib/sketchup-api-stubs/stubs/Geom/Transformation.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/UTM.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Vector2d.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Geom/Vector3d.rb +16 -14
- data/lib/sketchup-api-stubs/stubs/{geom.rb → Geom.rb} +1 -1
- data/lib/sketchup-api-stubs/stubs/{languagehandler.rb → LanguageHandler.rb} +5 -4
- data/lib/sketchup-api-stubs/stubs/Layout/AngularDimension.rb +76 -54
- data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinition.rb +311 -24
- data/lib/sketchup-api-stubs/stubs/Layout/AutoTextDefinitions.rb +8 -4
- data/lib/sketchup-api-stubs/stubs/Layout/ConnectionPoint.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Document.rb +2 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Ellipse.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Entities.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Entity.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/FormattedText.rb +16 -11
- data/lib/sketchup-api-stubs/stubs/Layout/Grid.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Group.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Image.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Label.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Layout/Layer.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/LayerInstance.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Layers.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/LinearDimension.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/LockedEntityError.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/LockedLayerError.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Page.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/PageInfo.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Pages.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Layout/Path.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Rectangle.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/SketchUpModel.rb +9 -11
- data/lib/sketchup-api-stubs/stubs/Layout/Style.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/Table.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/TableCell.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/TableColumn.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout/TableRow.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Layout.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/{length.rb → Length.rb} +1 -1
- data/lib/sketchup-api-stubs/stubs/{numeric.rb → Numeric.rb} +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Animation.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/AppObserver.rb +13 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ArcCurve.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionaries.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/AttributeDictionary.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Axes.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Behavior.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Camera.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Classifications.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Color.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb +50 -8
- data/lib/sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb +7 -8
- data/lib/sketchup-api-stubs/stubs/Sketchup/Console.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ConstructionPoint.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Curve.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionList.rb +7 -6
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DefinitionsObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Dimension.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionLinear.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/DimensionRadial.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Edge.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Entities.rb +120 -41
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesBuilder.rb +272 -0
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Entity.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/EntityObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/Face.rb +27 -7
- data/lib/sketchup-api-stubs/stubs/Sketchup/FrameChangeObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Group.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Request.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Http.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Image.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ImageRep.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Importer.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/InputPoint.rb +4 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/InstanceObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/InstancePath.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Layer.rb +7 -8
- data/lib/sketchup-api-stubs/stubs/Sketchup/LayerFolder.rb +8 -8
- data/lib/sketchup-api-stubs/stubs/Sketchup/Layers.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/LayersObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing/ExtensionLicense.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Licensing.rb +3 -3
- data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyle.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Loop.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Material.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Materials.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/MaterialsObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Menu.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Model.rb +68 -71
- data/lib/sketchup-api-stubs/stubs/Sketchup/ModelObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Page.rb +7 -7
- data/lib/sketchup-api-stubs/stubs/Sketchup/Pages.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/PickHelper.rb +4 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/RegionalSettings.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptionsObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/SectionPlane.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Selection.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/SelectionObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Set.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfo.rb +7 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/ShadowInfoObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Skp.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Style.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Styles.rb +2 -2
- data/lib/sketchup-api-stubs/stubs/Sketchup/Text.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Texture.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/TextureWriter.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/Tool.rb +5 -3
- data/lib/sketchup-api-stubs/stubs/Sketchup/Tools.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/ToolsObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/UVHelper.rb +9 -5
- data/lib/sketchup-api-stubs/stubs/Sketchup/Vertex.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/Sketchup/View.rb +14 -4
- data/lib/sketchup-api-stubs/stubs/Sketchup/ViewObserver.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/{sketchup.rb → Sketchup.rb} +10 -3
- data/lib/sketchup-api-stubs/stubs/{sketchupextension.rb → SketchupExtension.rb} +1 -1
- data/lib/sketchup-api-stubs/stubs/{string.rb → String.rb} +1 -1
- data/lib/sketchup-api-stubs/stubs/UI/Command.rb +79 -7
- data/lib/sketchup-api-stubs/stubs/UI/HtmlDialog.rb +26 -8
- data/lib/sketchup-api-stubs/stubs/UI/Notification.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/UI/Toolbar.rb +1 -1
- data/lib/sketchup-api-stubs/stubs/UI/WebDialog.rb +18 -16
- data/lib/sketchup-api-stubs/stubs/{ui.rb → UI.rb} +25 -14
- data/lib/sketchup-api-stubs/stubs/_top_level.rb +1 -1
- metadata +12 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
1
|
+
# Copyright:: Copyright 2022 Trimble Inc.
|
|
2
2
|
# License:: The MIT License (MIT)
|
|
3
3
|
|
|
4
4
|
# References an angular dimension entity. An {Layout::AngularDimension} is
|
|
@@ -34,14 +34,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
34
34
|
# The {#angle} method returns the {Layout::AngularDimension}'s angle. The angle
|
|
35
35
|
# is represented in radians.
|
|
36
36
|
#
|
|
37
|
+
# inner_angle) angle = dim.angle
|
|
38
|
+
#
|
|
37
39
|
# @example
|
|
38
40
|
# start_point = Geom::Point2d.new(1, 1)
|
|
39
41
|
# end_point = Geom::Point2d.new(5, 5)
|
|
40
42
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
41
43
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
42
44
|
# inner_angle = true
|
|
43
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
44
|
-
# angle = dim.angle
|
|
45
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
45
46
|
#
|
|
46
47
|
# @return [Numeric]
|
|
47
48
|
#
|
|
@@ -52,14 +53,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
52
53
|
# The {#arc_center_point} method returns the paper space location for the
|
|
53
54
|
# dimension arc center point.
|
|
54
55
|
#
|
|
56
|
+
# inner_angle) center = dim.arc_center_point
|
|
57
|
+
#
|
|
55
58
|
# @example
|
|
56
59
|
# start_point = Geom::Point2d.new(1, 1)
|
|
57
60
|
# end_point = Geom::Point2d.new(5, 5)
|
|
58
61
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
59
62
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
60
63
|
# inner_angle = true
|
|
61
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
62
|
-
# center = dim.arc_center_point
|
|
64
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
63
65
|
#
|
|
64
66
|
# @return [Geom::Point2d]
|
|
65
67
|
#
|
|
@@ -72,14 +74,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
72
74
|
# change. When +false+, the text will display the length measurement and wil
|
|
73
75
|
# update automatically.
|
|
74
76
|
#
|
|
77
|
+
# inner_angle) dim.custom_text = true
|
|
78
|
+
#
|
|
75
79
|
# @example
|
|
76
80
|
# start_point = Geom::Point2d.new(1, 1)
|
|
77
81
|
# end_point = Geom::Point2d.new(5, 5)
|
|
78
82
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
79
83
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
80
84
|
# inner_angle = true
|
|
81
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
82
|
-
# dim.custom_text = true
|
|
85
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
83
86
|
#
|
|
84
87
|
# @param [Boolean] uses_custom_text
|
|
85
88
|
#
|
|
@@ -97,15 +100,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
97
100
|
# doesn't change. When +false+, the text will display the length measurement
|
|
98
101
|
# and will update automatically.
|
|
99
102
|
#
|
|
103
|
+
# inner_angle) # returns false uses_custom_text = dim.custom_text?
|
|
104
|
+
#
|
|
100
105
|
# @example
|
|
101
106
|
# start_point = Geom::Point2d.new(1, 1)
|
|
102
107
|
# end_point = Geom::Point2d.new(5, 5)
|
|
103
108
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
104
109
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
105
110
|
# inner_angle = true
|
|
106
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
107
|
-
# # returns false
|
|
108
|
-
# uses_custom_text = dim.custom_text?
|
|
111
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
109
112
|
#
|
|
110
113
|
# @return [Boolean]
|
|
111
114
|
#
|
|
@@ -116,14 +119,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
116
119
|
# The {#end_connection_point} method returns the paper space location for the
|
|
117
120
|
# second connection.
|
|
118
121
|
#
|
|
122
|
+
# inner_angle) end_connection = dim.end_connection_point
|
|
123
|
+
#
|
|
119
124
|
# @example
|
|
120
125
|
# start_point = Geom::Point2d.new(1, 1)
|
|
121
126
|
# end_point = Geom::Point2d.new(5, 5)
|
|
122
127
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
123
128
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
124
129
|
# inner_angle = true
|
|
125
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
126
|
-
# end_connection = dim.end_connection_point
|
|
130
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
127
131
|
#
|
|
128
132
|
# @return [Geom::Point2d]
|
|
129
133
|
#
|
|
@@ -134,14 +138,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
134
138
|
# The {#end_connection_point=} method sets the paper space location for the
|
|
135
139
|
# second connection.
|
|
136
140
|
#
|
|
141
|
+
# inner_angle) dim.end_connection_point = Geom::Point2d.new(6, 6)
|
|
142
|
+
#
|
|
137
143
|
# @example
|
|
138
144
|
# start_point = Geom::Point2d.new(1, 1)
|
|
139
145
|
# end_point = Geom::Point2d.new(5, 5)
|
|
140
146
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
141
147
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
142
148
|
# inner_angle = true
|
|
143
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
144
|
-
# dim.end_connection_point = Geom::Point2d.new(6, 6)
|
|
149
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
145
150
|
#
|
|
146
151
|
# @param [Geom::Point2d] end_point
|
|
147
152
|
#
|
|
@@ -157,14 +162,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
157
162
|
# The {#end_extent_point} method returns the paper space location for the
|
|
158
163
|
# end of the dimension line.
|
|
159
164
|
#
|
|
165
|
+
# inner_angle) end_ext_point = dim.end_extent_point
|
|
166
|
+
#
|
|
160
167
|
# @example
|
|
161
168
|
# start_point = Geom::Point2d.new(1, 1)
|
|
162
169
|
# end_point = Geom::Point2d.new(5, 5)
|
|
163
170
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
164
171
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
165
172
|
# inner_angle = true
|
|
166
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
167
|
-
# end_ext_point = dim.end_extent_point
|
|
173
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
168
174
|
#
|
|
169
175
|
# @return [Geom::Point2d] end_extent
|
|
170
176
|
#
|
|
@@ -175,15 +181,16 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
175
181
|
# The {#end_extent_point=} method sets the paper space location for the
|
|
176
182
|
# end of the dimension line.
|
|
177
183
|
#
|
|
184
|
+
# inner_angle) end_ext_point = Geom::Point2d.new(5, 6) dim.end_extent_point = Geom::Point2d.new(6,
|
|
185
|
+
# 6)
|
|
186
|
+
#
|
|
178
187
|
# @example
|
|
179
188
|
# start_point = Geom::Point2d.new(1, 1)
|
|
180
189
|
# end_point = Geom::Point2d.new(5, 5)
|
|
181
190
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
182
191
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
183
192
|
# inner_angle = true
|
|
184
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
185
|
-
# end_ext_point = Geom::Point2d.new(5, 6)
|
|
186
|
-
# dim.end_extent_point = Geom::Point2d.new(6, 6)
|
|
193
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
187
194
|
#
|
|
188
195
|
# @param [Geom::Point2d] end_extent
|
|
189
196
|
#
|
|
@@ -200,15 +207,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
200
207
|
# second connection point to the start of the second extension line. The
|
|
201
208
|
# connection and extent points will not move.
|
|
202
209
|
#
|
|
210
|
+
# inner_angle) end_ext_point = Geom::Point2d.new(5, 6) dim.end_offset_length = 0.5
|
|
211
|
+
#
|
|
203
212
|
# @example
|
|
204
213
|
# start_point = Geom::Point2d.new(1, 1)
|
|
205
214
|
# end_point = Geom::Point2d.new(5, 5)
|
|
206
215
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
207
216
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
208
217
|
# inner_angle = true
|
|
209
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
210
|
-
# end_ext_point = Geom::Point2d.new(5, 6)
|
|
211
|
-
# dim.end_offset_length = 0.5
|
|
218
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
212
219
|
#
|
|
213
220
|
# @param [Numeric] offset_length
|
|
214
221
|
#
|
|
@@ -225,14 +232,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
225
232
|
# end of the first extension line. The first extension line runs from this
|
|
226
233
|
# offset point to the end extent point.
|
|
227
234
|
#
|
|
235
|
+
# inner_angle) end_offset = dim.end_offset_point
|
|
236
|
+
#
|
|
228
237
|
# @example
|
|
229
238
|
# start_point = Geom::Point2d.new(1, 1)
|
|
230
239
|
# end_point = Geom::Point2d.new(5, 5)
|
|
231
240
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
232
241
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
233
242
|
# inner_angle = true
|
|
234
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
235
|
-
# end_offset = dim.end_offset_point
|
|
243
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
236
244
|
#
|
|
237
245
|
# @return [Geom::Point2d] end_offset
|
|
238
246
|
#
|
|
@@ -246,14 +254,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
246
254
|
# from four to six {Layout::Entity}s: start extension line, end extension line,
|
|
247
255
|
# one or two dimension lines, dimension text, and optionally the leader line.
|
|
248
256
|
#
|
|
257
|
+
# inner_angle) entites = dim.entities
|
|
258
|
+
#
|
|
249
259
|
# @example
|
|
250
260
|
# start_point = Geom::Point2d.new(1, 1)
|
|
251
261
|
# end_point = Geom::Point2d.new(5, 5)
|
|
252
262
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
253
263
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
254
264
|
# inner_angle = true
|
|
255
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
256
|
-
# entites = dim.entities
|
|
265
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
257
266
|
#
|
|
258
267
|
# @return [Layout::Entities]
|
|
259
268
|
#
|
|
@@ -264,13 +273,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
264
273
|
# The {#initialize} method creates a new disconnected
|
|
265
274
|
# {Layout::AngularDimension}.
|
|
266
275
|
#
|
|
276
|
+
# inner_angle)
|
|
277
|
+
#
|
|
267
278
|
# @example
|
|
268
279
|
# start_point = Geom::Point2d.new(1, 1)
|
|
269
280
|
# end_point = Geom::Point2d.new(5, 5)
|
|
270
281
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
271
282
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
272
283
|
# inner_angle = true
|
|
273
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
284
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
274
285
|
#
|
|
275
286
|
# @param [Geom::Point2d] start_point
|
|
276
287
|
# Where the {Layout::AngularDimension}
|
|
@@ -307,14 +318,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
307
318
|
# [+Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER+]
|
|
308
319
|
# [+Layout::AngularDimension::LEADER_LINE_TYPE_HIDDEN+]
|
|
309
320
|
#
|
|
321
|
+
# inner_angle) type = dim.leader_line_type
|
|
322
|
+
#
|
|
310
323
|
# @example
|
|
311
324
|
# start_point = Geom::Point2d.new(1, 1)
|
|
312
325
|
# end_point = Geom::Point2d.new(5, 5)
|
|
313
326
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
314
327
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
315
328
|
# inner_angle = true
|
|
316
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
317
|
-
# type = dim.leader_line_type
|
|
329
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
318
330
|
#
|
|
319
331
|
# @return [Integer]
|
|
320
332
|
#
|
|
@@ -331,14 +343,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
331
343
|
# [+Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER+]
|
|
332
344
|
# [+Layout::AngularDimension::LEADER_LINE_TYPE_HIDDEN+]
|
|
333
345
|
#
|
|
346
|
+
# inner_angle) dim.leader_line_type = Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER
|
|
347
|
+
#
|
|
334
348
|
# @example
|
|
335
349
|
# start_point = Geom::Point2d.new(1, 1)
|
|
336
350
|
# end_point = Geom::Point2d.new(5, 5)
|
|
337
351
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
338
352
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
339
353
|
# inner_angle = true
|
|
340
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
341
|
-
# dim.leader_line_type = Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER
|
|
354
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
342
355
|
#
|
|
343
356
|
# @param [Integer] type
|
|
344
357
|
# The leader line type
|
|
@@ -357,14 +370,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
357
370
|
# The {#radius} method returns the {Layout::AngularDimension}'s radius. This is
|
|
358
371
|
# the distance from the arc center point to the dimension line.
|
|
359
372
|
#
|
|
373
|
+
# inner_angle) radius = dim.radius
|
|
374
|
+
#
|
|
360
375
|
# @example
|
|
361
376
|
# start_point = Geom::Point2d.new(1, 1)
|
|
362
377
|
# end_point = Geom::Point2d.new(5, 5)
|
|
363
378
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
364
379
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
365
380
|
# inner_angle = true
|
|
366
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
367
|
-
# radius = dim.radius
|
|
381
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
368
382
|
#
|
|
369
383
|
# @return [Numeric]
|
|
370
384
|
#
|
|
@@ -375,14 +389,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
375
389
|
# The {#radius=} method sets the the {Layout::AngularDimension}'s radius. This
|
|
376
390
|
# is the distance from the arc center point to the dimension line.
|
|
377
391
|
#
|
|
392
|
+
# inner_angle) dim.radius = 2.0
|
|
393
|
+
#
|
|
378
394
|
# @example
|
|
379
395
|
# start_point = Geom::Point2d.new(1, 1)
|
|
380
396
|
# end_point = Geom::Point2d.new(5, 5)
|
|
381
397
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
382
398
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
383
399
|
# inner_angle = true
|
|
384
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
385
|
-
# dim.radius = 2.0
|
|
400
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
386
401
|
#
|
|
387
402
|
# @param [Numeric] radius
|
|
388
403
|
#
|
|
@@ -400,14 +415,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
400
415
|
# The {#start_connection_point} method returns the paper space location for the
|
|
401
416
|
# first connection.
|
|
402
417
|
#
|
|
418
|
+
# inner_angle) start_connection = dim.start_connection_point
|
|
419
|
+
#
|
|
403
420
|
# @example
|
|
404
421
|
# start_point = Geom::Point2d.new(1, 1)
|
|
405
422
|
# end_point = Geom::Point2d.new(5, 5)
|
|
406
423
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
407
424
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
408
425
|
# inner_angle = true
|
|
409
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
410
|
-
# start_connection = dim.start_connection_point
|
|
426
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
411
427
|
#
|
|
412
428
|
# @return [Geom::Point2d]
|
|
413
429
|
#
|
|
@@ -418,14 +434,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
418
434
|
# The {#start_connection_point=} method sets the paper space location for the
|
|
419
435
|
# first connection.
|
|
420
436
|
#
|
|
437
|
+
# inner_angle) dim.start_connection_point = Geom::Point2d.new(2, 2)
|
|
438
|
+
#
|
|
421
439
|
# @example
|
|
422
440
|
# start_point = Geom::Point2d.new(1, 1)
|
|
423
441
|
# end_point = Geom::Point2d.new(5, 5)
|
|
424
442
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
425
443
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
426
444
|
# inner_angle = true
|
|
427
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
428
|
-
# dim.start_connection_point = Geom::Point2d.new(2, 2)
|
|
445
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
429
446
|
#
|
|
430
447
|
# @param [Geom::Point2d] start_point
|
|
431
448
|
#
|
|
@@ -441,14 +458,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
441
458
|
# The {#start_extent_point} method returns the paper space location for the
|
|
442
459
|
# start of the dimension line.
|
|
443
460
|
#
|
|
461
|
+
# inner_angle) start_ext_point = dim.start_extent_point
|
|
462
|
+
#
|
|
444
463
|
# @example
|
|
445
464
|
# start_point = Geom::Point2d.new(1, 1)
|
|
446
465
|
# end_point = Geom::Point2d.new(5, 5)
|
|
447
466
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
448
467
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
449
468
|
# inner_angle = true
|
|
450
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
451
|
-
# start_ext_point = dim.start_extent_point
|
|
469
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
452
470
|
#
|
|
453
471
|
# @return [Geom::Point2d] start_extent
|
|
454
472
|
#
|
|
@@ -459,15 +477,16 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
459
477
|
# The {#start_extent_point=} method sets the paper space location for the
|
|
460
478
|
# start of the dimension line.
|
|
461
479
|
#
|
|
480
|
+
# inner_angle) start_ext_point = Geom::Point2d.new(2, 3) dim.start_extent_point =
|
|
481
|
+
# Geom::Point2d.new(2, 2)
|
|
482
|
+
#
|
|
462
483
|
# @example
|
|
463
484
|
# start_point = Geom::Point2d.new(1, 1)
|
|
464
485
|
# end_point = Geom::Point2d.new(5, 5)
|
|
465
486
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
466
487
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
467
488
|
# inner_angle = true
|
|
468
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
469
|
-
# start_ext_point = Geom::Point2d.new(2, 3)
|
|
470
|
-
# dim.start_extent_point = Geom::Point2d.new(2, 2)
|
|
489
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
471
490
|
#
|
|
472
491
|
# @param [Geom::Point2d] start_extent
|
|
473
492
|
#
|
|
@@ -484,15 +503,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
484
503
|
# first connection point to the start of the first extension line. The
|
|
485
504
|
# connection and extent points will not move.
|
|
486
505
|
#
|
|
506
|
+
# inner_angle) end_ext_point = Geom::Point2d.new(5, 6) dim.start_offset_length = 0.5
|
|
507
|
+
#
|
|
487
508
|
# @example
|
|
488
509
|
# start_point = Geom::Point2d.new(1, 1)
|
|
489
510
|
# end_point = Geom::Point2d.new(5, 5)
|
|
490
511
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
491
512
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
492
513
|
# inner_angle = true
|
|
493
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
494
|
-
# end_ext_point = Geom::Point2d.new(5, 6)
|
|
495
|
-
# dim.start_offset_length = 0.5
|
|
514
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
496
515
|
#
|
|
497
516
|
# @param [Numeric] offset_length
|
|
498
517
|
#
|
|
@@ -509,14 +528,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
509
528
|
# start of the first extension line. The first extension line runs from this
|
|
510
529
|
# offset point to the start extent point.
|
|
511
530
|
#
|
|
531
|
+
# inner_angle) start_offset = dim.start_offset_point
|
|
532
|
+
#
|
|
512
533
|
# @example
|
|
513
534
|
# start_point = Geom::Point2d.new(1, 1)
|
|
514
535
|
# end_point = Geom::Point2d.new(5, 5)
|
|
515
536
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
516
537
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
517
538
|
# inner_angle = true
|
|
518
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
519
|
-
# start_offset = dim.start_offset_point
|
|
539
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
520
540
|
#
|
|
521
541
|
# @return [Geom::Point2d] start_offset
|
|
522
542
|
#
|
|
@@ -527,14 +547,15 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
527
547
|
# The {#text} method returns a copy of the {Layout::AngularDimension}'s
|
|
528
548
|
# {Layout::FormattedText}.
|
|
529
549
|
#
|
|
550
|
+
# inner_angle) text = dim.text
|
|
551
|
+
#
|
|
530
552
|
# @example
|
|
531
553
|
# start_point = Geom::Point2d.new(1, 1)
|
|
532
554
|
# end_point = Geom::Point2d.new(5, 5)
|
|
533
555
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
534
556
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
535
557
|
# inner_angle = true
|
|
536
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
537
|
-
# text = dim.text
|
|
558
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
538
559
|
#
|
|
539
560
|
# @note With the addition of auto-text in dimensions for LayOut 2019.2, the
|
|
540
561
|
# copy of the dimension text incorrectly provided the plain text when
|
|
@@ -549,15 +570,16 @@ class Layout::AngularDimension < Layout::Entity
|
|
|
549
570
|
# The {#text=} method sets the {Layout::AngularDimension}'s
|
|
550
571
|
# {Layout::FormattedText}.
|
|
551
572
|
#
|
|
573
|
+
# inner_angle) anchor_type = Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT dim.text =
|
|
574
|
+
# Layout::FormattedText.new("Hello LayOut", start_point, anchor_type)
|
|
575
|
+
#
|
|
552
576
|
# @example
|
|
553
577
|
# start_point = Geom::Point2d.new(1, 1)
|
|
554
578
|
# end_point = Geom::Point2d.new(5, 5)
|
|
555
579
|
# start_extent = Geom::Point2d.new(1, 2)
|
|
556
580
|
# end_extent = Geom::Point2d.new(5, 6)
|
|
557
581
|
# inner_angle = true
|
|
558
|
-
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
559
|
-
# anchor_type = Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT
|
|
560
|
-
# dim.text = Layout::FormattedText.new("Hello LayOut", start_point, anchor_type)
|
|
582
|
+
# dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent,
|
|
561
583
|
#
|
|
562
584
|
# @param [Layout::FormattedText] formatted_text
|
|
563
585
|
#
|