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
|
# The Pages class is a container class for all pages in a {Layout::Document}.
|
|
@@ -45,7 +45,7 @@ class Layout::Pages
|
|
|
45
45
|
# @example
|
|
46
46
|
# doc = Layout::Document.open("C:/path/to/document.layout")
|
|
47
47
|
# pages = doc.pages
|
|
48
|
-
# new_page =
|
|
48
|
+
# new_page = pages.add
|
|
49
49
|
#
|
|
50
50
|
# @param [String] name
|
|
51
51
|
# The name for the new page.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
1
|
+
# Copyright:: Copyright 2022 Trimble Inc.
|
|
2
2
|
# License:: The MIT License (MIT)
|
|
3
3
|
|
|
4
4
|
# A SketchUp Model entity. This is an instance of a SketchUp Model that is
|
|
@@ -285,16 +285,15 @@ class Layout::SketchUpModel < Layout::Entity
|
|
|
285
285
|
# The {#layers_modified?} method returns whether the layers of the
|
|
286
286
|
# {Layout::SketchUpModel} has been modified.
|
|
287
287
|
#
|
|
288
|
-
#
|
|
289
|
-
# @note: In SketchUp 2020, SketchUp "layers" were renamed to "tags". For
|
|
290
|
-
# consistency with the SketchUp API, this will continue to refer to
|
|
291
|
-
# "tags" as "layers".
|
|
292
|
-
#
|
|
293
288
|
# @example
|
|
294
289
|
# bounds = Geom::Bounds2d.new(1, 1, 3, 3)
|
|
295
290
|
# model = Layout::SketchUpModel.new("C:/Path/to/model.skp", bounds)
|
|
296
291
|
# modified = model.layers_modified?
|
|
297
292
|
#
|
|
293
|
+
# @note In SketchUp 2020, SketchUp "layers" were renamed to "tags". For
|
|
294
|
+
# consistency with the SketchUp API, this will continue to refer to
|
|
295
|
+
# "tags" as "layers".
|
|
296
|
+
#
|
|
298
297
|
# @return [Boolean]
|
|
299
298
|
#
|
|
300
299
|
# @version LayOut 2020.1
|
|
@@ -534,16 +533,15 @@ class Layout::SketchUpModel < Layout::Entity
|
|
|
534
533
|
# The {#reset_layers} method resets the {Layout::SketchUpModel}'s layers to
|
|
535
534
|
# the scene's setting.
|
|
536
535
|
#
|
|
537
|
-
#
|
|
538
|
-
# @note: In SketchUp 2020, SketchUp "layers" were renamed to "tags". For
|
|
539
|
-
# consistency with the SketchUp API, this will continue to refer to
|
|
540
|
-
# "tags" as "layers".
|
|
541
|
-
#
|
|
542
536
|
# @example
|
|
543
537
|
# bounds = Geom::Bounds2d.new(1, 1, 3, 3)
|
|
544
538
|
# model = Layout::SketchUpModel.new("C:/Path/to/model.skp", bounds)
|
|
545
539
|
# model.reset_layers if model.layers_modified?
|
|
546
540
|
#
|
|
541
|
+
# @note In SketchUp 2020, SketchUp "layers" were renamed to "tags". For
|
|
542
|
+
# consistency with the SketchUp API, this will continue to refer to
|
|
543
|
+
# "tags" as "layers".
|
|
544
|
+
#
|
|
547
545
|
# @raise [LockedLayerError] if the {Layout::SketchUpModel} is on a locked
|
|
548
546
|
# {Layout::Layer}
|
|
549
547
|
#
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
1
|
+
# Copyright:: Copyright 2022 Trimble Inc.
|
|
2
2
|
# License:: The MIT License (MIT)
|
|
3
3
|
|
|
4
4
|
# This observer interface is implemented to react to application events.
|
|
@@ -81,6 +81,18 @@ class Sketchup::AppObserver
|
|
|
81
81
|
def onActivateModel(model)
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# The {#onExtensionsLoaded} method is called when SketchUp has finished loading
|
|
85
|
+
# all extensions when the application starts.
|
|
86
|
+
#
|
|
87
|
+
# @example
|
|
88
|
+
# def onExtensionsLoaded
|
|
89
|
+
# puts "onExtensionsLoaded"
|
|
90
|
+
# end
|
|
91
|
+
#
|
|
92
|
+
# @version SketchUp 2022.0
|
|
93
|
+
def onExtensionsLoaded
|
|
94
|
+
end
|
|
95
|
+
|
|
84
96
|
# The {#onNewModel} method is called when the application creates a new, empty
|
|
85
97
|
# model.
|
|
86
98
|
#
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
1
|
+
# Copyright:: Copyright 2022 Trimble Inc.
|
|
2
2
|
# License:: The MIT License (MIT)
|
|
3
3
|
|
|
4
4
|
# The {Sketchup::ComponentDefinition} class is used to define the contents for
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
# will be raised. The key/value pairs in the dictionary can be deleted safely.
|
|
21
21
|
#
|
|
22
22
|
# @version SketchUp 6.0
|
|
23
|
-
class Sketchup::ComponentDefinition <
|
|
23
|
+
class Sketchup::ComponentDefinition < Sketchup::Drawingelement
|
|
24
24
|
|
|
25
25
|
# Includes
|
|
26
26
|
|
|
@@ -512,20 +512,62 @@ class Sketchup::ComponentDefinition < DrawingElement
|
|
|
512
512
|
def remove_observer(observer)
|
|
513
513
|
end
|
|
514
514
|
|
|
515
|
-
# The save_as method is used to save your definition as a SketchUp file at the
|
|
515
|
+
# The {#save_as} method is used to save your definition as a SketchUp file at the
|
|
516
516
|
# specified file destination.
|
|
517
517
|
#
|
|
518
|
+
# Use this method when the user has chosen a path. If you want to "silently" save
|
|
519
|
+
# out the definition, without changing the path it is associated with, use
|
|
520
|
+
# {#save_copy} instead.
|
|
521
|
+
#
|
|
518
522
|
# @example
|
|
519
523
|
# my_definition = Sketchup.active_model.definitions[0]
|
|
520
|
-
#
|
|
524
|
+
# my_definition.save_as("c:\\myComponent.skp")
|
|
525
|
+
#
|
|
526
|
+
# @overload save_as(file_path)
|
|
527
|
+
#
|
|
528
|
+
# Save as the current SketchUp version.
|
|
529
|
+
# @param [String] file_path
|
|
530
|
+
# @version SketchUp 7.0
|
|
521
531
|
#
|
|
522
|
-
# @
|
|
523
|
-
#
|
|
532
|
+
# @overload save_as(file_path, version)
|
|
533
|
+
#
|
|
534
|
+
# Save as a specific SketchUp version.
|
|
535
|
+
# @param [String] file_path
|
|
536
|
+
# @param [Integer] version
|
|
537
|
+
# See {Sketchup::Model#save} for supported values.
|
|
538
|
+
# @version SketchUp 2022.0
|
|
524
539
|
#
|
|
525
540
|
# @return [Boolean] true if successful
|
|
541
|
+
def save_as(*args)
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# The {#save_copy} method is used to save your definition as a SketchUp file
|
|
545
|
+
# without changing the file path it is already associated with.
|
|
526
546
|
#
|
|
527
|
-
#
|
|
528
|
-
|
|
547
|
+
# This can be used to save out to a temporary file used by some other process,
|
|
548
|
+
# without having the temporary path permanentely written to the SketchUp
|
|
549
|
+
# model.
|
|
550
|
+
#
|
|
551
|
+
# @example
|
|
552
|
+
# my_definition = Sketchup.active_model.definitions[0]
|
|
553
|
+
# my_definition.save_copy("c:\\myComponent.skp")
|
|
554
|
+
#
|
|
555
|
+
# @overload save_copy(file_path)
|
|
556
|
+
#
|
|
557
|
+
# Save as the current SketchUp version.
|
|
558
|
+
# @param [String] file_path
|
|
559
|
+
#
|
|
560
|
+
# @overload save_copy(file_path, version)
|
|
561
|
+
#
|
|
562
|
+
# Save as a specific SketchUp version.
|
|
563
|
+
# @param [String] file_path
|
|
564
|
+
# @param [Integer] version
|
|
565
|
+
# See {Sketchup::Model#save} for supported values.
|
|
566
|
+
#
|
|
567
|
+
# @return [Boolean] true if successful
|
|
568
|
+
#
|
|
569
|
+
# @version SketchUp 2022.0
|
|
570
|
+
def save_copy(*args)
|
|
529
571
|
end
|
|
530
572
|
|
|
531
573
|
# Saves a component thumbnail image. The image format is specified by the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
1
|
+
# Copyright:: Copyright 2022 Trimble Inc.
|
|
2
2
|
# License:: The MIT License (MIT)
|
|
3
3
|
|
|
4
4
|
# The {Sketchup::ComponentInstance} class is used to represent component
|
|
@@ -428,6 +428,11 @@ class Sketchup::ComponentInstance < Sketchup::Drawingelement
|
|
|
428
428
|
# instances representing manifold solid volumes (this - arg). If the specified
|
|
429
429
|
# objects (this and arg) do not represent manifold volumes, this method fails.
|
|
430
430
|
#
|
|
431
|
+
# resultant groups if the two objects (this and arg) represent manifold solids and the operation
|
|
432
|
+
# succeeds otherwise nil is returned. The 3 groups are as follows: The intersection of volume 1 &
|
|
433
|
+
# volume 2, the difference of volume 1 minus volume 2, and the reverse difference of volume 2 minus
|
|
434
|
+
# volume 1.
|
|
435
|
+
#
|
|
431
436
|
# @example
|
|
432
437
|
# entities = Sketchup.active_model.entities
|
|
433
438
|
# instance1 = entities[0]
|
|
@@ -439,13 +444,7 @@ class Sketchup::ComponentInstance < Sketchup::Drawingelement
|
|
|
439
444
|
# @param [Sketchup::ComponentInstance, nil] instance
|
|
440
445
|
# The instance to split this instance with.
|
|
441
446
|
#
|
|
442
|
-
# @return [Array(Sketchup::Group, Sketchup::Group, Sketchup::Group)] A vector (array) of the three
|
|
443
|
-
# if the two objects (this and arg) represent manifold
|
|
444
|
-
# solids and the operation succeeds otherwise nil is
|
|
445
|
-
# returned. The 3 groups are as follows: The intersection
|
|
446
|
-
# of volume 1 & volume 2, the difference of
|
|
447
|
-
# volume 1 minus volume 2, and the reverse difference of
|
|
448
|
-
# volume 2 minus volume 1.
|
|
447
|
+
# @return [Array(Sketchup::Group, Sketchup::Group, Sketchup::Group)] A vector (array) of the three
|
|
449
448
|
#
|
|
450
449
|
# @version SketchUp 8.0
|
|
451
450
|
def split(instance)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright:: Copyright
|
|
1
|
+
# Copyright:: Copyright 2022 Trimble Inc.
|
|
2
2
|
# License:: The MIT License (MIT)
|
|
3
3
|
|
|
4
4
|
# A DefinitionList object holds a list of all of the ComponentDefinition
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# definitions from the list.
|
|
7
7
|
#
|
|
8
8
|
# @version SketchUp 6.0
|
|
9
|
-
class Sketchup::DefinitionList < Entity
|
|
9
|
+
class Sketchup::DefinitionList < Sketchup::Entity
|
|
10
10
|
|
|
11
11
|
# Includes
|
|
12
12
|
|
|
@@ -120,7 +120,7 @@ class Sketchup::DefinitionList < Entity
|
|
|
120
120
|
# number = definitions.count
|
|
121
121
|
#
|
|
122
122
|
# @note Since SketchUp 2014 the count method is inherited from Ruby's
|
|
123
|
-
# +
|
|
123
|
+
# +Enumerable+ mix-in module. Prior to that the {#count} method is an alias
|
|
124
124
|
# for {#length}.
|
|
125
125
|
#
|
|
126
126
|
# @return [Integer]
|
|
@@ -155,7 +155,8 @@ class Sketchup::DefinitionList < Entity
|
|
|
155
155
|
|
|
156
156
|
# The {#import} method is used to import a (non-SketchUp) 3d model file as a definition.
|
|
157
157
|
#
|
|
158
|
-
# Importers using the C API +SketchUpModelImporterInterface+ interface are supported (those in the
|
|
158
|
+
# Importers using the C API +SketchUpModelImporterInterface+ interface are supported (those in the
|
|
159
|
+
# +Importers/+ directory).
|
|
159
160
|
#
|
|
160
161
|
# See the {file:pages/importer_options.md Importer Options} file for information
|
|
161
162
|
# on creating a valid hash for the various importers.
|
|
@@ -258,8 +259,8 @@ class Sketchup::DefinitionList < Entity
|
|
|
258
259
|
# - +onFailure(message_string)+
|
|
259
260
|
#
|
|
260
261
|
# @bug Calling this method from an {UI::HtmlDialog}'s action callback on macOS will cause the
|
|
261
|
-
# SketchUp application to become unresponsive. To work around this, defer the call
|
|
262
|
-
# action callback with a non-repeating zero-delay timer;
|
|
262
|
+
# SketchUp application to become unresponsive or crash. To work around this, defer the call
|
|
263
|
+
# from the action callback with a non-repeating zero-delay timer;
|
|
263
264
|
# +UI.start_timer(0, false) { method_calling_load_from_url }+
|
|
264
265
|
#
|
|
265
266
|
# @example Download a component using a LoadHandler
|