Skip to content

Commit 30491e5

Browse files
committed
SketchUp 2023.0.
1 parent 0f95ecd commit 30491e5

153 files changed

Lines changed: 2153 additions & 1382 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/sketchup-api-stubs/sketchup.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
require 'sketchup-api-stubs/stubs/Layout/Pages.rb'
4141
require 'sketchup-api-stubs/stubs/Layout/Path.rb'
4242
require 'sketchup-api-stubs/stubs/Layout/Rectangle.rb'
43+
require 'sketchup-api-stubs/stubs/Layout/ReferenceEntity.rb'
4344
require 'sketchup-api-stubs/stubs/Layout/SketchUpModel.rb'
4445
require 'sketchup-api-stubs/stubs/Layout/Style.rb'
4546
require 'sketchup-api-stubs/stubs/Layout/Table.rb'
@@ -112,6 +113,8 @@
112113
require 'sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb'
113114
require 'sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb'
114115
require 'sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb'
116+
require 'sketchup-api-stubs/stubs/Sketchup/Overlay.rb'
117+
require 'sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb'
115118
require 'sketchup-api-stubs/stubs/Sketchup/Page.rb'
116119
require 'sketchup-api-stubs/stubs/Sketchup/Pages.rb'
117120
require 'sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb'

lib/sketchup-api-stubs/stubs/Array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The SketchUp Array class adds additional methods to the standard Ruby Array

lib/sketchup-api-stubs/stubs/Geom.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The Geom module defines a number of Module methods that let you perform

lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# Bounding boxes are three-dimensional boxes (eight corners), aligned with the

lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The bounds2d class represents an axis aligned bounding box represented by

lib/sketchup-api-stubs/stubs/Geom/LatLong.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The LatLong class contains various methods for creating and manipulating

lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The OrientedBounds2d class is a bounding box represented by four

lib/sketchup-api-stubs/stubs/Geom/Point2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The {Geom::Point2d} class allows you to work with a point in 2D space.

lib/sketchup-api-stubs/stubs/Geom/Point3d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The Point3d class allows you to work with a point in 3D space.

lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The {#Geom::PolygonMesh} class contains methods to create polygon mesh
@@ -130,22 +130,8 @@ def add_point(point)
130130
# polygon_index = mesh.add_polygon([point1, point2, point3])
131131
# @param [Array<Geom::Point3d>] point3d_array
132132
#
133-
# @overload add_polygon(array)
134-
#
135-
# Adds a polygon from an Array of 3-element Arrays.
136-
# @example
137-
# pts = [[0, 0, 0], [1, 0, 0], [1, 1, 0], [0.5, 2, 0], [0, 1, 0]]
138-
# mesh = Geom::PolygonMesh.new
139-
# polygon_index = mesh.add_polygon(pts)
140-
# Sketchup.active_model.entities.add_faces_from_mesh(mesh)
141-
# @param [Array<Array(3)>] array
142-
# An array of arrays of length 3, where the inner arrays are used as if
143-
# they were Point3d objects.
144-
#
145-
# @return [Integer] The index of the polygon in the mesh.
146-
#
147-
# @return [0] Invalid index. Returned if the method failed to create a
148-
# polygon.
133+
# @return [Integer] The 1-based index of the polygon in the mesh. +0+
134+
# is returned if the method failed to create a polygon.
149135
#
150136
# @version SketchUp 6.0
151137
def add_polygon(*args)
@@ -362,7 +348,7 @@ def polygon_points_at(index)
362348
# @example
363349
# polygons = polygonmesh.polygons
364350
#
365-
# @return [Array<Array<Integer>>, Array<nil>]
351+
# @return [Array<Array<Integer>>]
366352
#
367353
# @version SketchUp 6.0
368354
def polygons

0 commit comments

Comments
 (0)