Repository navigation
Expand file tree
/
Copy pathcatalog.json
More file actions
368 lines (368 loc) · 12 KB
/
Copy pathcatalog.json
File metadata and controls
368 lines (368 loc) · 12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
{
"$schema": "schemas/catalog.schema.json",
"version": 1,
"scripts": [
{
"id": "documentation.import-image-to-active-view",
"name": "Import image to active view",
"summary": "Copies a raster image beside the active RVT when requested, then imports, centers, and proportionally scales it in the visible view.",
"category": "documentation",
"path": "documentation/import_image_to_active_view.py",
"documentation": "documentation/import_image_to_active_view.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "write",
"requiresActiveDocument": true,
"selection": {
"required": false,
"description": "No selection is required; the image is placed in the active view."
},
"inputs": [
{
"index": 0,
"name": "image_path",
"type": "string",
"required": true,
"description": "Existing local raster-image path."
},
{
"index": 1,
"name": "width_fraction",
"type": "number-string",
"required": false,
"default": "0.4",
"description": "Target image width as a fraction of the visible view width, from 0.01 to 1.0."
},
{
"index": 2,
"name": "copy_to_document_folder",
"type": "boolean-string",
"required": false,
"default": "true",
"description": "Copy the image beside the saved active Revit document before import."
}
],
"output": {
"format": "object",
"description": "Imported image IDs, view name, persistent source path, copy status, and final dimensions in feet."
},
"tags": [
"active-view",
"documentation",
"filesystem",
"image",
"import",
"raster"
]
},
{
"id": "modeling.create-toposolid-from-model-lines",
"name": "Create Toposolid from model lines",
"summary": "Samples selected model curves and creates a point-based Toposolid from their XYZ elevations.",
"category": "modeling",
"path": "modeling/create_toposolid_from_model_lines.py",
"documentation": "modeling/create_toposolid_from_model_lines.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "write",
"requiresActiveDocument": true,
"selection": {
"required": true,
"description": "Three or more non-collinear XYZ points sampled from selected ModelCurve elements."
},
"inputs": [
{
"index": 0,
"name": "sampling_step_mm",
"type": "number-string",
"required": false,
"default": "1000",
"description": "Approximate sampling interval along each selected curve, in millimetres."
},
{
"index": 1,
"name": "xy_tolerance_mm",
"type": "number-string",
"required": false,
"default": "1",
"description": "XY tolerance used to merge duplicate sampled points, in millimetres."
},
{
"index": 2,
"name": "toposolid_type_name",
"type": "string",
"required": false,
"default": "",
"description": "Exact Toposolid type name. The first type alphabetically is used when omitted."
},
{
"index": 3,
"name": "level_name",
"type": "string",
"required": false,
"default": "",
"description": "Exact level name. The active view level or nearest level is used when omitted."
}
],
"output": {
"format": "text",
"description": "Created element ID and a summary of the sampled geometry, type, level, and Z range."
},
"tags": [
"site",
"terrain",
"topography",
"toposolid",
"model-curves",
"selection"
]
},
{
"id": "modeling.create-model-line-contour-from-linked-stl-slice",
"name": "Create model-line contour from linked STL slice",
"summary": "Polygonizes a selected linked STL slice, heals small gaps between mesh fragments, and creates the largest exterior shell as model lines.",
"category": "modeling",
"path": "modeling/create_model_line_contour_from_linked_stl_slice.py",
"documentation": "modeling/create_model_line_contour_from_linked_stl_slice.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "write",
"requiresActiveDocument": true,
"selection": {
"required": true,
"description": "Exactly one linked ImportInstance containing the STL mesh geometry."
},
"inputs": [
{
"index": 0,
"name": "level_name",
"type": "string",
"required": false,
"default": "L3",
"description": "Exact Revit level name used as the base elevation."
},
{
"index": 1,
"name": "slice_offset_mm",
"type": "number-string",
"required": false,
"default": "1500",
"description": "Horizontal slice offset above the level, in millimetres."
},
{
"index": 2,
"name": "endpoint_snap_mm",
"type": "number-string",
"required": false,
"default": "25",
"description": "XY grid used to snap section-segment endpoints, in millimetres."
},
{
"index": 3,
"name": "gap_healing_mm",
"type": "number-string",
"required": false,
"default": "250",
"description": "Buffer distance used to close gaps between polygonized STL fragments, in millimetres; zero disables healing."
},
{
"index": 4,
"name": "simplification_tolerance_mm",
"type": "number-string",
"required": false,
"default": "50",
"description": "Topology-preserving contour simplification tolerance, in millimetres."
},
{
"index": 5,
"name": "minimum_contour_area_m2",
"type": "number-string",
"required": false,
"default": "10",
"description": "Minimum accepted contour area, in square metres."
},
{
"index": 6,
"name": "assembly_paths",
"type": "string",
"required": false,
"default": "",
"description": "Semicolon-separated full paths to NetTopologySuite prerequisite DLLs and NetTopologySuite.dll, in load order; omit when already loaded."
},
{
"index": 7,
"name": "line_style_name",
"type": "string",
"required": false,
"default": "BIMO_STL_Contour",
"description": "Model-line subcategory name used for the created contour."
}
],
"output": {
"format": "object",
"description": "Source, slice, geometry-processing, contour-area, model-line, sketch-plane, and line-style details."
},
"tags": [
"contour",
"gap-healing",
"import-instance",
"mesh",
"model-curves",
"nettopologysuite",
"polygonization",
"stl"
]
},
{
"id": "modeling.create-floors-from-roofs",
"name": "Create Floors from shape-edited roofs",
"summary": "Creates validated Floors with roof layers, shape elevations and vertical openings while retaining source roofs and annotations.",
"category": "modeling",
"path": "modeling/create_floors_from_roofs.py",
"documentation": "modeling/create_floors_from_roofs.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "write",
"requiresActiveDocument": true,
"selection": {
"required": false,
"description": "Select supported shape-edited Basic FootPrintRoofs, or provide an explicit comma-separated roof ID list in IN[1]. Mixed or empty selections are rejected."
},
"inputs": [
{
"index": 0,
"name": "dry_run",
"type": "boolean-string",
"required": false,
"default": "true",
"description": "Create and validate trial Floors, then roll back everything. Set false to retain the new Floors."
},
{
"index": 1,
"name": "roof_ids",
"type": "string",
"required": false,
"default": "",
"description": "Comma-separated positive roof IDs in the active document; overrides selection. Empty uses current selection."
}
],
"output": {
"format": "object",
"description": "Dry-run state, Floor count, source/target IDs, opening mapping, geometry measurements, point corrections and warnings. Trial IDs are not persistent."
},
"tags": [
"roof",
"floor",
"conversion",
"slab-shape",
"slope",
"opening",
"selection"
]
},
{
"id": "miscellaneous.calculate-selected-lines-length-mm",
"name": "Calculate selected lines length in millimetres",
"summary": "Calculates the total length of selected curve elements and prints millimetres.",
"category": "miscellaneous",
"path": "miscellaneous/calculate_selected_lines_length_mm.py",
"documentation": "miscellaneous/calculate_selected_lines_length_mm.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "read",
"requiresActiveDocument": true,
"selection": {
"required": true,
"description": "One or more CurveElement instances. Non-curve elements are ignored."
},
"inputs": [],
"output": {
"format": "text",
"description": "Total selected curve length in millimetres."
},
"tags": [
"curves",
"length",
"measurement",
"selection"
]
},
{
"id": "miscellaneous.calculate-element-volume",
"name": "Calculate element volume",
"summary": "Calculates solid volumes for selected family instances and prints cubic metres.",
"category": "miscellaneous",
"path": "miscellaneous/calculate_element_volume.py",
"documentation": "miscellaneous/calculate_element_volume.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "read",
"requiresActiveDocument": true,
"selection": {
"required": true,
"description": "One or more FamilyInstance elements with valid solid geometry."
},
"inputs": [],
"output": {
"format": "text",
"description": "A list containing cubic-metre volumes or per-element error messages."
},
"tags": [
"family-instance",
"geometry",
"measurement",
"selection",
"volume"
]
},
{
"id": "miscellaneous.delete-bimo-preview-rays-direct-shapes",
"name": "Delete BIMO preview rays",
"summary": "Deletes DirectShape elements whose ApplicationId is BIMO_PreviewRays.",
"category": "miscellaneous",
"path": "miscellaneous/Delete_BIMO_PreviewRays_DirectShapes.py",
"documentation": "miscellaneous/Delete_BIMO_PreviewRays_DirectShapes.md",
"engine": "ironpython",
"revit": {
"minimum": 2024,
"tested": []
},
"risk": "destructive",
"requiresActiveDocument": true,
"selection": {
"required": false,
"description": "No selection is required; all matching DirectShape elements in the active document are deleted."
},
"inputs": [],
"output": {
"format": "text",
"description": "Number of deleted DirectShape elements, or a message when no match exists."
},
"tags": [
"bimo",
"cleanup",
"delete",
"direct-shape",
"preview-rays"
]
}
]
}