scriptup 2024.0.5 → 2024.0.6
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/ext/attribute_dictionaries.c +1 -1
- data/ext/color.c +3 -3
- data/ext/component_definition.c +2 -2
- data/ext/definition_list.c +1 -1
- data/ext/entity.c +4 -3
- data/ext/material.c +4 -7
- data/ext/utils.h +4 -4
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
- data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +117 -0
- data/sketchup-sdk-win/headers/LayOutAPI/common.h +22 -0
- data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +78 -0
- data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +36 -0
- data/sketchup-sdk-win/headers/LayOutAPI/layout.h +49 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +468 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +569 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +79 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +107 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +42 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +120 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +864 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +59 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +78 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +330 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +49 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +114 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +397 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +251 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +243 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +146 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +109 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +332 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +207 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +117 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +69 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +456 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +261 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +372 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +81 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +464 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +240 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +120 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +624 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/skpfilereference.h +94 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +1080 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +470 -0
- data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +156 -0
- metadata +50 -2
@@ -0,0 +1,94 @@
|
|
1
|
+
// Copyright 2017 Trimble Inc., All rights reserved.
|
2
|
+
|
3
|
+
#ifndef LAYOUT_MODEL_SKPFILEREFERENCE_H_
|
4
|
+
#define LAYOUT_MODEL_SKPFILEREFERENCE_H_
|
5
|
+
|
6
|
+
#include <LayOutAPI/common.h>
|
7
|
+
#include <LayOutAPI/geometry/geometry.h>
|
8
|
+
#include <LayOutAPI/model/defs.h>
|
9
|
+
#include <SketchUpAPI/model/defs.h>
|
10
|
+
|
11
|
+
/**
|
12
|
+
@struct LOSkpFileRef
|
13
|
+
@since LayOut 2018, API 3.0
|
14
|
+
@brief References a SketchUp file reference object.
|
15
|
+
*/
|
16
|
+
DEFINE_SU_TYPE(LOSkpFileRef)
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
extern "C" {
|
20
|
+
#endif // __cplusplus
|
21
|
+
|
22
|
+
/**
|
23
|
+
@brief Creates a SketchUp file reference object with a Skp model.
|
24
|
+
This function takes ownership of the given model. Upon success, user
|
25
|
+
should not release the model, or create another LOSkpFileRef with
|
26
|
+
the same model. The model is valid and mutable till the LOSkpFileRef is
|
27
|
+
released.
|
28
|
+
Do not use a model obtained by a 'Get' function such as the
|
29
|
+
\ref LOSketchUpModelGetModel() as the ownership cannot be transfered
|
30
|
+
to the file_ref.
|
31
|
+
@since LayOut 2018, API 3.0
|
32
|
+
@param[out] file_ref The file reference object to be created.
|
33
|
+
@param[in] model The SketchUp model.
|
34
|
+
@return
|
35
|
+
- \ref SU_ERROR_NONE on success
|
36
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if file_ref is NULL
|
37
|
+
- \ref SU_ERROR_OVERWRITE_VALID if *file_ref refers to a valid object
|
38
|
+
- \ref SU_ERROR_INVALID_INPUT if model does not refer to a valid object
|
39
|
+
*/
|
40
|
+
LO_RESULT LOSkpFileReferenceCreate(LOSkpFileRef* file_ref, SUModelRef model);
|
41
|
+
|
42
|
+
/**
|
43
|
+
@brief Releases a SketchUp file reference object.
|
44
|
+
@since LayOut 2018, API 3.0
|
45
|
+
@param[in] file_ref The SketchUp file reference object.
|
46
|
+
@return
|
47
|
+
- \ref SU_ERROR_NONE on success
|
48
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if file_ref is NULL
|
49
|
+
- \ref SU_ERROR_INVALID_INPUT if *file_ref does not refer to a valid object
|
50
|
+
*/
|
51
|
+
LO_RESULT LOSkpFileReferenceRelease(LOSkpFileRef* file_ref);
|
52
|
+
|
53
|
+
/**
|
54
|
+
@brief Creates a new SketchUp model object with the specified bounds and
|
55
|
+
file reference.
|
56
|
+
This function increases reference count on the given file reference.
|
57
|
+
@since LayOut 2018, API 3.0
|
58
|
+
@param[out] model The model entity to be created.
|
59
|
+
@param[in] file_ref The SketchUp file reference object.
|
60
|
+
@param[in] bounds The starting dimensions of the model entity.
|
61
|
+
@return
|
62
|
+
- \ref SU_ERROR_NONE on success
|
63
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if model is NULL
|
64
|
+
- \ref SU_ERROR_OVERWRITE_VALID if *model already refers to a valid object
|
65
|
+
- \ref SU_ERROR_INVALID_INPUT if file_ref is invalid
|
66
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if bounds is NULL
|
67
|
+
- \ref SU_ERROR_OUT_OF_RANGE if bounds has a width or height of zero
|
68
|
+
*/
|
69
|
+
LO_RESULT LOSketchUpModelCreateWithSkpFileRef(
|
70
|
+
LOSketchUpModelRef* model, LOSkpFileRef file_ref, const LOAxisAlignedRect2D* bounds);
|
71
|
+
|
72
|
+
/**
|
73
|
+
@brief Applies a clip mask to all entities inside a group. Entities outside
|
74
|
+
the clip mask will be removed from the document. Entities that cross
|
75
|
+
the clip mask boundary will be removed but may be replaced by new
|
76
|
+
entities. The clip_mask entity must be a \ref LORectangleRef,
|
77
|
+
\ref LOEllipseRef, or \ref LOPathRef.
|
78
|
+
@since LayOut 2018, API 3.0
|
79
|
+
@param[in] group The group to apply the clipmask to.
|
80
|
+
@param[in] clip_mask The entity to use as a clip mask.
|
81
|
+
@return
|
82
|
+
@return
|
83
|
+
- \ref SU_ERROR_NONE on success
|
84
|
+
- \ref SU_ERROR_ENTITY_LOCKED if group is locked
|
85
|
+
- \ref SU_ERROR_LAYER_LOCKED if group contains entities on locked layers
|
86
|
+
- \ref SU_ERROR_GENERIC if clipping algorithm fails
|
87
|
+
*/
|
88
|
+
LO_RESULT LOGroupClipChildren(LOGroupRef group, LOEntityRef clip_mask);
|
89
|
+
|
90
|
+
#ifdef __cplusplus
|
91
|
+
} // end extern "C"
|
92
|
+
#endif // __cplusplus
|
93
|
+
|
94
|
+
#endif // LAYOUT_MODEL_SKPFILEREFERENCE_H_
|