solidworks-mcp-server 2.0.1 → 2.2.0
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/CHANGELOG.md +64 -0
- package/README.md +75 -8
- package/dist/db/connection.d.ts.map +1 -1
- package/dist/db/connection.js.map +1 -1
- package/dist/knowledge/chromadb.js +1 -1
- package/dist/knowledge/chromadb.js.map +1 -1
- package/dist/resources/design-table.d.ts +16 -16
- package/dist/resources/design-table.d.ts.map +1 -1
- package/dist/resources/design-table.js +2 -2
- package/dist/resources/design-table.js.map +1 -1
- package/dist/resources/pdm.d.ts +43 -43
- package/dist/resources/pdm.d.ts.map +1 -1
- package/dist/resources/pdm.js +8 -8
- package/dist/resources/pdm.js.map +1 -1
- package/dist/solidworks/api.d.ts +15 -14
- package/dist/solidworks/api.d.ts.map +1 -1
- package/dist/solidworks/api.js +343 -71
- package/dist/solidworks/api.js.map +1 -1
- package/dist/tools/analysis.d.ts +4 -4
- package/dist/tools/analysis.d.ts.map +1 -1
- package/dist/tools/analysis.js +10 -15
- package/dist/tools/analysis.js.map +1 -1
- package/dist/tools/drawing.d.ts +5 -5
- package/dist/tools/drawing.d.ts.map +1 -1
- package/dist/tools/drawing.js +5 -5
- package/dist/tools/drawing.js.map +1 -1
- package/dist/tools/export.d.ts +4 -4
- package/dist/tools/export.d.ts.map +1 -1
- package/dist/tools/export.js +8 -8
- package/dist/tools/export.js.map +1 -1
- package/dist/tools/modeling.d.ts +1 -1
- package/dist/tools/modeling.d.ts.map +1 -1
- package/dist/tools/modeling.js +71 -15
- package/dist/tools/modeling.js.map +1 -1
- package/dist/tools/vba-advanced.d.ts +228 -0
- package/dist/tools/vba-advanced.d.ts.map +1 -0
- package/dist/tools/vba-advanced.js +787 -0
- package/dist/tools/vba-advanced.js.map +1 -0
- package/dist/tools/vba-assembly.d.ts +143 -0
- package/dist/tools/vba-assembly.d.ts.map +1 -0
- package/dist/tools/vba-assembly.js +588 -0
- package/dist/tools/vba-assembly.js.map +1 -0
- package/dist/tools/vba-drawing.d.ts +350 -0
- package/dist/tools/vba-drawing.d.ts.map +1 -0
- package/dist/tools/vba-drawing.js +695 -0
- package/dist/tools/vba-drawing.js.map +1 -0
- package/dist/tools/vba-file-management.d.ts +156 -0
- package/dist/tools/vba-file-management.d.ts.map +1 -0
- package/dist/tools/vba-file-management.js +655 -0
- package/dist/tools/vba-file-management.js.map +1 -0
- package/dist/tools/vba-part.d.ts +187 -0
- package/dist/tools/vba-part.d.ts.map +1 -0
- package/dist/tools/vba-part.js +516 -0
- package/dist/tools/vba-part.js.map +1 -0
- package/dist/tools/vba.d.ts +1037 -9
- package/dist/tools/vba.d.ts.map +1 -1
- package/dist/tools/vba.js +94 -26
- package/dist/tools/vba.js.map +1 -1
- package/dist/utils/logger.js +2 -2
- package/dist/utils/logger.js.map +1 -1
- package/package.json +6 -3
- package/scripts/setup.js +71 -0
package/dist/tools/vba.d.ts
CHANGED
|
@@ -1,6 +1,1034 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { SolidWorksAPI } from '../solidworks/api.js';
|
|
3
3
|
export declare const vbaTools: ({
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
geometryType: z.ZodEnum<["plane", "axis", "point", "coordinate_system"]>;
|
|
8
|
+
referenceType: z.ZodEnum<["offset", "angle", "parallel", "perpendicular", "midplane", "3points"]>;
|
|
9
|
+
references: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
flipDirection: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
geometryType: "plane" | "axis" | "point" | "coordinate_system";
|
|
15
|
+
referenceType: "offset" | "angle" | "parallel" | "perpendicular" | "midplane" | "3points";
|
|
16
|
+
references: string[];
|
|
17
|
+
offset?: number | undefined;
|
|
18
|
+
angle?: number | undefined;
|
|
19
|
+
flipDirection?: boolean | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
geometryType: "plane" | "axis" | "point" | "coordinate_system";
|
|
22
|
+
referenceType: "offset" | "angle" | "parallel" | "perpendicular" | "midplane" | "3points";
|
|
23
|
+
references: string[];
|
|
24
|
+
offset?: number | undefined;
|
|
25
|
+
angle?: number | undefined;
|
|
26
|
+
flipDirection?: boolean | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
handler: (args: any, swApi: SolidWorksAPI) => string;
|
|
29
|
+
} | {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
inputSchema: z.ZodObject<{
|
|
33
|
+
featureType: z.ZodEnum<["sweep", "loft", "boundary", "wrap", "flex", "deform"]>;
|
|
34
|
+
profiles: z.ZodArray<z.ZodString, "many">;
|
|
35
|
+
guideCurves: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
|
+
path: z.ZodOptional<z.ZodString>;
|
|
37
|
+
twistAngle: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
thinFeature: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
thickness: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
featureType: "sweep" | "loft" | "boundary" | "wrap" | "flex" | "deform";
|
|
42
|
+
profiles: string[];
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
guideCurves?: string[] | undefined;
|
|
45
|
+
twistAngle?: number | undefined;
|
|
46
|
+
thinFeature?: boolean | undefined;
|
|
47
|
+
thickness?: number | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
featureType: "sweep" | "loft" | "boundary" | "wrap" | "flex" | "deform";
|
|
50
|
+
profiles: string[];
|
|
51
|
+
path?: string | undefined;
|
|
52
|
+
guideCurves?: string[] | undefined;
|
|
53
|
+
twistAngle?: number | undefined;
|
|
54
|
+
thinFeature?: boolean | undefined;
|
|
55
|
+
thickness?: number | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
handler: (args: any) => string;
|
|
58
|
+
} | {
|
|
59
|
+
name: string;
|
|
60
|
+
description: string;
|
|
61
|
+
inputSchema: z.ZodObject<{
|
|
62
|
+
patternType: z.ZodEnum<["linear", "circular", "curve", "fill", "variable"]>;
|
|
63
|
+
featureNames: z.ZodArray<z.ZodString, "many">;
|
|
64
|
+
direction1: z.ZodObject<{
|
|
65
|
+
spacing: z.ZodNumber;
|
|
66
|
+
instances: z.ZodNumber;
|
|
67
|
+
reverseDirection: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
spacing: number;
|
|
70
|
+
instances: number;
|
|
71
|
+
reverseDirection?: boolean | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
spacing: number;
|
|
74
|
+
instances: number;
|
|
75
|
+
reverseDirection?: boolean | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
direction2: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
spacing: z.ZodNumber;
|
|
79
|
+
instances: z.ZodNumber;
|
|
80
|
+
reverseDirection: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
spacing: number;
|
|
83
|
+
instances: number;
|
|
84
|
+
reverseDirection?: boolean | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
spacing: number;
|
|
87
|
+
instances: number;
|
|
88
|
+
reverseDirection?: boolean | undefined;
|
|
89
|
+
}>>;
|
|
90
|
+
axis: z.ZodOptional<z.ZodString>;
|
|
91
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
seedPoint: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
patternType: "fill" | "variable" | "linear" | "circular" | "curve";
|
|
95
|
+
featureNames: string[];
|
|
96
|
+
direction1: {
|
|
97
|
+
spacing: number;
|
|
98
|
+
instances: number;
|
|
99
|
+
reverseDirection?: boolean | undefined;
|
|
100
|
+
};
|
|
101
|
+
axis?: string | undefined;
|
|
102
|
+
angle?: number | undefined;
|
|
103
|
+
direction2?: {
|
|
104
|
+
spacing: number;
|
|
105
|
+
instances: number;
|
|
106
|
+
reverseDirection?: boolean | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
seedPoint?: number[] | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
patternType: "fill" | "variable" | "linear" | "circular" | "curve";
|
|
111
|
+
featureNames: string[];
|
|
112
|
+
direction1: {
|
|
113
|
+
spacing: number;
|
|
114
|
+
instances: number;
|
|
115
|
+
reverseDirection?: boolean | undefined;
|
|
116
|
+
};
|
|
117
|
+
axis?: string | undefined;
|
|
118
|
+
angle?: number | undefined;
|
|
119
|
+
direction2?: {
|
|
120
|
+
spacing: number;
|
|
121
|
+
instances: number;
|
|
122
|
+
reverseDirection?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
seedPoint?: number[] | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
handler: (args: any) => string;
|
|
127
|
+
} | {
|
|
128
|
+
name: string;
|
|
129
|
+
description: string;
|
|
130
|
+
inputSchema: z.ZodObject<{
|
|
131
|
+
operation: z.ZodEnum<["base_flange", "edge_flange", "miter_flange", "hem", "jog", "fold", "unfold"]>;
|
|
132
|
+
thickness: z.ZodNumber;
|
|
133
|
+
bendRadius: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
bendAngle: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
kFactor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
136
|
+
reliefType: z.ZodOptional<z.ZodEnum<["rectangular", "obround", "tear"]>>;
|
|
137
|
+
reliefRatio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
thickness: number;
|
|
140
|
+
operation: "base_flange" | "edge_flange" | "miter_flange" | "hem" | "jog" | "fold" | "unfold";
|
|
141
|
+
kFactor: number;
|
|
142
|
+
reliefRatio: number;
|
|
143
|
+
bendRadius?: number | undefined;
|
|
144
|
+
bendAngle?: number | undefined;
|
|
145
|
+
reliefType?: "rectangular" | "obround" | "tear" | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
thickness: number;
|
|
148
|
+
operation: "base_flange" | "edge_flange" | "miter_flange" | "hem" | "jog" | "fold" | "unfold";
|
|
149
|
+
bendRadius?: number | undefined;
|
|
150
|
+
bendAngle?: number | undefined;
|
|
151
|
+
kFactor?: number | undefined;
|
|
152
|
+
reliefType?: "rectangular" | "obround" | "tear" | undefined;
|
|
153
|
+
reliefRatio?: number | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
handler: (args: any) => string;
|
|
156
|
+
} | {
|
|
157
|
+
name: string;
|
|
158
|
+
description: string;
|
|
159
|
+
inputSchema: z.ZodObject<{
|
|
160
|
+
surfaceType: z.ZodEnum<["extrude", "revolve", "sweep", "loft", "boundary", "offset", "thicken", "knit"]>;
|
|
161
|
+
sketches: z.ZodArray<z.ZodString, "many">;
|
|
162
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
offsetDistance: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
thickenDepth: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
surfaceType: "extrude" | "offset" | "sweep" | "loft" | "boundary" | "revolve" | "thicken" | "knit";
|
|
168
|
+
sketches: string[];
|
|
169
|
+
angle?: number | undefined;
|
|
170
|
+
distance?: number | undefined;
|
|
171
|
+
offsetDistance?: number | undefined;
|
|
172
|
+
thickenDepth?: number | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
surfaceType: "extrude" | "offset" | "sweep" | "loft" | "boundary" | "revolve" | "thicken" | "knit";
|
|
175
|
+
sketches: string[];
|
|
176
|
+
angle?: number | undefined;
|
|
177
|
+
distance?: number | undefined;
|
|
178
|
+
offsetDistance?: number | undefined;
|
|
179
|
+
thickenDepth?: number | undefined;
|
|
180
|
+
}>;
|
|
181
|
+
handler: (args: any) => string;
|
|
182
|
+
} | {
|
|
183
|
+
name: string;
|
|
184
|
+
description: string;
|
|
185
|
+
inputSchema: z.ZodObject<{
|
|
186
|
+
mateType: z.ZodEnum<["coincident", "parallel", "perpendicular", "tangent", "concentric", "distance", "angle", "symmetric", "width", "path", "linear_coupler", "cam", "gear", "rack_pinion", "screw", "universal_joint"]>;
|
|
187
|
+
component1: z.ZodString;
|
|
188
|
+
face1: z.ZodString;
|
|
189
|
+
component2: z.ZodString;
|
|
190
|
+
face2: z.ZodString;
|
|
191
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
flip: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
alignmentType: z.ZodOptional<z.ZodEnum<["aligned", "anti_aligned", "closest"]>>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
mateType: "path" | "width" | "angle" | "parallel" | "perpendicular" | "distance" | "coincident" | "tangent" | "concentric" | "symmetric" | "linear_coupler" | "cam" | "gear" | "rack_pinion" | "screw" | "universal_joint";
|
|
197
|
+
component1: string;
|
|
198
|
+
face1: string;
|
|
199
|
+
component2: string;
|
|
200
|
+
face2: string;
|
|
201
|
+
angle?: number | undefined;
|
|
202
|
+
distance?: number | undefined;
|
|
203
|
+
flip?: boolean | undefined;
|
|
204
|
+
alignmentType?: "aligned" | "anti_aligned" | "closest" | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
mateType: "path" | "width" | "angle" | "parallel" | "perpendicular" | "distance" | "coincident" | "tangent" | "concentric" | "symmetric" | "linear_coupler" | "cam" | "gear" | "rack_pinion" | "screw" | "universal_joint";
|
|
207
|
+
component1: string;
|
|
208
|
+
face1: string;
|
|
209
|
+
component2: string;
|
|
210
|
+
face2: string;
|
|
211
|
+
angle?: number | undefined;
|
|
212
|
+
distance?: number | undefined;
|
|
213
|
+
flip?: boolean | undefined;
|
|
214
|
+
alignmentType?: "aligned" | "anti_aligned" | "closest" | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
handler: (args: any) => string;
|
|
217
|
+
} | {
|
|
218
|
+
name: string;
|
|
219
|
+
description: string;
|
|
220
|
+
inputSchema: z.ZodObject<{
|
|
221
|
+
operation: z.ZodEnum<["insert", "replace", "pattern", "mirror", "explode", "dissolve"]>;
|
|
222
|
+
componentPath: z.ZodOptional<z.ZodString>;
|
|
223
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
224
|
+
configurationName: z.ZodOptional<z.ZodString>;
|
|
225
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
x: z.ZodNumber;
|
|
227
|
+
y: z.ZodNumber;
|
|
228
|
+
z: z.ZodNumber;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
x: number;
|
|
231
|
+
y: number;
|
|
232
|
+
z: number;
|
|
233
|
+
}, {
|
|
234
|
+
x: number;
|
|
235
|
+
y: number;
|
|
236
|
+
z: number;
|
|
237
|
+
}>>;
|
|
238
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
patternType: z.ZodOptional<z.ZodEnum<["linear", "circular"]>>;
|
|
240
|
+
spacing: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
operation: "pattern" | "replace" | "insert" | "mirror" | "explode" | "dissolve";
|
|
243
|
+
position?: {
|
|
244
|
+
x: number;
|
|
245
|
+
y: number;
|
|
246
|
+
z: number;
|
|
247
|
+
} | undefined;
|
|
248
|
+
patternType?: "linear" | "circular" | undefined;
|
|
249
|
+
spacing?: number | undefined;
|
|
250
|
+
componentPath?: string | undefined;
|
|
251
|
+
componentName?: string | undefined;
|
|
252
|
+
configurationName?: string | undefined;
|
|
253
|
+
quantity?: number | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
operation: "pattern" | "replace" | "insert" | "mirror" | "explode" | "dissolve";
|
|
256
|
+
position?: {
|
|
257
|
+
x: number;
|
|
258
|
+
y: number;
|
|
259
|
+
z: number;
|
|
260
|
+
} | undefined;
|
|
261
|
+
patternType?: "linear" | "circular" | undefined;
|
|
262
|
+
spacing?: number | undefined;
|
|
263
|
+
componentPath?: string | undefined;
|
|
264
|
+
componentName?: string | undefined;
|
|
265
|
+
configurationName?: string | undefined;
|
|
266
|
+
quantity?: number | undefined;
|
|
267
|
+
}>;
|
|
268
|
+
handler: (args: any) => string;
|
|
269
|
+
} | {
|
|
270
|
+
name: string;
|
|
271
|
+
description: string;
|
|
272
|
+
inputSchema: z.ZodObject<{
|
|
273
|
+
analysisType: z.ZodEnum<["interference", "clearance", "collision", "mass_properties", "hole_alignment", "assembly_statistics", "bom_export"]>;
|
|
274
|
+
components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
275
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
276
|
+
includeSubassemblies: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
277
|
+
treatCoincidentAsInterference: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
analysisType: "interference" | "clearance" | "collision" | "mass_properties" | "hole_alignment" | "assembly_statistics" | "bom_export";
|
|
280
|
+
includeSubassemblies: boolean;
|
|
281
|
+
treatCoincidentAsInterference: boolean;
|
|
282
|
+
outputPath?: string | undefined;
|
|
283
|
+
components?: string[] | undefined;
|
|
284
|
+
}, {
|
|
285
|
+
analysisType: "interference" | "clearance" | "collision" | "mass_properties" | "hole_alignment" | "assembly_statistics" | "bom_export";
|
|
286
|
+
outputPath?: string | undefined;
|
|
287
|
+
components?: string[] | undefined;
|
|
288
|
+
includeSubassemblies?: boolean | undefined;
|
|
289
|
+
treatCoincidentAsInterference?: boolean | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
handler: (args: any) => string;
|
|
292
|
+
} | {
|
|
293
|
+
name: string;
|
|
294
|
+
description: string;
|
|
295
|
+
inputSchema: z.ZodObject<{
|
|
296
|
+
operation: z.ZodEnum<["create", "modify", "suppress", "delete", "copy"]>;
|
|
297
|
+
configName: z.ZodString;
|
|
298
|
+
parentConfig: z.ZodOptional<z.ZodString>;
|
|
299
|
+
componentsToSuppress: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
300
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
301
|
+
displayStates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
operation: "delete" | "create" | "modify" | "suppress" | "copy";
|
|
304
|
+
configName: string;
|
|
305
|
+
properties?: Record<string, string> | undefined;
|
|
306
|
+
parentConfig?: string | undefined;
|
|
307
|
+
componentsToSuppress?: string[] | undefined;
|
|
308
|
+
displayStates?: string[] | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
operation: "delete" | "create" | "modify" | "suppress" | "copy";
|
|
311
|
+
configName: string;
|
|
312
|
+
properties?: Record<string, string> | undefined;
|
|
313
|
+
parentConfig?: string | undefined;
|
|
314
|
+
componentsToSuppress?: string[] | undefined;
|
|
315
|
+
displayStates?: string[] | undefined;
|
|
316
|
+
}>;
|
|
317
|
+
handler: (args: any) => string;
|
|
318
|
+
} | {
|
|
319
|
+
name: string;
|
|
320
|
+
description: string;
|
|
321
|
+
inputSchema: z.ZodObject<{
|
|
322
|
+
viewType: z.ZodEnum<["standard", "projected", "auxiliary", "section", "detail", "broken", "break_out_section", "isometric", "named"]>;
|
|
323
|
+
modelPath: z.ZodString;
|
|
324
|
+
viewOrientation: z.ZodOptional<z.ZodEnum<["front", "back", "left", "right", "top", "bottom", "isometric", "dimetric", "trimetric", "current"]>>;
|
|
325
|
+
position: z.ZodObject<{
|
|
326
|
+
x: z.ZodNumber;
|
|
327
|
+
y: z.ZodNumber;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
x: number;
|
|
330
|
+
y: number;
|
|
331
|
+
}, {
|
|
332
|
+
x: number;
|
|
333
|
+
y: number;
|
|
334
|
+
}>;
|
|
335
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
sectionLine: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
startX: z.ZodNumber;
|
|
338
|
+
startY: z.ZodNumber;
|
|
339
|
+
endX: z.ZodNumber;
|
|
340
|
+
endY: z.ZodNumber;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
startX: number;
|
|
343
|
+
startY: number;
|
|
344
|
+
endX: number;
|
|
345
|
+
endY: number;
|
|
346
|
+
}, {
|
|
347
|
+
startX: number;
|
|
348
|
+
startY: number;
|
|
349
|
+
endX: number;
|
|
350
|
+
endY: number;
|
|
351
|
+
}>>;
|
|
352
|
+
detailCircle: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
centerX: z.ZodNumber;
|
|
354
|
+
centerY: z.ZodNumber;
|
|
355
|
+
radius: z.ZodNumber;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
centerX: number;
|
|
358
|
+
centerY: number;
|
|
359
|
+
radius: number;
|
|
360
|
+
}, {
|
|
361
|
+
centerX: number;
|
|
362
|
+
centerY: number;
|
|
363
|
+
radius: number;
|
|
364
|
+
}>>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
position: {
|
|
367
|
+
x: number;
|
|
368
|
+
y: number;
|
|
369
|
+
};
|
|
370
|
+
viewType: "standard" | "projected" | "auxiliary" | "section" | "detail" | "broken" | "break_out_section" | "isometric" | "named";
|
|
371
|
+
modelPath: string;
|
|
372
|
+
scale?: number | undefined;
|
|
373
|
+
sectionLine?: {
|
|
374
|
+
startX: number;
|
|
375
|
+
startY: number;
|
|
376
|
+
endX: number;
|
|
377
|
+
endY: number;
|
|
378
|
+
} | undefined;
|
|
379
|
+
viewOrientation?: "front" | "top" | "right" | "back" | "bottom" | "left" | "current" | "isometric" | "dimetric" | "trimetric" | undefined;
|
|
380
|
+
detailCircle?: {
|
|
381
|
+
centerX: number;
|
|
382
|
+
centerY: number;
|
|
383
|
+
radius: number;
|
|
384
|
+
} | undefined;
|
|
385
|
+
}, {
|
|
386
|
+
position: {
|
|
387
|
+
x: number;
|
|
388
|
+
y: number;
|
|
389
|
+
};
|
|
390
|
+
viewType: "standard" | "projected" | "auxiliary" | "section" | "detail" | "broken" | "break_out_section" | "isometric" | "named";
|
|
391
|
+
modelPath: string;
|
|
392
|
+
scale?: number | undefined;
|
|
393
|
+
sectionLine?: {
|
|
394
|
+
startX: number;
|
|
395
|
+
startY: number;
|
|
396
|
+
endX: number;
|
|
397
|
+
endY: number;
|
|
398
|
+
} | undefined;
|
|
399
|
+
viewOrientation?: "front" | "top" | "right" | "back" | "bottom" | "left" | "current" | "isometric" | "dimetric" | "trimetric" | undefined;
|
|
400
|
+
detailCircle?: {
|
|
401
|
+
centerX: number;
|
|
402
|
+
centerY: number;
|
|
403
|
+
radius: number;
|
|
404
|
+
} | undefined;
|
|
405
|
+
}>;
|
|
406
|
+
handler: (args: any) => string;
|
|
407
|
+
} | {
|
|
408
|
+
name: string;
|
|
409
|
+
description: string;
|
|
410
|
+
inputSchema: z.ZodObject<{
|
|
411
|
+
dimensionType: z.ZodEnum<["linear", "angular", "radial", "diameter", "ordinate", "chamfer", "arc_length", "coordinate"]>;
|
|
412
|
+
viewName: z.ZodOptional<z.ZodString>;
|
|
413
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
414
|
+
type: z.ZodEnum<["edge", "vertex", "face"]>;
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
type: "edge" | "vertex" | "face";
|
|
418
|
+
name: string;
|
|
419
|
+
}, {
|
|
420
|
+
type: "edge" | "vertex" | "face";
|
|
421
|
+
name: string;
|
|
422
|
+
}>, "many">>;
|
|
423
|
+
position: z.ZodObject<{
|
|
424
|
+
x: z.ZodNumber;
|
|
425
|
+
y: z.ZodNumber;
|
|
426
|
+
}, "strip", z.ZodTypeAny, {
|
|
427
|
+
x: number;
|
|
428
|
+
y: number;
|
|
429
|
+
}, {
|
|
430
|
+
x: number;
|
|
431
|
+
y: number;
|
|
432
|
+
}>;
|
|
433
|
+
tolerance: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
type: z.ZodOptional<z.ZodEnum<["bilateral", "limit", "symmetric", "basic", "min", "max"]>>;
|
|
435
|
+
upper: z.ZodOptional<z.ZodNumber>;
|
|
436
|
+
lower: z.ZodOptional<z.ZodNumber>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
type?: "symmetric" | "bilateral" | "limit" | "basic" | "min" | "max" | undefined;
|
|
439
|
+
upper?: number | undefined;
|
|
440
|
+
lower?: number | undefined;
|
|
441
|
+
}, {
|
|
442
|
+
type?: "symmetric" | "bilateral" | "limit" | "basic" | "min" | "max" | undefined;
|
|
443
|
+
upper?: number | undefined;
|
|
444
|
+
lower?: number | undefined;
|
|
445
|
+
}>>;
|
|
446
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
447
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
position: {
|
|
450
|
+
x: number;
|
|
451
|
+
y: number;
|
|
452
|
+
};
|
|
453
|
+
dimensionType: "linear" | "angular" | "radial" | "diameter" | "ordinate" | "chamfer" | "arc_length" | "coordinate";
|
|
454
|
+
viewName?: string | undefined;
|
|
455
|
+
prefix?: string | undefined;
|
|
456
|
+
entities?: {
|
|
457
|
+
type: "edge" | "vertex" | "face";
|
|
458
|
+
name: string;
|
|
459
|
+
}[] | undefined;
|
|
460
|
+
tolerance?: {
|
|
461
|
+
type?: "symmetric" | "bilateral" | "limit" | "basic" | "min" | "max" | undefined;
|
|
462
|
+
upper?: number | undefined;
|
|
463
|
+
lower?: number | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
suffix?: string | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
position: {
|
|
468
|
+
x: number;
|
|
469
|
+
y: number;
|
|
470
|
+
};
|
|
471
|
+
dimensionType: "linear" | "angular" | "radial" | "diameter" | "ordinate" | "chamfer" | "arc_length" | "coordinate";
|
|
472
|
+
viewName?: string | undefined;
|
|
473
|
+
prefix?: string | undefined;
|
|
474
|
+
entities?: {
|
|
475
|
+
type: "edge" | "vertex" | "face";
|
|
476
|
+
name: string;
|
|
477
|
+
}[] | undefined;
|
|
478
|
+
tolerance?: {
|
|
479
|
+
type?: "symmetric" | "bilateral" | "limit" | "basic" | "min" | "max" | undefined;
|
|
480
|
+
upper?: number | undefined;
|
|
481
|
+
lower?: number | undefined;
|
|
482
|
+
} | undefined;
|
|
483
|
+
suffix?: string | undefined;
|
|
484
|
+
}>;
|
|
485
|
+
handler: (args: any) => string;
|
|
486
|
+
} | {
|
|
487
|
+
name: string;
|
|
488
|
+
description: string;
|
|
489
|
+
inputSchema: z.ZodObject<{
|
|
490
|
+
annotationType: z.ZodEnum<["note", "balloon", "datum", "geometric_tolerance", "surface_finish", "weld_symbol", "center_mark", "centerline"]>;
|
|
491
|
+
text: z.ZodOptional<z.ZodString>;
|
|
492
|
+
position: z.ZodObject<{
|
|
493
|
+
x: z.ZodNumber;
|
|
494
|
+
y: z.ZodNumber;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
x: number;
|
|
497
|
+
y: number;
|
|
498
|
+
}, {
|
|
499
|
+
x: number;
|
|
500
|
+
y: number;
|
|
501
|
+
}>;
|
|
502
|
+
leaderPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
503
|
+
x: z.ZodNumber;
|
|
504
|
+
y: z.ZodNumber;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
x: number;
|
|
507
|
+
y: number;
|
|
508
|
+
}, {
|
|
509
|
+
x: number;
|
|
510
|
+
y: number;
|
|
511
|
+
}>, "many">>;
|
|
512
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
513
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
bold?: boolean | undefined;
|
|
519
|
+
fontSize?: number | undefined;
|
|
520
|
+
italic?: boolean | undefined;
|
|
521
|
+
underline?: boolean | undefined;
|
|
522
|
+
}, {
|
|
523
|
+
bold?: boolean | undefined;
|
|
524
|
+
fontSize?: number | undefined;
|
|
525
|
+
italic?: boolean | undefined;
|
|
526
|
+
underline?: boolean | undefined;
|
|
527
|
+
}>>;
|
|
528
|
+
balloonStyle: z.ZodOptional<z.ZodEnum<["circular", "triangle", "hexagon", "box", "diamond"]>>;
|
|
529
|
+
itemNumber: z.ZodOptional<z.ZodNumber>;
|
|
530
|
+
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
position: {
|
|
532
|
+
x: number;
|
|
533
|
+
y: number;
|
|
534
|
+
};
|
|
535
|
+
annotationType: "note" | "balloon" | "datum" | "geometric_tolerance" | "surface_finish" | "weld_symbol" | "center_mark" | "centerline";
|
|
536
|
+
text?: string | undefined;
|
|
537
|
+
leaderPoints?: {
|
|
538
|
+
x: number;
|
|
539
|
+
y: number;
|
|
540
|
+
}[] | undefined;
|
|
541
|
+
style?: {
|
|
542
|
+
bold?: boolean | undefined;
|
|
543
|
+
fontSize?: number | undefined;
|
|
544
|
+
italic?: boolean | undefined;
|
|
545
|
+
underline?: boolean | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
balloonStyle?: "circular" | "triangle" | "hexagon" | "box" | "diamond" | undefined;
|
|
548
|
+
itemNumber?: number | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
position: {
|
|
551
|
+
x: number;
|
|
552
|
+
y: number;
|
|
553
|
+
};
|
|
554
|
+
annotationType: "note" | "balloon" | "datum" | "geometric_tolerance" | "surface_finish" | "weld_symbol" | "center_mark" | "centerline";
|
|
555
|
+
text?: string | undefined;
|
|
556
|
+
leaderPoints?: {
|
|
557
|
+
x: number;
|
|
558
|
+
y: number;
|
|
559
|
+
}[] | undefined;
|
|
560
|
+
style?: {
|
|
561
|
+
bold?: boolean | undefined;
|
|
562
|
+
fontSize?: number | undefined;
|
|
563
|
+
italic?: boolean | undefined;
|
|
564
|
+
underline?: boolean | undefined;
|
|
565
|
+
} | undefined;
|
|
566
|
+
balloonStyle?: "circular" | "triangle" | "hexagon" | "box" | "diamond" | undefined;
|
|
567
|
+
itemNumber?: number | undefined;
|
|
568
|
+
}>;
|
|
569
|
+
handler: (args: any) => string;
|
|
570
|
+
} | {
|
|
571
|
+
name: string;
|
|
572
|
+
description: string;
|
|
573
|
+
inputSchema: z.ZodObject<{
|
|
574
|
+
tableType: z.ZodEnum<["general", "hole", "revision", "bom", "weldment_cutlist"]>;
|
|
575
|
+
position: z.ZodObject<{
|
|
576
|
+
x: z.ZodNumber;
|
|
577
|
+
y: z.ZodNumber;
|
|
578
|
+
}, "strip", z.ZodTypeAny, {
|
|
579
|
+
x: number;
|
|
580
|
+
y: number;
|
|
581
|
+
}, {
|
|
582
|
+
x: number;
|
|
583
|
+
y: number;
|
|
584
|
+
}>;
|
|
585
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
586
|
+
columns: z.ZodOptional<z.ZodNumber>;
|
|
587
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
588
|
+
data: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
589
|
+
template: z.ZodOptional<z.ZodString>;
|
|
590
|
+
anchorType: z.ZodOptional<z.ZodEnum<["top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
position: {
|
|
593
|
+
x: number;
|
|
594
|
+
y: number;
|
|
595
|
+
};
|
|
596
|
+
tableType: "revision" | "general" | "hole" | "bom" | "weldment_cutlist";
|
|
597
|
+
template?: string | undefined;
|
|
598
|
+
rows?: number | undefined;
|
|
599
|
+
columns?: number | undefined;
|
|
600
|
+
headers?: string[] | undefined;
|
|
601
|
+
data?: string[][] | undefined;
|
|
602
|
+
anchorType?: "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
603
|
+
}, {
|
|
604
|
+
position: {
|
|
605
|
+
x: number;
|
|
606
|
+
y: number;
|
|
607
|
+
};
|
|
608
|
+
tableType: "revision" | "general" | "hole" | "bom" | "weldment_cutlist";
|
|
609
|
+
template?: string | undefined;
|
|
610
|
+
rows?: number | undefined;
|
|
611
|
+
columns?: number | undefined;
|
|
612
|
+
headers?: string[] | undefined;
|
|
613
|
+
data?: string[][] | undefined;
|
|
614
|
+
anchorType?: "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
615
|
+
}>;
|
|
616
|
+
handler: (args: any) => string;
|
|
617
|
+
} | {
|
|
618
|
+
name: string;
|
|
619
|
+
description: string;
|
|
620
|
+
inputSchema: z.ZodObject<{
|
|
621
|
+
operation: z.ZodEnum<["create_sheet", "modify_format", "title_block", "border"]>;
|
|
622
|
+
sheetName: z.ZodOptional<z.ZodString>;
|
|
623
|
+
sheetSize: z.ZodOptional<z.ZodEnum<["A4", "A3", "A2", "A1", "A0", "Letter", "Legal", "Tabloid", "Custom"]>>;
|
|
624
|
+
customSize: z.ZodOptional<z.ZodObject<{
|
|
625
|
+
width: z.ZodNumber;
|
|
626
|
+
height: z.ZodNumber;
|
|
627
|
+
}, "strip", z.ZodTypeAny, {
|
|
628
|
+
width: number;
|
|
629
|
+
height: number;
|
|
630
|
+
}, {
|
|
631
|
+
width: number;
|
|
632
|
+
height: number;
|
|
633
|
+
}>>;
|
|
634
|
+
scale: z.ZodOptional<z.ZodString>;
|
|
635
|
+
templatePath: z.ZodOptional<z.ZodString>;
|
|
636
|
+
titleBlockData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
operation: "create_sheet" | "modify_format" | "title_block" | "border";
|
|
639
|
+
scale?: string | undefined;
|
|
640
|
+
sheetName?: string | undefined;
|
|
641
|
+
sheetSize?: "Custom" | "A4" | "A3" | "A2" | "A1" | "A0" | "Letter" | "Tabloid" | "Legal" | undefined;
|
|
642
|
+
customSize?: {
|
|
643
|
+
width: number;
|
|
644
|
+
height: number;
|
|
645
|
+
} | undefined;
|
|
646
|
+
templatePath?: string | undefined;
|
|
647
|
+
titleBlockData?: Record<string, string> | undefined;
|
|
648
|
+
}, {
|
|
649
|
+
operation: "create_sheet" | "modify_format" | "title_block" | "border";
|
|
650
|
+
scale?: string | undefined;
|
|
651
|
+
sheetName?: string | undefined;
|
|
652
|
+
sheetSize?: "Custom" | "A4" | "A3" | "A2" | "A1" | "A0" | "Letter" | "Tabloid" | "Legal" | undefined;
|
|
653
|
+
customSize?: {
|
|
654
|
+
width: number;
|
|
655
|
+
height: number;
|
|
656
|
+
} | undefined;
|
|
657
|
+
templatePath?: string | undefined;
|
|
658
|
+
titleBlockData?: Record<string, string> | undefined;
|
|
659
|
+
}>;
|
|
660
|
+
handler: (args: any) => string;
|
|
661
|
+
} | {
|
|
662
|
+
name: string;
|
|
663
|
+
description: string;
|
|
664
|
+
inputSchema: z.ZodObject<{
|
|
665
|
+
operation: z.ZodEnum<["open_all", "save_all", "export_all", "convert_format", "update_references", "pack_and_go", "rename_files"]>;
|
|
666
|
+
sourcePath: z.ZodString;
|
|
667
|
+
destinationPath: z.ZodOptional<z.ZodString>;
|
|
668
|
+
fileFilter: z.ZodOptional<z.ZodString>;
|
|
669
|
+
exportFormat: z.ZodOptional<z.ZodEnum<["step", "iges", "stl", "pdf", "dwg", "parasolid"]>>;
|
|
670
|
+
includeSubfolders: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
671
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
operation: "open_all" | "save_all" | "export_all" | "convert_format" | "update_references" | "pack_and_go" | "rename_files";
|
|
674
|
+
sourcePath: string;
|
|
675
|
+
includeSubfolders: boolean;
|
|
676
|
+
options?: Record<string, any> | undefined;
|
|
677
|
+
destinationPath?: string | undefined;
|
|
678
|
+
fileFilter?: string | undefined;
|
|
679
|
+
exportFormat?: "step" | "iges" | "stl" | "pdf" | "dwg" | "parasolid" | undefined;
|
|
680
|
+
}, {
|
|
681
|
+
operation: "open_all" | "save_all" | "export_all" | "convert_format" | "update_references" | "pack_and_go" | "rename_files";
|
|
682
|
+
sourcePath: string;
|
|
683
|
+
options?: Record<string, any> | undefined;
|
|
684
|
+
destinationPath?: string | undefined;
|
|
685
|
+
fileFilter?: string | undefined;
|
|
686
|
+
exportFormat?: "step" | "iges" | "stl" | "pdf" | "dwg" | "parasolid" | undefined;
|
|
687
|
+
includeSubfolders?: boolean | undefined;
|
|
688
|
+
}>;
|
|
689
|
+
handler: (args: any) => string;
|
|
690
|
+
} | {
|
|
691
|
+
name: string;
|
|
692
|
+
description: string;
|
|
693
|
+
inputSchema: z.ZodObject<{
|
|
694
|
+
operation: z.ZodEnum<["add", "modify", "delete", "copy", "export", "import"]>;
|
|
695
|
+
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
696
|
+
name: z.ZodString;
|
|
697
|
+
value: z.ZodString;
|
|
698
|
+
type: z.ZodOptional<z.ZodEnum<["text", "date", "number", "yesno"]>>;
|
|
699
|
+
configuration: z.ZodOptional<z.ZodString>;
|
|
700
|
+
}, "strip", z.ZodTypeAny, {
|
|
701
|
+
value: string;
|
|
702
|
+
name: string;
|
|
703
|
+
type?: "number" | "date" | "text" | "yesno" | undefined;
|
|
704
|
+
configuration?: string | undefined;
|
|
705
|
+
}, {
|
|
706
|
+
value: string;
|
|
707
|
+
name: string;
|
|
708
|
+
type?: "number" | "date" | "text" | "yesno" | undefined;
|
|
709
|
+
configuration?: string | undefined;
|
|
710
|
+
}>, "many">>;
|
|
711
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
712
|
+
templatePath: z.ZodOptional<z.ZodString>;
|
|
713
|
+
exportFormat: z.ZodOptional<z.ZodEnum<["excel", "csv", "xml"]>>;
|
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
operation: "delete" | "export" | "modify" | "copy" | "add" | "import";
|
|
716
|
+
properties?: {
|
|
717
|
+
value: string;
|
|
718
|
+
name: string;
|
|
719
|
+
type?: "number" | "date" | "text" | "yesno" | undefined;
|
|
720
|
+
configuration?: string | undefined;
|
|
721
|
+
}[] | undefined;
|
|
722
|
+
templatePath?: string | undefined;
|
|
723
|
+
sourcePath?: string | undefined;
|
|
724
|
+
exportFormat?: "excel" | "csv" | "xml" | undefined;
|
|
725
|
+
}, {
|
|
726
|
+
operation: "delete" | "export" | "modify" | "copy" | "add" | "import";
|
|
727
|
+
properties?: {
|
|
728
|
+
value: string;
|
|
729
|
+
name: string;
|
|
730
|
+
type?: "number" | "date" | "text" | "yesno" | undefined;
|
|
731
|
+
configuration?: string | undefined;
|
|
732
|
+
}[] | undefined;
|
|
733
|
+
templatePath?: string | undefined;
|
|
734
|
+
sourcePath?: string | undefined;
|
|
735
|
+
exportFormat?: "excel" | "csv" | "xml" | undefined;
|
|
736
|
+
}>;
|
|
737
|
+
handler: (args: any) => string;
|
|
738
|
+
} | {
|
|
739
|
+
name: string;
|
|
740
|
+
description: string;
|
|
741
|
+
inputSchema: z.ZodObject<{
|
|
742
|
+
operation: z.ZodEnum<["check_in", "check_out", "get_latest", "add_file", "change_state", "search", "copy_tree"]>;
|
|
743
|
+
vaultName: z.ZodString;
|
|
744
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
745
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
746
|
+
stateName: z.ZodOptional<z.ZodString>;
|
|
747
|
+
searchCriteria: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
748
|
+
includeChildren: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
749
|
+
}, "strip", z.ZodTypeAny, {
|
|
750
|
+
vaultName: string;
|
|
751
|
+
operation: "search" | "check_in" | "check_out" | "get_latest" | "add_file" | "change_state" | "copy_tree";
|
|
752
|
+
includeChildren: boolean;
|
|
753
|
+
filePath?: string | undefined;
|
|
754
|
+
comment?: string | undefined;
|
|
755
|
+
stateName?: string | undefined;
|
|
756
|
+
searchCriteria?: Record<string, string> | undefined;
|
|
757
|
+
}, {
|
|
758
|
+
vaultName: string;
|
|
759
|
+
operation: "search" | "check_in" | "check_out" | "get_latest" | "add_file" | "change_state" | "copy_tree";
|
|
760
|
+
filePath?: string | undefined;
|
|
761
|
+
comment?: string | undefined;
|
|
762
|
+
stateName?: string | undefined;
|
|
763
|
+
searchCriteria?: Record<string, string> | undefined;
|
|
764
|
+
includeChildren?: boolean | undefined;
|
|
765
|
+
}>;
|
|
766
|
+
handler: (args: any) => string;
|
|
767
|
+
} | {
|
|
768
|
+
name: string;
|
|
769
|
+
description: string;
|
|
770
|
+
inputSchema: z.ZodObject<{
|
|
771
|
+
operation: z.ZodEnum<["create", "update", "export", "import", "link_excel"]>;
|
|
772
|
+
tableName: z.ZodString;
|
|
773
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
774
|
+
name: z.ZodString;
|
|
775
|
+
type: z.ZodEnum<["dimension", "feature", "component", "custom_property"]>;
|
|
776
|
+
configurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
777
|
+
}, "strip", z.ZodTypeAny, {
|
|
778
|
+
type: "dimension" | "feature" | "component" | "custom_property";
|
|
779
|
+
name: string;
|
|
780
|
+
configurations?: Record<string, any> | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
type: "dimension" | "feature" | "component" | "custom_property";
|
|
783
|
+
name: string;
|
|
784
|
+
configurations?: Record<string, any> | undefined;
|
|
785
|
+
}>, "many">>;
|
|
786
|
+
excelPath: z.ZodOptional<z.ZodString>;
|
|
787
|
+
linkToExternal: z.ZodOptional<z.ZodBoolean>;
|
|
788
|
+
}, "strip", z.ZodTypeAny, {
|
|
789
|
+
tableName: string;
|
|
790
|
+
operation: "export" | "create" | "import" | "update" | "link_excel";
|
|
791
|
+
parameters?: {
|
|
792
|
+
type: "dimension" | "feature" | "component" | "custom_property";
|
|
793
|
+
name: string;
|
|
794
|
+
configurations?: Record<string, any> | undefined;
|
|
795
|
+
}[] | undefined;
|
|
796
|
+
excelPath?: string | undefined;
|
|
797
|
+
linkToExternal?: boolean | undefined;
|
|
798
|
+
}, {
|
|
799
|
+
tableName: string;
|
|
800
|
+
operation: "export" | "create" | "import" | "update" | "link_excel";
|
|
801
|
+
parameters?: {
|
|
802
|
+
type: "dimension" | "feature" | "component" | "custom_property";
|
|
803
|
+
name: string;
|
|
804
|
+
configurations?: Record<string, any> | undefined;
|
|
805
|
+
}[] | undefined;
|
|
806
|
+
excelPath?: string | undefined;
|
|
807
|
+
linkToExternal?: boolean | undefined;
|
|
808
|
+
}>;
|
|
809
|
+
handler: (args: any) => string;
|
|
810
|
+
} | {
|
|
811
|
+
name: string;
|
|
812
|
+
description: string;
|
|
813
|
+
inputSchema: z.ZodObject<{
|
|
814
|
+
operation: z.ZodEnum<["create", "derive", "suppress_features", "set_properties", "table_driven"]>;
|
|
815
|
+
configName: z.ZodString;
|
|
816
|
+
parentConfig: z.ZodOptional<z.ZodString>;
|
|
817
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
818
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
819
|
+
suppressStates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
820
|
+
displayStates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
821
|
+
}, "strip", z.ZodTypeAny, {
|
|
822
|
+
operation: "create" | "derive" | "suppress_features" | "set_properties" | "table_driven";
|
|
823
|
+
configName: string;
|
|
824
|
+
properties?: Record<string, any> | undefined;
|
|
825
|
+
parentConfig?: string | undefined;
|
|
826
|
+
displayStates?: string[] | undefined;
|
|
827
|
+
features?: string[] | undefined;
|
|
828
|
+
suppressStates?: Record<string, boolean> | undefined;
|
|
829
|
+
}, {
|
|
830
|
+
operation: "create" | "derive" | "suppress_features" | "set_properties" | "table_driven";
|
|
831
|
+
configName: string;
|
|
832
|
+
properties?: Record<string, any> | undefined;
|
|
833
|
+
parentConfig?: string | undefined;
|
|
834
|
+
displayStates?: string[] | undefined;
|
|
835
|
+
features?: string[] | undefined;
|
|
836
|
+
suppressStates?: Record<string, boolean> | undefined;
|
|
837
|
+
}>;
|
|
838
|
+
handler: (args: any) => string;
|
|
839
|
+
} | {
|
|
840
|
+
name: string;
|
|
841
|
+
description: string;
|
|
842
|
+
inputSchema: z.ZodObject<{
|
|
843
|
+
operation: z.ZodEnum<["add", "modify", "delete", "link", "export"]>;
|
|
844
|
+
equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
845
|
+
name: z.ZodString;
|
|
846
|
+
value: z.ZodString;
|
|
847
|
+
isGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
848
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
849
|
+
}, "strip", z.ZodTypeAny, {
|
|
850
|
+
value: string;
|
|
851
|
+
name: string;
|
|
852
|
+
comment?: string | undefined;
|
|
853
|
+
isGlobal?: boolean | undefined;
|
|
854
|
+
}, {
|
|
855
|
+
value: string;
|
|
856
|
+
name: string;
|
|
857
|
+
comment?: string | undefined;
|
|
858
|
+
isGlobal?: boolean | undefined;
|
|
859
|
+
}>, "many">>;
|
|
860
|
+
externalFile: z.ZodOptional<z.ZodString>;
|
|
861
|
+
linkExternal: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
+
}, "strip", z.ZodTypeAny, {
|
|
863
|
+
operation: "delete" | "export" | "link" | "modify" | "add";
|
|
864
|
+
equations?: {
|
|
865
|
+
value: string;
|
|
866
|
+
name: string;
|
|
867
|
+
comment?: string | undefined;
|
|
868
|
+
isGlobal?: boolean | undefined;
|
|
869
|
+
}[] | undefined;
|
|
870
|
+
externalFile?: string | undefined;
|
|
871
|
+
linkExternal?: boolean | undefined;
|
|
872
|
+
}, {
|
|
873
|
+
operation: "delete" | "export" | "link" | "modify" | "add";
|
|
874
|
+
equations?: {
|
|
875
|
+
value: string;
|
|
876
|
+
name: string;
|
|
877
|
+
comment?: string | undefined;
|
|
878
|
+
isGlobal?: boolean | undefined;
|
|
879
|
+
}[] | undefined;
|
|
880
|
+
externalFile?: string | undefined;
|
|
881
|
+
linkExternal?: boolean | undefined;
|
|
882
|
+
}>;
|
|
883
|
+
handler: (args: any) => string;
|
|
884
|
+
} | {
|
|
885
|
+
name: string;
|
|
886
|
+
description: string;
|
|
887
|
+
inputSchema: z.ZodObject<{
|
|
888
|
+
studyType: z.ZodEnum<["static", "frequency", "buckling", "thermal", "nonlinear", "dynamic"]>;
|
|
889
|
+
studyName: z.ZodString;
|
|
890
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
891
|
+
componentName: z.ZodString;
|
|
892
|
+
materialName: z.ZodString;
|
|
893
|
+
}, "strip", z.ZodTypeAny, {
|
|
894
|
+
componentName: string;
|
|
895
|
+
materialName: string;
|
|
896
|
+
}, {
|
|
897
|
+
componentName: string;
|
|
898
|
+
materialName: string;
|
|
899
|
+
}>, "many">>;
|
|
900
|
+
fixtures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
901
|
+
faceName: z.ZodString;
|
|
902
|
+
type: z.ZodEnum<["fixed", "roller", "hinge"]>;
|
|
903
|
+
}, "strip", z.ZodTypeAny, {
|
|
904
|
+
type: "fixed" | "roller" | "hinge";
|
|
905
|
+
faceName: string;
|
|
906
|
+
}, {
|
|
907
|
+
type: "fixed" | "roller" | "hinge";
|
|
908
|
+
faceName: string;
|
|
909
|
+
}>, "many">>;
|
|
910
|
+
loads: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
911
|
+
faceName: z.ZodString;
|
|
912
|
+
type: z.ZodEnum<["force", "pressure", "torque"]>;
|
|
913
|
+
value: z.ZodNumber;
|
|
914
|
+
unit: z.ZodString;
|
|
915
|
+
}, "strip", z.ZodTypeAny, {
|
|
916
|
+
value: number;
|
|
917
|
+
type: "force" | "pressure" | "torque";
|
|
918
|
+
faceName: string;
|
|
919
|
+
unit: string;
|
|
920
|
+
}, {
|
|
921
|
+
value: number;
|
|
922
|
+
type: "force" | "pressure" | "torque";
|
|
923
|
+
faceName: string;
|
|
924
|
+
unit: string;
|
|
925
|
+
}>, "many">>;
|
|
926
|
+
meshQuality: z.ZodOptional<z.ZodEnum<["draft", "standard", "fine"]>>;
|
|
927
|
+
}, "strip", z.ZodTypeAny, {
|
|
928
|
+
studyType: "static" | "frequency" | "buckling" | "thermal" | "nonlinear" | "dynamic";
|
|
929
|
+
studyName: string;
|
|
930
|
+
materials?: {
|
|
931
|
+
componentName: string;
|
|
932
|
+
materialName: string;
|
|
933
|
+
}[] | undefined;
|
|
934
|
+
fixtures?: {
|
|
935
|
+
type: "fixed" | "roller" | "hinge";
|
|
936
|
+
faceName: string;
|
|
937
|
+
}[] | undefined;
|
|
938
|
+
loads?: {
|
|
939
|
+
value: number;
|
|
940
|
+
type: "force" | "pressure" | "torque";
|
|
941
|
+
faceName: string;
|
|
942
|
+
unit: string;
|
|
943
|
+
}[] | undefined;
|
|
944
|
+
meshQuality?: "draft" | "fine" | "standard" | undefined;
|
|
945
|
+
}, {
|
|
946
|
+
studyType: "static" | "frequency" | "buckling" | "thermal" | "nonlinear" | "dynamic";
|
|
947
|
+
studyName: string;
|
|
948
|
+
materials?: {
|
|
949
|
+
componentName: string;
|
|
950
|
+
materialName: string;
|
|
951
|
+
}[] | undefined;
|
|
952
|
+
fixtures?: {
|
|
953
|
+
type: "fixed" | "roller" | "hinge";
|
|
954
|
+
faceName: string;
|
|
955
|
+
}[] | undefined;
|
|
956
|
+
loads?: {
|
|
957
|
+
value: number;
|
|
958
|
+
type: "force" | "pressure" | "torque";
|
|
959
|
+
faceName: string;
|
|
960
|
+
unit: string;
|
|
961
|
+
}[] | undefined;
|
|
962
|
+
meshQuality?: "draft" | "fine" | "standard" | undefined;
|
|
963
|
+
}>;
|
|
964
|
+
handler: (args: any) => string;
|
|
965
|
+
} | {
|
|
966
|
+
name: string;
|
|
967
|
+
description: string;
|
|
968
|
+
inputSchema: z.ZodObject<{
|
|
969
|
+
automationType: z.ZodEnum<["event_handler", "macro_feature", "property_page", "add_in"]>;
|
|
970
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["file_save", "file_open", "rebuild", "selection_change", "dimension_change", "feature_add", "configuration_change"]>, "many">>;
|
|
971
|
+
className: z.ZodOptional<z.ZodString>;
|
|
972
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
973
|
+
name: z.ZodString;
|
|
974
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
975
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
976
|
+
}, "strip", z.ZodTypeAny, {
|
|
977
|
+
name: string;
|
|
978
|
+
parameters?: string[] | undefined;
|
|
979
|
+
returnType?: string | undefined;
|
|
980
|
+
}, {
|
|
981
|
+
name: string;
|
|
982
|
+
parameters?: string[] | undefined;
|
|
983
|
+
returnType?: string | undefined;
|
|
984
|
+
}>, "many">>;
|
|
985
|
+
}, "strip", z.ZodTypeAny, {
|
|
986
|
+
automationType: "event_handler" | "macro_feature" | "property_page" | "add_in";
|
|
987
|
+
eventTypes?: ("file_save" | "file_open" | "rebuild" | "selection_change" | "dimension_change" | "feature_add" | "configuration_change")[] | undefined;
|
|
988
|
+
className?: string | undefined;
|
|
989
|
+
methods?: {
|
|
990
|
+
name: string;
|
|
991
|
+
parameters?: string[] | undefined;
|
|
992
|
+
returnType?: string | undefined;
|
|
993
|
+
}[] | undefined;
|
|
994
|
+
}, {
|
|
995
|
+
automationType: "event_handler" | "macro_feature" | "property_page" | "add_in";
|
|
996
|
+
eventTypes?: ("file_save" | "file_open" | "rebuild" | "selection_change" | "dimension_change" | "feature_add" | "configuration_change")[] | undefined;
|
|
997
|
+
className?: string | undefined;
|
|
998
|
+
methods?: {
|
|
999
|
+
name: string;
|
|
1000
|
+
parameters?: string[] | undefined;
|
|
1001
|
+
returnType?: string | undefined;
|
|
1002
|
+
}[] | undefined;
|
|
1003
|
+
}>;
|
|
1004
|
+
handler: (args: any) => string;
|
|
1005
|
+
} | {
|
|
1006
|
+
name: string;
|
|
1007
|
+
description: string;
|
|
1008
|
+
inputSchema: z.ZodObject<{
|
|
1009
|
+
functionName: z.ZodString;
|
|
1010
|
+
operationType: z.ZodString;
|
|
1011
|
+
logToFile: z.ZodOptional<z.ZodBoolean>;
|
|
1012
|
+
logPath: z.ZodOptional<z.ZodString>;
|
|
1013
|
+
emailOnError: z.ZodOptional<z.ZodBoolean>;
|
|
1014
|
+
emailAddress: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
}, "strip", z.ZodTypeAny, {
|
|
1016
|
+
functionName: string;
|
|
1017
|
+
operationType: string;
|
|
1018
|
+
logToFile?: boolean | undefined;
|
|
1019
|
+
logPath?: string | undefined;
|
|
1020
|
+
emailOnError?: boolean | undefined;
|
|
1021
|
+
emailAddress?: string | undefined;
|
|
1022
|
+
}, {
|
|
1023
|
+
functionName: string;
|
|
1024
|
+
operationType: string;
|
|
1025
|
+
logToFile?: boolean | undefined;
|
|
1026
|
+
logPath?: string | undefined;
|
|
1027
|
+
emailOnError?: boolean | undefined;
|
|
1028
|
+
emailAddress?: string | undefined;
|
|
1029
|
+
}>;
|
|
1030
|
+
handler: (args: any) => string;
|
|
1031
|
+
} | {
|
|
4
1032
|
name: string;
|
|
5
1033
|
description: string;
|
|
6
1034
|
inputSchema: z.ZodObject<{
|
|
@@ -16,7 +1044,7 @@ export declare const vbaTools: ({
|
|
|
16
1044
|
template: string;
|
|
17
1045
|
outputPath?: string | undefined;
|
|
18
1046
|
}>;
|
|
19
|
-
handler: (args: any, swApi: SolidWorksAPI) => Promise<
|
|
1047
|
+
handler: (args: any, swApi: SolidWorksAPI) => Promise<any>;
|
|
20
1048
|
} | {
|
|
21
1049
|
name: string;
|
|
22
1050
|
description: string;
|
|
@@ -45,7 +1073,7 @@ export declare const vbaTools: ({
|
|
|
45
1073
|
radius?: number | undefined;
|
|
46
1074
|
count?: number | undefined;
|
|
47
1075
|
};
|
|
48
|
-
featureType: "extrude" | "
|
|
1076
|
+
featureType: "extrude" | "sweep" | "loft" | "revolve" | "chamfer" | "hole" | "fillet";
|
|
49
1077
|
}, {
|
|
50
1078
|
parameters: {
|
|
51
1079
|
depth?: number | undefined;
|
|
@@ -53,9 +1081,9 @@ export declare const vbaTools: ({
|
|
|
53
1081
|
radius?: number | undefined;
|
|
54
1082
|
count?: number | undefined;
|
|
55
1083
|
};
|
|
56
|
-
featureType: "extrude" | "
|
|
1084
|
+
featureType: "extrude" | "sweep" | "loft" | "revolve" | "chamfer" | "hole" | "fillet";
|
|
57
1085
|
}>;
|
|
58
|
-
handler: (args: any, swApi: SolidWorksAPI) =>
|
|
1086
|
+
handler: (args: any, swApi: SolidWorksAPI) => string;
|
|
59
1087
|
} | {
|
|
60
1088
|
name: string;
|
|
61
1089
|
description: string;
|
|
@@ -66,19 +1094,19 @@ export declare const vbaTools: ({
|
|
|
66
1094
|
propertyName: z.ZodOptional<z.ZodString>;
|
|
67
1095
|
propertyValue: z.ZodOptional<z.ZodString>;
|
|
68
1096
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
operation: "print" | "export" | "
|
|
1097
|
+
operation: "print" | "export" | "rebuild" | "update_property";
|
|
70
1098
|
filePattern: string;
|
|
71
1099
|
outputFormat?: string | undefined;
|
|
72
1100
|
propertyName?: string | undefined;
|
|
73
1101
|
propertyValue?: string | undefined;
|
|
74
1102
|
}, {
|
|
75
|
-
operation: "print" | "export" | "
|
|
1103
|
+
operation: "print" | "export" | "rebuild" | "update_property";
|
|
76
1104
|
filePattern: string;
|
|
77
1105
|
outputFormat?: string | undefined;
|
|
78
1106
|
propertyName?: string | undefined;
|
|
79
1107
|
propertyValue?: string | undefined;
|
|
80
1108
|
}>;
|
|
81
|
-
handler: (args: any, swApi: SolidWorksAPI) =>
|
|
1109
|
+
handler: (args: any, swApi: SolidWorksAPI) => any;
|
|
82
1110
|
} | {
|
|
83
1111
|
name: string;
|
|
84
1112
|
description: string;
|
|
@@ -98,7 +1126,7 @@ export declare const vbaTools: ({
|
|
|
98
1126
|
moduleName?: string | undefined;
|
|
99
1127
|
arguments?: any[] | undefined;
|
|
100
1128
|
}>;
|
|
101
|
-
handler: (args: any, swApi: SolidWorksAPI) =>
|
|
1129
|
+
handler: (args: any, swApi: SolidWorksAPI) => string;
|
|
102
1130
|
} | {
|
|
103
1131
|
name: string;
|
|
104
1132
|
description: string;
|
|
@@ -118,6 +1146,6 @@ export declare const vbaTools: ({
|
|
|
118
1146
|
modelPath: string;
|
|
119
1147
|
views: ("front" | "top" | "right" | "iso" | "section" | "detail")[];
|
|
120
1148
|
}>;
|
|
121
|
-
handler: (args: any, swApi: SolidWorksAPI) =>
|
|
1149
|
+
handler: (args: any, swApi: SolidWorksAPI) => any;
|
|
122
1150
|
})[];
|
|
123
1151
|
//# sourceMappingURL=vba.d.ts.map
|