@snaptrude/plugin-core 0.0.0-dev-20260827135706 → 0.0.0-dev-20260827194031
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.
- package/api-manifest.json +26 -3
- package/dist/api/design/family.d.ts +152 -8
- package/dist/api/design/family.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +7 -0
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/index.cjs +23 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/design/family.ts +164 -8
- package/src/api/design/query/index.ts +2 -0
package/api-manifest.json
CHANGED
|
@@ -4769,6 +4769,17 @@
|
|
|
4769
4769
|
"argsType": null,
|
|
4770
4770
|
"resultType": "PluginFamilyBundle | null"
|
|
4771
4771
|
},
|
|
4772
|
+
{
|
|
4773
|
+
"path": "design.family.getParameters",
|
|
4774
|
+
"namespace": "design.family",
|
|
4775
|
+
"summary": "Read a placed component's current parameter values and its sheet.",
|
|
4776
|
+
"examplePrompts": [
|
|
4777
|
+
"What size is that table?",
|
|
4778
|
+
"Show me the parameters on this partition\n\n# Example\n```ts\nconst { values, parameters } = await snaptrude.design.family.getParameters({ component })\n```"
|
|
4779
|
+
],
|
|
4780
|
+
"argsType": "PluginDesignFamilyGetParametersArgs",
|
|
4781
|
+
"resultType": "PluginFamilyInstanceParameters | null"
|
|
4782
|
+
},
|
|
4772
4783
|
{
|
|
4773
4784
|
"path": "design.family.getReference",
|
|
4774
4785
|
"namespace": "design.family",
|
|
@@ -4793,12 +4804,13 @@
|
|
|
4793
4804
|
{
|
|
4794
4805
|
"path": "design.family.place",
|
|
4795
4806
|
"namespace": "design.family",
|
|
4796
|
-
"summary": "
|
|
4807
|
+
"summary": "Put a family into the model — either the prepared draft or any family from {@linkcode PluginDesignFamilyApi.list}.",
|
|
4797
4808
|
"examplePrompts": [
|
|
4798
4809
|
"Place it in the model",
|
|
4799
|
-
"
|
|
4810
|
+
"Put a louvre screen at the origin",
|
|
4811
|
+
"Copy that table two metres to the right\n\n# Example\n```ts\n// positioned — geometry exists when this resolves\nconst { component } = await snaptrude.design.family.place({\nid: \"revit:gypsum-stud-partition~90ad72\",\nposition: { x: 0, y: 0, z: 0 },\nrotation: 90,\n})\nawait snaptrude.design.transform.move([component], { x: 2, y: 0, z: 0 })\n\n// interactive — the user clicks\nawait snaptrude.design.family.place()\n```"
|
|
4800
4812
|
],
|
|
4801
|
-
"argsType":
|
|
4813
|
+
"argsType": "PluginDesignFamilyPlaceArgs",
|
|
4802
4814
|
"resultType": "PluginFamilyPlaceResult"
|
|
4803
4815
|
},
|
|
4804
4816
|
{
|
|
@@ -4813,6 +4825,17 @@
|
|
|
4813
4825
|
"argsType": "PluginDesignFamilyPrepareArgs",
|
|
4814
4826
|
"resultType": "PluginFamilyPrepareResult"
|
|
4815
4827
|
},
|
|
4828
|
+
{
|
|
4829
|
+
"path": "design.family.setParameters",
|
|
4830
|
+
"namespace": "design.family",
|
|
4831
|
+
"summary": "Change a placed component's parameters and rebuild its geometry in place.",
|
|
4832
|
+
"examplePrompts": [
|
|
4833
|
+
"Make that table seat 8",
|
|
4834
|
+
"Change the stud spacing to 400\n\n# Example\n```ts\nawait snaptrude.design.family.setParameters({ component, values: { seats: 8 } })\n```"
|
|
4835
|
+
],
|
|
4836
|
+
"argsType": "PluginDesignFamilySetParametersArgs",
|
|
4837
|
+
"resultType": "PluginFamilyInstanceParameters"
|
|
4838
|
+
},
|
|
4816
4839
|
{
|
|
4817
4840
|
"path": "design.furniture.exists",
|
|
4818
4841
|
"namespace": "design.furniture",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../types";
|
|
3
|
+
import { ComponentHandle } from "../../handles";
|
|
3
4
|
/**
|
|
4
5
|
* `snaptrude.design.family.*` — author NATIVE parametric families from a JSON spec.
|
|
5
6
|
*
|
|
@@ -131,23 +132,88 @@ export declare abstract class PluginDesignFamilyApi {
|
|
|
131
132
|
*/
|
|
132
133
|
abstract list(): PluginApiReturn<PluginFamilySummary[]>;
|
|
133
134
|
/**
|
|
134
|
-
*
|
|
135
|
+
* Put a family into the model — either the prepared draft or any family from
|
|
136
|
+
* {@linkcode PluginDesignFamilyApi.list}.
|
|
135
137
|
*
|
|
136
|
-
*
|
|
137
|
-
* with a ghost on the cursor; the user clicks in the canvas to drop it, the
|
|
138
|
-
* same as for any other family. Tell the user to click.
|
|
138
|
+
* Two modes, chosen by whether you pass `position`:
|
|
139
139
|
*
|
|
140
|
-
*
|
|
140
|
+
* **With `position`** the component is created there and then, undoably. Use
|
|
141
|
+
* this when you know where it goes — you were given coordinates, or you are
|
|
142
|
+
* copying an existing instance. The returned `component` handle works with
|
|
143
|
+
* `design.transform.move` / `.rotate` and with
|
|
144
|
+
* {@linkcode PluginDesignFamilyApi.setParameters}.
|
|
145
|
+
*
|
|
146
|
+
* **Without `position`** it arms placement mode with a ghost on the cursor
|
|
147
|
+
* and returns immediately — no geometry yet. The USER clicks to drop it, so
|
|
148
|
+
* tell them to. Prefer this when the location is a judgement call.
|
|
149
|
+
*
|
|
150
|
+
* To COPY a placed component, place its family again at the new position with
|
|
151
|
+
* the same `values` — there is no separate copy call.
|
|
152
|
+
*
|
|
153
|
+
* @param args Which family, where, and at what parameter values
|
|
154
|
+
* @returns What was placed; `component` is present only in positioned mode
|
|
141
155
|
*
|
|
142
156
|
* @examplePrompt Place it in the model
|
|
143
|
-
* @examplePrompt
|
|
157
|
+
* @examplePrompt Put a louvre screen at the origin
|
|
158
|
+
* @examplePrompt Copy that table two metres to the right
|
|
144
159
|
*
|
|
145
160
|
* # Example
|
|
146
161
|
* ```ts
|
|
162
|
+
* // positioned — geometry exists when this resolves
|
|
163
|
+
* const { component } = await snaptrude.design.family.place({
|
|
164
|
+
* id: "revit:gypsum-stud-partition~90ad72",
|
|
165
|
+
* position: { x: 0, y: 0, z: 0 },
|
|
166
|
+
* rotation: 90,
|
|
167
|
+
* })
|
|
168
|
+
* await snaptrude.design.transform.move([component], { x: 2, y: 0, z: 0 })
|
|
169
|
+
*
|
|
170
|
+
* // interactive — the user clicks
|
|
147
171
|
* await snaptrude.design.family.place()
|
|
148
172
|
* ```
|
|
149
173
|
*/
|
|
150
|
-
abstract place(): PluginApiReturn<PluginFamilyPlaceResult>;
|
|
174
|
+
abstract place(args?: PluginDesignFamilyPlaceArgs): PluginApiReturn<PluginFamilyPlaceResult>;
|
|
175
|
+
/**
|
|
176
|
+
* Read a placed component's current parameter values and its sheet.
|
|
177
|
+
*
|
|
178
|
+
* Use before {@linkcode PluginDesignFamilyApi.setParameters} so you change
|
|
179
|
+
* what is actually there: parameter KEYS are the family's own, not the
|
|
180
|
+
* label the user says, and a Revit-imported family carries parameters that
|
|
181
|
+
* do not drive geometry at all.
|
|
182
|
+
*
|
|
183
|
+
* @param args The component to read
|
|
184
|
+
* @returns Its definition, current values, and the parameter sheet
|
|
185
|
+
*
|
|
186
|
+
* @examplePrompt What size is that table?
|
|
187
|
+
* @examplePrompt Show me the parameters on this partition
|
|
188
|
+
*
|
|
189
|
+
* # Example
|
|
190
|
+
* ```ts
|
|
191
|
+
* const { values, parameters } = await snaptrude.design.family.getParameters({ component })
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
abstract getParameters(args: PluginDesignFamilyGetParametersArgs): PluginApiReturn<PluginFamilyInstanceParameters | null>;
|
|
195
|
+
/**
|
|
196
|
+
* Change a placed component's parameters and rebuild its geometry in place.
|
|
197
|
+
*
|
|
198
|
+
* Partial: pass only what changes. The component keeps its position,
|
|
199
|
+
* rotation and identity — this is an edit, not a replace, and it is undoable.
|
|
200
|
+
*
|
|
201
|
+
* Only parameters with `drivesGeometry` actually move the mesh. Setting one
|
|
202
|
+
* that does not is accepted and stored (it round-trips to Revit) but nothing
|
|
203
|
+
* visible happens — say so rather than claiming a change the user cannot see.
|
|
204
|
+
*
|
|
205
|
+
* @param args The component and the values to change
|
|
206
|
+
* @returns The values now in effect
|
|
207
|
+
*
|
|
208
|
+
* @examplePrompt Make that table seat 8
|
|
209
|
+
* @examplePrompt Change the stud spacing to 400
|
|
210
|
+
*
|
|
211
|
+
* # Example
|
|
212
|
+
* ```ts
|
|
213
|
+
* await snaptrude.design.family.setParameters({ component, values: { seats: 8 } })
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
abstract setParameters(args: PluginDesignFamilySetParametersArgs): PluginApiReturn<PluginFamilyInstanceParameters>;
|
|
151
217
|
/**
|
|
152
218
|
* Commit the prepared bundle to the project's parametric-definition library,
|
|
153
219
|
* so it survives the session and appears in the Families panel.
|
|
@@ -265,7 +331,7 @@ export interface PluginFamilyFlexResult {
|
|
|
265
331
|
takeoff?: Record<string, number | string>;
|
|
266
332
|
error?: string;
|
|
267
333
|
}
|
|
268
|
-
/** One
|
|
334
|
+
/** One family available to place — from the session registry or the catalog. */
|
|
269
335
|
export interface PluginFamilySummary {
|
|
270
336
|
id: string;
|
|
271
337
|
version: number;
|
|
@@ -273,14 +339,43 @@ export interface PluginFamilySummary {
|
|
|
273
339
|
category?: string;
|
|
274
340
|
/** Number of rows on the family's parameter sheet. */
|
|
275
341
|
parameters: number;
|
|
342
|
+
/**
|
|
343
|
+
* Where the family came from, which decides how far you can edit it.
|
|
344
|
+
*
|
|
345
|
+
* `"native"` — authored from a JSON spec through this API. Its recipe is
|
|
346
|
+
* data, so every parameter genuinely re-runs the geometry.
|
|
347
|
+
*
|
|
348
|
+
* `"revit"` — imported from a Revit family. Parameters exist and are
|
|
349
|
+
* editable, but only those the importer could bind to geometry actually
|
|
350
|
+
* change the mesh; the rest are carried for round-tripping. Check
|
|
351
|
+
* `drivesGeometry` on the parameter before promising the user a change.
|
|
352
|
+
*/
|
|
353
|
+
kind: "native" | "revit";
|
|
276
354
|
}
|
|
277
355
|
/** What `place` reports. */
|
|
278
356
|
export interface PluginFamilyPlaceResult {
|
|
279
357
|
ok: boolean;
|
|
280
358
|
familyId?: string;
|
|
281
359
|
version?: number;
|
|
360
|
+
/**
|
|
361
|
+
* The created component — present ONLY when `position` was given. In
|
|
362
|
+
* interactive mode nothing exists yet, so there is nothing to hand back;
|
|
363
|
+
* the user has not clicked.
|
|
364
|
+
*/
|
|
365
|
+
component?: ComponentHandle;
|
|
282
366
|
error?: string;
|
|
283
367
|
}
|
|
368
|
+
/** A placed component's parameter state, from `getParameters` / `setParameters`. */
|
|
369
|
+
export interface PluginFamilyInstanceParameters {
|
|
370
|
+
/** The definition this instance is pinned to. */
|
|
371
|
+
familyId: string;
|
|
372
|
+
version: number;
|
|
373
|
+
label: string;
|
|
374
|
+
/** Current values, keyed by parameter key. */
|
|
375
|
+
values: Record<string, number | string>;
|
|
376
|
+
/** The sheet: what each key means, its bounds, and whether it moves geometry. */
|
|
377
|
+
parameters: PluginFamilyParameter[];
|
|
378
|
+
}
|
|
284
379
|
/** What `create` reports. */
|
|
285
380
|
export interface PluginFamilyCreateResult {
|
|
286
381
|
ok: boolean;
|
|
@@ -346,4 +441,53 @@ export declare const PluginDesignFamilyCreateArgs: z.ZodObject<{
|
|
|
346
441
|
teamId: z.ZodOptional<z.ZodString>;
|
|
347
442
|
}, z.core.$strip>;
|
|
348
443
|
export type PluginDesignFamilyCreateArgs = z.infer<typeof PluginDesignFamilyCreateArgs>;
|
|
444
|
+
/**
|
|
445
|
+
* Arguments for {@linkcode PluginDesignFamilyApi.place}.
|
|
446
|
+
*
|
|
447
|
+
* | Property | Type | Description |
|
|
448
|
+
* |---|---|---|
|
|
449
|
+
* | `id` | `string` | Family to place, from {@linkcode PluginDesignFamilyApi.list}. Omit to place the prepared draft |
|
|
450
|
+
* | `version` | `number` | Exact version; defaults to the newest known |
|
|
451
|
+
* | `position` | `{ x, y, z }` | Place HERE, without user interaction. Omit to arm the cursor instead |
|
|
452
|
+
* | `rotation` | `number` | Yaw in degrees about +Y. Only with `position` |
|
|
453
|
+
* | `values` | `Record<string, number \| string>` | Parameter values for THIS instance |
|
|
454
|
+
* | `storey` | `number` | Storey to place on; defaults to the active one |
|
|
455
|
+
*/
|
|
456
|
+
export declare const PluginDesignFamilyPlaceArgs: z.ZodObject<{
|
|
457
|
+
id: z.ZodOptional<z.ZodString>;
|
|
458
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
x: z.ZodNumber;
|
|
461
|
+
y: z.ZodNumber;
|
|
462
|
+
z: z.ZodNumber;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
465
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
466
|
+
storey: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
export type PluginDesignFamilyPlaceArgs = z.infer<typeof PluginDesignFamilyPlaceArgs>;
|
|
469
|
+
/**
|
|
470
|
+
* Arguments for {@linkcode PluginDesignFamilyApi.getParameters}.
|
|
471
|
+
*
|
|
472
|
+
* | Property | Type | Description |
|
|
473
|
+
* |---|---|---|
|
|
474
|
+
* | `component` | {@linkcode ComponentHandle} | A placed parametric component |
|
|
475
|
+
*/
|
|
476
|
+
export declare const PluginDesignFamilyGetParametersArgs: z.ZodObject<{
|
|
477
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
export type PluginDesignFamilyGetParametersArgs = z.infer<typeof PluginDesignFamilyGetParametersArgs>;
|
|
480
|
+
/**
|
|
481
|
+
* Arguments for {@linkcode PluginDesignFamilyApi.setParameters}.
|
|
482
|
+
*
|
|
483
|
+
* | Property | Type | Description |
|
|
484
|
+
* |---|---|---|
|
|
485
|
+
* | `component` | {@linkcode ComponentHandle} | A placed parametric component |
|
|
486
|
+
* | `values` | `Record<string, number \| string>` | Values to change (partial) |
|
|
487
|
+
*/
|
|
488
|
+
export declare const PluginDesignFamilySetParametersArgs: z.ZodObject<{
|
|
489
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
490
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
export type PluginDesignFamilySetParametersArgs = z.infer<typeof PluginDesignFamilySetParametersArgs>;
|
|
349
493
|
//# sourceMappingURL=family.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"family.d.ts","sourceRoot":"","sources":["../../../src/api/design/family.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"family.d.ts","sourceRoot":"","sources":["../../../src/api/design/family.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAkB,MAAM,eAAe,CAAA;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;OAiBG;aACa,YAAY,IAAI,eAAe,CAAC,qBAAqB,CAAC;IAEtE;;;;;;;;;;;;;;;;;;;;;;OAsBG;aACa,OAAO,CACrB,IAAI,EAAE,6BAA6B,GAClC,eAAe,CAAC,yBAAyB,CAAC;IAE7C;;;;;;;;;;;;;;;;;;;OAmBG;aACa,IAAI,CAClB,IAAI,EAAE,0BAA0B,GAC/B,eAAe,CAAC,sBAAsB,CAAC;IAE1C;;;;;;;;;OASG;aACa,GAAG,IAAI,eAAe,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAEjE;;;;;;;;;;;OAWG;a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AAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC;;;iBAG9C,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA"}
|
|
@@ -29,6 +29,7 @@ import { PluginDesignQueryReferenceLinesApi } from "./referenceLines";
|
|
|
29
29
|
* | `"curtainWall"` | Parametric curtain wall |
|
|
30
30
|
* | `"mullion"` | Curtain-wall mullion |
|
|
31
31
|
* | `"panel"` | Curtain-wall panel |
|
|
32
|
+
* | `"parametricComponent"` | A placed parametric family instance (native or Revit-imported). Its geometry is rebuilt from `design.family` parameters, so read and drive it through `design.family.getParameters` / `setParameters` rather than editing its meshes. |
|
|
32
33
|
*/
|
|
33
34
|
export declare const PluginEntityType: z.ZodEnum<{
|
|
34
35
|
mass: "mass";
|
|
@@ -48,6 +49,7 @@ export declare const PluginEntityType: z.ZodEnum<{
|
|
|
48
49
|
curtainWall: "curtainWall";
|
|
49
50
|
mullion: "mullion";
|
|
50
51
|
panel: "panel";
|
|
52
|
+
parametricComponent: "parametricComponent";
|
|
51
53
|
}>;
|
|
52
54
|
export type PluginEntityType = z.infer<typeof PluginEntityType>;
|
|
53
55
|
/**
|
|
@@ -94,6 +96,7 @@ export declare const PluginEntityFilter: z.ZodObject<{
|
|
|
94
96
|
curtainWall: "curtainWall";
|
|
95
97
|
mullion: "mullion";
|
|
96
98
|
panel: "panel";
|
|
99
|
+
parametricComponent: "parametricComponent";
|
|
97
100
|
}>>>;
|
|
98
101
|
storeys: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
99
102
|
buildingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -173,6 +176,7 @@ export declare const PluginDesignQueryListByTypeArgs: z.ZodObject<{
|
|
|
173
176
|
curtainWall: "curtainWall";
|
|
174
177
|
mullion: "mullion";
|
|
175
178
|
panel: "panel";
|
|
179
|
+
parametricComponent: "parametricComponent";
|
|
176
180
|
}>>>;
|
|
177
181
|
storeys: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
178
182
|
buildingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -245,6 +249,7 @@ export declare const PluginDesignQueryListByTypeArgs: z.ZodObject<{
|
|
|
245
249
|
curtainWall: "curtainWall";
|
|
246
250
|
mullion: "mullion";
|
|
247
251
|
panel: "panel";
|
|
252
|
+
parametricComponent: "parametricComponent";
|
|
248
253
|
}>;
|
|
249
254
|
}, z.core.$strip>;
|
|
250
255
|
export type PluginDesignQueryListByTypeArgs = z.infer<typeof PluginDesignQueryListByTypeArgs>;
|
|
@@ -308,6 +313,7 @@ export declare const PluginEntityProperties: z.ZodObject<{
|
|
|
308
313
|
curtainWall: "curtainWall";
|
|
309
314
|
mullion: "mullion";
|
|
310
315
|
panel: "panel";
|
|
316
|
+
parametricComponent: "parametricComponent";
|
|
311
317
|
}>>;
|
|
312
318
|
label: z.ZodOptional<z.ZodString>;
|
|
313
319
|
storey: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1226,6 +1232,7 @@ export declare const PluginStoreyOutlineOptions: z.ZodObject<{
|
|
|
1226
1232
|
curtainWall: "curtainWall";
|
|
1227
1233
|
mullion: "mullion";
|
|
1228
1234
|
panel: "panel";
|
|
1235
|
+
parametricComponent: "parametricComponent";
|
|
1229
1236
|
}>>>;
|
|
1230
1237
|
minArea: z.ZodDefault<z.ZodNumber>;
|
|
1231
1238
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAQlE,OAAO,EAAE,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CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAUhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -382,7 +382,10 @@ __export(index_exports, {
|
|
|
382
382
|
PluginDesignFamilyApi: () => PluginDesignFamilyApi,
|
|
383
383
|
PluginDesignFamilyCreateArgs: () => PluginDesignFamilyCreateArgs,
|
|
384
384
|
PluginDesignFamilyFlexArgs: () => PluginDesignFamilyFlexArgs,
|
|
385
|
+
PluginDesignFamilyGetParametersArgs: () => PluginDesignFamilyGetParametersArgs,
|
|
386
|
+
PluginDesignFamilyPlaceArgs: () => PluginDesignFamilyPlaceArgs,
|
|
385
387
|
PluginDesignFamilyPrepareArgs: () => PluginDesignFamilyPrepareArgs,
|
|
388
|
+
PluginDesignFamilySetParametersArgs: () => PluginDesignFamilySetParametersArgs,
|
|
386
389
|
PluginDesignFurnitureApi: () => PluginDesignFurnitureApi,
|
|
387
390
|
PluginDesignFurnitureExistsArgs: () => PluginDesignFurnitureExistsArgs,
|
|
388
391
|
PluginDesignFurnitureGetCatalogItemArgs: () => PluginDesignFurnitureGetCatalogItemArgs,
|
|
@@ -3408,7 +3411,8 @@ var PluginEntityType = z42.enum([
|
|
|
3408
3411
|
"referenceLine",
|
|
3409
3412
|
"curtainWall",
|
|
3410
3413
|
"mullion",
|
|
3411
|
-
"panel"
|
|
3414
|
+
"panel",
|
|
3415
|
+
"parametricComponent"
|
|
3412
3416
|
]);
|
|
3413
3417
|
var PluginEntityFilter = z42.object({
|
|
3414
3418
|
types: z42.array(PluginEntityType).optional(),
|
|
@@ -4043,6 +4047,21 @@ var PluginDesignFamilyCreateArgs = z58.object({
|
|
|
4043
4047
|
name: z58.string().optional(),
|
|
4044
4048
|
teamId: z58.string().optional()
|
|
4045
4049
|
});
|
|
4050
|
+
var PluginDesignFamilyPlaceArgs = z58.object({
|
|
4051
|
+
id: z58.string().optional(),
|
|
4052
|
+
version: z58.number().int().positive().optional(),
|
|
4053
|
+
position: Vec3Components.optional(),
|
|
4054
|
+
rotation: z58.number().optional(),
|
|
4055
|
+
values: z58.record(z58.string(), z58.union([z58.number(), z58.string()])).optional(),
|
|
4056
|
+
storey: z58.number().int().optional()
|
|
4057
|
+
});
|
|
4058
|
+
var PluginDesignFamilyGetParametersArgs = z58.object({
|
|
4059
|
+
component: ComponentHandle
|
|
4060
|
+
});
|
|
4061
|
+
var PluginDesignFamilySetParametersArgs = z58.object({
|
|
4062
|
+
component: ComponentHandle,
|
|
4063
|
+
values: z58.record(z58.string(), z58.union([z58.number(), z58.string()]))
|
|
4064
|
+
});
|
|
4046
4065
|
|
|
4047
4066
|
// src/api/design/index.ts
|
|
4048
4067
|
var PluginDesignApi = class {
|
|
@@ -7014,7 +7033,10 @@ function makeClientEnvelope(code, message, extra) {
|
|
|
7014
7033
|
PluginDesignFamilyApi,
|
|
7015
7034
|
PluginDesignFamilyCreateArgs,
|
|
7016
7035
|
PluginDesignFamilyFlexArgs,
|
|
7036
|
+
PluginDesignFamilyGetParametersArgs,
|
|
7037
|
+
PluginDesignFamilyPlaceArgs,
|
|
7017
7038
|
PluginDesignFamilyPrepareArgs,
|
|
7039
|
+
PluginDesignFamilySetParametersArgs,
|
|
7018
7040
|
PluginDesignFurnitureApi,
|
|
7019
7041
|
PluginDesignFurnitureExistsArgs,
|
|
7020
7042
|
PluginDesignFurnitureGetCatalogItemArgs,
|