bimdown-cli 0.3.0 → 0.5.1

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.
Files changed (151) hide show
  1. package/README.md +24 -3
  2. package/dist/chunk-4SKM4RHY.js +142 -0
  3. package/dist/chunk-4SKM4RHY.js.map +1 -0
  4. package/dist/chunk-4YHVOWS4.js +255 -0
  5. package/dist/chunk-4YHVOWS4.js.map +1 -0
  6. package/dist/chunk-AYAXRYGP.js +2129 -0
  7. package/dist/chunk-AYAXRYGP.js.map +1 -0
  8. package/dist/chunk-EC5MR5ZH.js +648 -0
  9. package/dist/chunk-EC5MR5ZH.js.map +1 -0
  10. package/dist/chunk-HS3PO2LB.js +487 -0
  11. package/dist/chunk-HS3PO2LB.js.map +1 -0
  12. package/dist/chunk-IQJA3EFO.js +179 -0
  13. package/dist/chunk-IQJA3EFO.js.map +1 -0
  14. package/dist/chunk-JY6KWRDB.js +80 -0
  15. package/dist/chunk-JY6KWRDB.js.map +1 -0
  16. package/dist/chunk-KWSGJUMZ.js +2501 -0
  17. package/dist/chunk-KWSGJUMZ.js.map +1 -0
  18. package/dist/chunk-LWYIPR64.js +35 -0
  19. package/dist/chunk-LWYIPR64.js.map +1 -0
  20. package/dist/chunk-OBY3UYCO.js +44 -0
  21. package/dist/chunk-OBY3UYCO.js.map +1 -0
  22. package/dist/chunk-XC6WHJRL.js +29 -0
  23. package/dist/chunk-XC6WHJRL.js.map +1 -0
  24. package/dist/chunk-XQU52JKB.js +187 -0
  25. package/dist/chunk-XQU52JKB.js.map +1 -0
  26. package/dist/clash-load-D3LNQR6G.js +941 -0
  27. package/dist/clash-load-D3LNQR6G.js.map +1 -0
  28. package/dist/cli.js +431 -0
  29. package/dist/cli.js.map +1 -0
  30. package/dist/dehydrate-ZHAGOI7Q.js +90 -0
  31. package/dist/dehydrate-ZHAGOI7Q.js.map +1 -0
  32. package/dist/diff-T2KOK2WR.js +89 -0
  33. package/dist/diff-T2KOK2WR.js.map +1 -0
  34. package/dist/engine-2TPWJVEQ.js +12 -0
  35. package/dist/engine-2TPWJVEQ.js.map +1 -0
  36. package/dist/hydrate-V24H7IF3.js +673 -0
  37. package/dist/hydrate-V24H7IF3.js.map +1 -0
  38. package/dist/import-ifc-RCZSXDA6.js +5324 -0
  39. package/dist/import-ifc-RCZSXDA6.js.map +1 -0
  40. package/dist/info-QC7YXWNX.js +92 -0
  41. package/dist/info-QC7YXWNX.js.map +1 -0
  42. package/dist/init-VWDML3UC.js +112 -0
  43. package/dist/init-VWDML3UC.js.map +1 -0
  44. package/dist/lib.d.ts +492 -0
  45. package/dist/lib.js +6528 -0
  46. package/dist/lib.js.map +1 -0
  47. package/dist/mep-W4HJI363.js +25 -0
  48. package/dist/mep-W4HJI363.js.map +1 -0
  49. package/dist/merge-ESOPDSA5.js +413 -0
  50. package/dist/merge-ESOPDSA5.js.map +1 -0
  51. package/dist/publish-3TAXQCUV.js +80 -0
  52. package/dist/publish-3TAXQCUV.js.map +1 -0
  53. package/dist/render-UEWYHPN6.js +1807 -0
  54. package/dist/render-UEWYHPN6.js.map +1 -0
  55. package/dist/resolve-topology-AQ2RO3W3.js +338 -0
  56. package/dist/resolve-topology-AQ2RO3W3.js.map +1 -0
  57. package/dist/spec/csv-schema/annotation/dimension.yaml +77 -0
  58. package/dist/spec/csv-schema/annotation/tag.yaml +44 -0
  59. package/dist/spec/csv-schema/annotation/text_note.yaml +52 -0
  60. package/dist/spec/csv-schema/architecture/ceiling.yaml +8 -1
  61. package/dist/spec/csv-schema/architecture/column.yaml +5 -1
  62. package/dist/spec/csv-schema/architecture/curtain_wall.yaml +45 -5
  63. package/dist/spec/csv-schema/architecture/door.yaml +5 -0
  64. package/dist/spec/csv-schema/architecture/furniture.yaml +28 -0
  65. package/dist/spec/csv-schema/architecture/opening.yaml +27 -6
  66. package/dist/spec/csv-schema/architecture/railing.yaml +35 -0
  67. package/dist/spec/csv-schema/architecture/roof.yaml +34 -1
  68. package/dist/spec/csv-schema/architecture/slab.yaml +19 -0
  69. package/dist/spec/csv-schema/architecture/space.yaml +11 -1
  70. package/dist/spec/csv-schema/architecture/stair.yaml +49 -0
  71. package/dist/spec/csv-schema/architecture/stair_landing.yaml +36 -0
  72. package/dist/spec/csv-schema/architecture/stair_run.yaml +31 -0
  73. package/dist/spec/csv-schema/architecture/wall.yaml +14 -1
  74. package/dist/spec/csv-schema/architecture/window.yaml +19 -0
  75. package/dist/spec/csv-schema/base/element.yaml +20 -11
  76. package/dist/spec/csv-schema/base/furniture_params.yaml +60 -0
  77. package/dist/spec/csv-schema/base/hosted_element.yaml +10 -2
  78. package/dist/spec/csv-schema/base/mep_connectable.yaml +23 -0
  79. package/dist/spec/csv-schema/base/mep_design.yaml +24 -0
  80. package/dist/spec/csv-schema/base/mep_insulated.yaml +9 -0
  81. package/dist/spec/csv-schema/base/mep_system_tag.yaml +12 -0
  82. package/dist/spec/csv-schema/base/point_element.yaml +1 -0
  83. package/dist/spec/csv-schema/base/section_profile.yaml +5 -0
  84. package/dist/spec/csv-schema/base/spatial_line_element.yaml +4 -2
  85. package/dist/spec/csv-schema/base/structural_section_profile.yaml +50 -0
  86. package/dist/spec/csv-schema/base/vertical_span.yaml +9 -3
  87. package/dist/spec/csv-schema/base/wall_bounded.yaml +21 -0
  88. package/dist/spec/csv-schema/grid.yaml +5 -0
  89. package/dist/spec/csv-schema/mep/cable_tray.yaml +10 -3
  90. package/dist/spec/csv-schema/mep/circuit.yaml +70 -0
  91. package/dist/spec/csv-schema/mep/conduit.yaml +2 -2
  92. package/dist/spec/csv-schema/mep/connector.yaml +112 -0
  93. package/dist/spec/csv-schema/mep/duct.yaml +10 -3
  94. package/dist/spec/csv-schema/mep/equipment.yaml +18 -1
  95. package/dist/spec/csv-schema/mep/mep_node.yaml +91 -2
  96. package/dist/spec/csv-schema/mep/mep_system.yaml +21 -0
  97. package/dist/spec/csv-schema/mep/pipe.yaml +27 -3
  98. package/dist/spec/csv-schema/mep/terminal.yaml +22 -1
  99. package/dist/spec/csv-schema/model_group.yaml +40 -0
  100. package/dist/spec/csv-schema/sheet/sheet.yaml +50 -0
  101. package/dist/spec/csv-schema/sheet/sheet_viewport.yaml +86 -0
  102. package/dist/spec/csv-schema/structure/beam.yaml +29 -1
  103. package/dist/spec/csv-schema/structure/beam_system.yaml +29 -0
  104. package/dist/spec/csv-schema/structure/brace.yaml +24 -1
  105. package/dist/spec/csv-schema/structure/foundation.yaml +40 -7
  106. package/dist/spec/csv-schema/structure/structure_column.yaml +19 -1
  107. package/dist/spec/csv-schema/structure/structure_slab.yaml +32 -0
  108. package/dist/spec/csv-schema/structure/structure_wall.yaml +22 -0
  109. package/dist/spec/csv-schema/types/beam_type.yaml +11 -0
  110. package/dist/spec/csv-schema/types/ceiling_type.yaml +6 -0
  111. package/dist/spec/csv-schema/types/column_type.yaml +12 -0
  112. package/dist/spec/csv-schema/types/curtain_wall_type.yaml +32 -0
  113. package/dist/spec/csv-schema/types/door_type.yaml +27 -0
  114. package/dist/spec/csv-schema/types/element_type.yaml +21 -0
  115. package/dist/spec/csv-schema/types/fenestration.yaml +16 -0
  116. package/dist/spec/csv-schema/types/foundation_type.yaml +36 -0
  117. package/dist/spec/csv-schema/types/furniture_type.yaml +11 -0
  118. package/dist/spec/csv-schema/types/layered_type.yaml +13 -0
  119. package/dist/spec/csv-schema/types/railing_type.yaml +40 -0
  120. package/dist/spec/csv-schema/types/roof_type.yaml +7 -0
  121. package/dist/spec/csv-schema/types/slab_type.yaml +9 -0
  122. package/dist/spec/csv-schema/types/type_layer.yaml +47 -0
  123. package/dist/spec/csv-schema/types/wall_type.yaml +6 -0
  124. package/dist/spec/csv-schema/types/window_type.yaml +31 -0
  125. package/dist/spec/csv-schema/underlay.yaml +73 -0
  126. package/dist/spec/csv-schema/view.yaml +36 -0
  127. package/dist/spec/duckdb-strategy.md +4 -3
  128. package/dist/spec/geojson-schema/readme.md +380 -0
  129. package/dist/spec/mep-port-conventions.md +190 -0
  130. package/dist/spec/migration-guide.md +1 -1
  131. package/dist/spec/project_metadata.schema.yaml +52 -4
  132. package/dist/spec/readme.md +356 -97
  133. package/dist/spec/starter-types/global/beam_type.csv +5 -0
  134. package/dist/spec/starter-types/global/ceiling_type.csv +3 -0
  135. package/dist/spec/starter-types/global/column_type.csv +5 -0
  136. package/dist/spec/starter-types/global/curtain_wall_type.csv +2 -0
  137. package/dist/spec/starter-types/global/door_type.csv +6 -0
  138. package/dist/spec/starter-types/global/foundation_type.csv +7 -0
  139. package/dist/spec/starter-types/global/furniture_type.csv +11 -0
  140. package/dist/spec/starter-types/global/railing_type.csv +5 -0
  141. package/dist/spec/starter-types/global/roof_type.csv +3 -0
  142. package/dist/spec/starter-types/global/slab_type.csv +4 -0
  143. package/dist/spec/starter-types/global/type_layer.csv +40 -0
  144. package/dist/spec/starter-types/global/wall_type.csv +8 -0
  145. package/dist/spec/starter-types/global/window_type.csv +6 -0
  146. package/dist/spec/svg-schema/readme.md +47 -1
  147. package/package.json +17 -5
  148. package/dist/index.js +0 -3366
  149. package/dist/index.js.map +0 -1
  150. package/dist/spec/csv-schema/base/mep_connected_segment.yaml +0 -17
  151. package/dist/spec/csv-schema/base/mep_system.yaml +0 -7
@@ -1,5 +1,32 @@
1
1
  name: structural_section_profile
2
2
  abstract: true
3
+ description: >
4
+ Structural cross-section profile. The editor treats each shape as a small
5
+ parametric family (FAMILY_VISION.md): `shape` selects the family, the
6
+ remaining fields are that family's parameters. Not all shapes use all
7
+ fields — values left blank fall back to a proportional default derived
8
+ from `size_x` / `size_y`.
9
+
10
+ Per-shape parameter usage:
11
+ rect: size_x = width, size_y = depth
12
+ round: size_x = diameter (size_y unused)
13
+ i_shape: size_x = flange width, size_y = total depth, flange + web thicknesses
14
+ t_shape: size_x = flange width, size_y = total depth, flange + web thicknesses
15
+ l_shape: size_x = leg X length, size_y = leg Y length, thickness = leg thk
16
+ c_shape: size_x = flange width, size_y = total depth, flange + web thicknesses
17
+ cross: size_x = arm length X, size_y = arm length Y, thickness = arm thk
18
+ rect_hollow: size_x = width, size_y = depth, thickness = wall thk,
19
+ root_radius = outer corner radius (RHS / SHS / rectangular HSS)
20
+ round_hollow: size_x = outside diameter, thickness = wall thk (CHS / round HSS)
21
+ open_web: open-web steel joist (K / LH series bar joist): size_x = chord
22
+ width, size_y = joist depth, flange = chord depth, thickness =
23
+ chord angle thk. Only the top and bottom chords are solid (clash
24
+ checks see the open web); area = 4.6 × thickness × (size_x / 2 +
25
+ flange − thickness) (two double-angle chords + 15 % web rods).
26
+
27
+ `designation` names a catalogue section (HEA 300, W14X90, HSS8X8X1/2,
28
+ CHS 219.1x8); tools use it as the IFC ProfileName. Steel weight per metre =
29
+ section area (root fillets / rounded corners included) × 7850 kg/m³.
3
30
 
4
31
  fields:
5
32
  - name: shape
@@ -13,9 +40,32 @@ fields:
13
40
  - cross
14
41
  - i_shape
15
42
  - c_shape
43
+ - rect_hollow
44
+ - round_hollow
45
+ - open_web
16
46
 
17
47
  - name: size_x
18
48
  type: float
19
49
 
20
50
  - name: size_y
21
51
  type: float
52
+
53
+ - name: flange
54
+ type: float
55
+ description: Flange thickness — used by i_shape / t_shape / c_shape; chord depth of open_web.
56
+
57
+ - name: web
58
+ type: float
59
+ description: Web thickness — used by i_shape / t_shape / c_shape.
60
+
61
+ - name: thickness
62
+ type: float
63
+ description: Leg / arm thickness — used by l_shape / cross; wall thickness of rect_hollow / round_hollow; chord angle thickness of open_web.
64
+
65
+ - name: root_radius
66
+ type: float
67
+ description: Root fillet radius of i_shape / t_shape / c_shape / l_shape (web-flange or leg junction); outer corner radius of rect_hollow. Empty = sharp.
68
+
69
+ - name: designation
70
+ type: string
71
+ description: Catalogue section designation, e.g. HEA 300, IPE 300, W14X90, HSS8X8X1/2, CHS 219.1x8, 14K1 (open-web joist). Used as the IFC ProfileName.
@@ -2,16 +2,22 @@ name: vertical_span
2
2
  abstract: true
3
3
 
4
4
  fields:
5
+ - name: base_level_id
6
+ type: reference
7
+ reference: level
8
+ description: Base level. Defaults to the containing directory's level (implicit for level-N/ directories). Must be set explicitly for elements in global/.
9
+
5
10
  - name: top_level_id
6
11
  type: reference
7
12
  reference: level
8
- description: Top constraint level. Empty = next level above current level.
13
+ description: Top constraint level. Empty = level immediately above base_level_id.
9
14
 
10
15
  - name: top_offset
11
16
  type: float
12
17
  default: 0
13
- description: Offset from top level. Default 0.
18
+ storage: geojson_property
19
+ description: Vertical offset from top_level_id, meters. Stored in GeoJSON Feature properties.
14
20
 
15
21
  - name: height
16
22
  type: float
17
- computed: true
23
+ computed: true
@@ -0,0 +1,21 @@
1
+ name: wall_bounded
2
+ abstract: true
3
+
4
+ fields:
5
+ - name: boundary_walls
6
+ type: string
7
+ description: "Revit \"Pick Walls\" association: ids of the walls (same level or global) whose loop is this element's boundary, semicolon-separated (e.g. `w-1;w-2;w-3;w-4`). Set → the polygon is derived: editors rebuild it from these walls at `boundary_face` (+ `boundary_offset` outward) when a wall moves, flips or changes thickness; editing the polygon itself clears it. Empty = a sketched boundary."
8
+
9
+ - name: boundary_face
10
+ type: enum
11
+ values:
12
+ - interior
13
+ - core
14
+ - centerline
15
+ - core_exterior
16
+ - exterior
17
+ description: Wall face the derived boundary follows (with boundary_walls). Default core for floors, exterior for roofs, interior for ceilings.
18
+
19
+ - name: boundary_offset
20
+ type: float
21
+ description: Extra outward offset of the derived boundary in meters (a roof's overhang). Default 0.
@@ -24,3 +24,8 @@ fields:
24
24
  - name: end_y
25
25
  type: float
26
26
  required: true
27
+
28
+ - name: pinned
29
+ type: enum
30
+ values: ["true", "false"]
31
+ description: '"true" = pinned (editors must not move it). Empty = not pinned.'
@@ -2,7 +2,14 @@ name: cable_tray
2
2
  bases:
3
3
  - spatial_line_element
4
4
  - section_profile
5
- - mep_system
6
- - mep_connected_segment
5
+ - mep_system_tag
6
+ - mep_connectable
7
7
 
8
- fields: []
8
+ fields:
9
+ - name: max_fill
10
+ type: float
11
+ unit: none
12
+ description: >
13
+ Allowed fill ratio, percent of the tray's size_x × size_y section
14
+ (cables routed through it by circuit.cable_trays plus conduits laid in
15
+ it). Empty = 40.
@@ -0,0 +1,70 @@
1
+ name: circuit
2
+ bases:
3
+ - element
4
+
5
+ description: >
6
+ Electrical branch circuit fed from a panelboard (or any electrical
7
+ equipment). CSV-only, like connector: one row per circuit, stored in the
8
+ level directory of its panel. `number` is the circuit number shown on the
9
+ panel schedule ("1", "L-3"). Devices (terminal / equipment) join a circuit
10
+ through their `circuit_id`; the circuit's connected load is the sum of its
11
+ devices' `load`.
12
+
13
+ fields:
14
+ - name: host_id
15
+ type: reference
16
+ reference: element
17
+ required: true
18
+ description: ID of the panel (equipment, usually equipment_type=panelboard) feeding the circuit.
19
+
20
+ - name: name
21
+ type: string
22
+ description: Label, e.g. "Lighting - Open office".
23
+
24
+ - name: voltage
25
+ type: float
26
+ unit: none
27
+ description: Nominal voltage, V (e.g. 230, 400).
28
+
29
+ - name: poles
30
+ type: int
31
+ unit: none
32
+ description: Breaker poles (1, 2 or 3).
33
+
34
+ - name: rating
35
+ type: float
36
+ unit: none
37
+ description: Breaker rating, A.
38
+
39
+ - name: phase
40
+ type: enum
41
+ values:
42
+ - L1
43
+ - L2
44
+ - L3
45
+ - L1L2
46
+ - L2L3
47
+ - L3L1
48
+ - L1L2L3
49
+ description: >
50
+ Phase(s) the circuit is connected to. One phase = single-phase load at
51
+ the phase-neutral voltage; two = a line-to-line load split evenly over
52
+ both; L1L2L3 = three-phase load (I = P / (√3 · U · cosφ), U line-to-line).
53
+ Empty = L1L2L3 when poles = 3, else unassigned single-phase.
54
+
55
+ - name: power_factor
56
+ type: float
57
+ unit: none
58
+ description: cosφ of the connected load (0 < pf ≤ 1). Empty = 0.9.
59
+
60
+ - name: cable_size
61
+ type: float
62
+ description: >
63
+ Outer diameter of the circuit's cable (length unit). Used with
64
+ cable_trays for the tray fill ratio.
65
+
66
+ - name: cable_trays
67
+ type: string
68
+ description: >
69
+ Cable trays the circuit's cable runs in: cable_tray ids separated by
70
+ ";" (e.g. "ct-1;ct-2"). Each tray's fill counts the cable's section.
@@ -2,7 +2,7 @@ name: conduit
2
2
  bases:
3
3
  - spatial_line_element
4
4
  - section_profile
5
- - mep_system
6
- - mep_connected_segment
5
+ - mep_system_tag
6
+ - mep_connectable
7
7
 
8
8
  fields: []
@@ -0,0 +1,112 @@
1
+ name: connector
2
+ bases:
3
+ - element
4
+
5
+ description: >
6
+ Connection port (socket) on an equipment / terminal / mep_node. Each row
7
+ is one port. The host element exposes the port via host_id; the port
8
+ carries a local-frame offset (relative to host origin), an outward
9
+ direction unit vector, a cross-section (shape + size), a flow direction,
10
+ a domain, and an optional system_type.
11
+
12
+ The pair (host_id, name) is the port identity. MEP curves (pipe / duct /
13
+ conduit / cable_tray) reference a port via `from` / `to` columns with the
14
+ syntax "host_id:name" (see mep_connectable). Passive mep_node fittings
15
+ (auto-elbow/tee/cross/coupling/cap/transition) do NOT get connector rows
16
+ — their ports are derived from connected-pipe geometry at runtime.
17
+
18
+ CSV-only: connectors have no independent 2D geometry — their world
19
+ position is host.origin + R(host.rotation) · offset at render time.
20
+
21
+ fields:
22
+ - name: host_id
23
+ type: reference
24
+ reference: element
25
+ required: true
26
+ description: ID of the host equipment / terminal / mep_node.
27
+
28
+ - name: name
29
+ type: string
30
+ required: true
31
+ description: >
32
+ Port name unique within the host. Used as the suffix in pipe.from/to:
33
+ "host_id:name". Prefer lowercase semantic names ("supply", "return",
34
+ "inlet", "outlet", "in", "out", "sa", "ra", "condensate"); when no
35
+ semantic name applies (e.g. Revit family with anonymous connectors),
36
+ fall back to "c0", "c1", ... in ConnectorManager index order. See
37
+ spec/mep-port-conventions.md for the recommended vocabulary.
38
+
39
+ - name: offset_x
40
+ type: float
41
+ default: 0
42
+ description: X offset from host origin, host local frame, meters.
43
+
44
+ - name: offset_y
45
+ type: float
46
+ default: 0
47
+ description: Y offset from host origin, host local frame, meters.
48
+
49
+ - name: offset_z
50
+ type: float
51
+ default: 0
52
+ description: Z offset from host origin (added to host base_offset), meters.
53
+
54
+ - name: dir_x
55
+ type: float
56
+ default: 1
57
+ description: Outward unit-vector X component (direction the pipe/duct exits), host local frame.
58
+
59
+ - name: dir_y
60
+ type: float
61
+ default: 0
62
+ description: Outward unit-vector Y component, host local frame.
63
+
64
+ - name: dir_z
65
+ type: float
66
+ default: 0
67
+ description: Outward unit-vector Z component, host local frame.
68
+
69
+ - name: shape
70
+ type: enum
71
+ description: Cross-section shape of the port opening.
72
+ values:
73
+ - round
74
+ - rect
75
+
76
+ - name: size_w
77
+ type: float
78
+ description: Cross-section width (or diameter when shape=round), meters.
79
+
80
+ - name: size_h
81
+ type: float
82
+ description: Cross-section height (rect only), meters.
83
+
84
+ - name: system_type
85
+ type: string
86
+ description: >
87
+ System tag this port carries (e.g. "CHWS", "RA"). Used for color
88
+ coding and system compatibility checks at draw time. Pipes drawn
89
+ from this port inherit this system_type.
90
+
91
+ - name: flow_dir
92
+ type: enum
93
+ description: >
94
+ Flow direction of the port from the host's perspective. Matches Revit
95
+ Connector.Direction. Used for validating connections (out → in is
96
+ well-formed) and drawing flow arrows.
97
+ values:
98
+ - in
99
+ - out
100
+ - bidirectional
101
+
102
+ - name: domain
103
+ type: enum
104
+ description: >
105
+ Engineering domain of the port. Matches Revit Connector.Domain.
106
+ Disambiguates ports on multi-domain equipment (e.g. an AHU has
107
+ piping ports for hydronic and hvac ports for air).
108
+ values:
109
+ - hvac
110
+ - piping
111
+ - electrical
112
+ - cable_tray_conduit
@@ -2,7 +2,14 @@ name: duct
2
2
  bases:
3
3
  - spatial_line_element
4
4
  - section_profile
5
- - mep_system
6
- - mep_connected_segment
5
+ - mep_system_tag
6
+ - mep_connectable
7
+ - mep_insulated
7
8
 
8
- fields: []
9
+ fields:
10
+ - name: flexible
11
+ type: boolean
12
+ description: >
13
+ true = flexible duct (round, short runs to terminals); drawn as a
14
+ flex hose, exported as IfcDuctSegment FLEXIBLESEGMENT. Empty / false =
15
+ rigid sheet-metal duct.
@@ -1,7 +1,8 @@
1
1
  name: equipment
2
2
  bases:
3
3
  - point_element
4
- - mep_system
4
+ - mep_system_tag
5
+ - mep_design
5
6
 
6
7
  fields:
7
8
  - name: equipment_type
@@ -9,14 +10,30 @@ fields:
9
10
  values:
10
11
  - ahu
11
12
  - fcu
13
+ - vav
12
14
  - chiller
13
15
  - boiler
14
16
  - cooling_tower
15
17
  - fan
16
18
  - pump
19
+ - coil
17
20
  - transformer
18
21
  - panelboard
19
22
  - generator
20
23
  - water_heater
21
24
  - tank
22
25
  - other
26
+
27
+ - name: family
28
+ type: text
29
+ description: >
30
+ Family name from source CAD/BIM tool (e.g. Revit Family.Name).
31
+ Free-form text. Used for round-trip fidelity and for grouping
32
+ same-model instances. Two equipment rows with the same (family,
33
+ type) pair represent the same product model.
34
+
35
+ - name: type
36
+ type: text
37
+ description: >
38
+ Family type / symbol name from source CAD/BIM tool (e.g. Revit
39
+ FamilySymbol.Name). Free-form text.
@@ -1,6 +1,95 @@
1
1
  name: mep_node
2
2
  bases:
3
3
  - point_element
4
- - mep_system
4
+ - mep_system_tag
5
5
 
6
- fields: []
6
+ # mep_node represents an MEP fitting/accessory in the physical sense
7
+ # (Revit's MEPFamilyInstance): a tee, elbow, coupling, valve, damper, etc.
8
+ # It is the vertex in the (pipe-as-edge, fitting-as-vertex) topology graph.
9
+ #
10
+ # Passive fittings (coupling/elbow/tee/cross/reducer/transition/cap):
11
+ # leave `kind` empty — runtime derives it from the connected pipes'
12
+ # count, angles, and sizes. CSV stays minimal (just id + position).
13
+ #
14
+ # Functional accessories (valve/damper/pump/strainer/check_valve/etc.):
15
+ # set `kind` explicitly. `family` and the size attrs carry the catalog
16
+ # metadata needed for Revit round-trip.
17
+
18
+ fields:
19
+ - name: kind
20
+ type: enum
21
+ required: false
22
+ description: >
23
+ Empty for passive fittings (kind derived from topology at runtime).
24
+ Set explicitly for functional accessories.
25
+ values:
26
+ - valve
27
+ - gate_valve
28
+ - ball_valve
29
+ - butterfly_valve
30
+ - globe_valve
31
+ - balancing_valve
32
+ - damper
33
+ - fire_damper
34
+ - pump
35
+ - strainer
36
+ - check_valve
37
+ - flow_meter
38
+ - sensor
39
+ - access_panel
40
+ - other_accessory
41
+ - custom
42
+
43
+ - name: fitting
44
+ type: enum
45
+ required: false
46
+ description: >
47
+ Passive fittings only (kind empty). Empty = the fitting is derived
48
+ from the incident curves (see mep-port-conventions.md §4). Set it
49
+ only where geometry can't tell: `tap` = a branch cut straight into
50
+ the main (no tee body); `cap` = an intentional closed end (a node
51
+ with a single curve); `open` = an intentional open end (vent
52
+ through the roof, outfall); `wye` = a 45° branch (drainage). Other
53
+ values record the derived kind.
54
+ values:
55
+ - elbow
56
+ - tee
57
+ - tap
58
+ - wye
59
+ - cross
60
+ - reducer
61
+ - transition
62
+ - coupling
63
+ - cap
64
+ - open
65
+
66
+ - name: family
67
+ type: text
68
+ required: false
69
+ description: >
70
+ Family name from source CAD/BIM tool (e.g. Revit Family.Name).
71
+ Free-form text. Round-trip fidelity.
72
+
73
+ - name: type
74
+ type: text
75
+ required: false
76
+ description: >
77
+ Family type / symbol name from source CAD/BIM tool. Free-form text.
78
+
79
+ - name: shape
80
+ type: enum
81
+ required: false
82
+ description: Cross-section shape of accessory body (only used when kind is set).
83
+ values:
84
+ - round
85
+ - rect
86
+
87
+ - name: size_w
88
+ type: float
89
+ required: false
90
+ description: Accessory body width (only used when kind is set).
91
+
92
+ - name: size_h
93
+ type: float
94
+ required: false
95
+ description: Accessory body height (only used when kind is set).
@@ -0,0 +1,21 @@
1
+ name: mep_system
2
+ bases:
3
+ - element
4
+
5
+ fields:
6
+ - name: system_type
7
+ type: string
8
+ required: true
9
+ description: Short system tag (e.g. "CHWS", "RA", "SA"). Multiple rows can share a tag for sub-systems.
10
+
11
+ - name: name
12
+ type: string
13
+ description: Human-readable label (e.g. "Main Chilled Water Supply").
14
+
15
+ - name: color
16
+ type: string
17
+ description: Optional hex color (e.g. "#06b6d4"). When empty, the editor falls back to its curated/hash color for system_type.
18
+
19
+ - name: discipline
20
+ type: string
21
+ description: One of "hvac" / "plumbing" / "fire" / "electrical" / "data" / "other".
@@ -2,7 +2,31 @@ name: pipe
2
2
  bases:
3
3
  - spatial_line_element
4
4
  - section_profile
5
- - mep_system
6
- - mep_connected_segment
5
+ - mep_system_tag
6
+ - mep_connectable
7
+ - mep_insulated
7
8
 
8
- fields: []
9
+ fields:
10
+ - name: material
11
+ type: enum
12
+ values:
13
+ - steel
14
+ - galvanized_steel
15
+ - stainless_steel
16
+ - copper
17
+ - cast_iron
18
+ - ductile_iron
19
+ - pvc
20
+ - ppr
21
+ - hdpe
22
+ - pex
23
+ description: >
24
+ Pipe material. Empty = unspecified (sized as metal). `size_x` is the
25
+ nominal size: DN for metal pipes (0.065 = DN65), the outside diameter
26
+ de for plastic ones (pvc / ppr / hdpe / pex, 0.11 = de110).
27
+
28
+ - name: flexible
29
+ type: boolean
30
+ description: >
31
+ true = flexible hose (braided / corrugated connector to a fixture or
32
+ equipment); exported as IfcPipeSegment FLEXIBLESEGMENT. Empty / false = rigid.
@@ -1,7 +1,8 @@
1
1
  name: terminal
2
2
  bases:
3
3
  - point_element
4
- - mep_system
4
+ - mep_system_tag
5
+ - mep_design
5
6
 
6
7
  fields:
7
8
  - name: terminal_type
@@ -16,4 +17,24 @@ fields:
16
17
  - power_outlet
17
18
  - data_outlet
18
19
  - plumbing_fixture
20
+ - water_closet
21
+ - urinal
22
+ - lavatory
23
+ - sink
24
+ - shower
25
+ - floor_drain
26
+ - switch
27
+ - junction_box
28
+ - emergency_light
19
29
  - other
30
+
31
+ - name: family
32
+ type: text
33
+ description: >
34
+ Family name from source CAD/BIM tool (e.g. Revit Family.Name).
35
+ Free-form text. Used for round-trip fidelity.
36
+
37
+ - name: type
38
+ type: text
39
+ description: >
40
+ Family type / symbol name from source CAD/BIM tool. Free-form text.
@@ -0,0 +1,40 @@
1
+ name: model_group
2
+ description: >
3
+ Model group instance (Revit "model group"), CSV only, level directories only.
4
+ Its members are ordinary elements of the same level whose `group_id` is this
5
+ row's id; their geometry is stored as usual (absolute plan coordinates), so
6
+ every tool that ignores groups still reads them correctly. Instances with the
7
+ same `name` are copies of one group: their members are identical in the
8
+ group's local frame, and an editor that edits one instance propagates the
9
+ change to the others. Local frame of an instance: plan = (x, y) +
10
+ rotate(rotation°) · (mirrored ? flip-Y : identity) · local.
11
+
12
+ fields:
13
+ - name: id
14
+ type: string
15
+ required: true
16
+
17
+ - name: name
18
+ type: string
19
+ required: true
20
+ description: Group name. Instances sharing a name are copies of the same group.
21
+
22
+ - name: x
23
+ type: float
24
+ required: true
25
+ description: Group origin X (plan, project units).
26
+
27
+ - name: y
28
+ type: float
29
+ required: true
30
+ description: Group origin Y.
31
+
32
+ - name: rotation
33
+ type: float
34
+ default: 0
35
+ description: Rotation of the instance in degrees CCW.
36
+
37
+ - name: mirrored
38
+ type: enum
39
+ values: ["true", "false"]
40
+ description: '"true" = the instance is a mirror image (local Y flipped before the rotation).'
@@ -0,0 +1,50 @@
1
+ name: sheet
2
+ description: >
3
+ A drawing sheet (global/sheet.csv only): a title block on one paper size with
4
+ views placed on it (global/sheet_viewport.csv). The title block shows the
5
+ project fields of project_metadata.json (project_name, project_number,
6
+ client, address), the sheet number and name, the date, the revision and the
7
+ scale of each viewport. Not a building element: build and render ignore
8
+ sheets.
9
+
10
+ fields:
11
+ - name: id
12
+ type: string
13
+ required: true
14
+
15
+ - name: number
16
+ type: string
17
+ required: true
18
+ description: Sheet number shown in the title block and used in view references (e.g. A-101). Unique.
19
+
20
+ - name: name
21
+ type: string
22
+ description: Sheet title (e.g. "Ground floor plan").
23
+
24
+ - name: paper
25
+ type: enum
26
+ default: A1
27
+ values: [A0, A1, A2, A3, A4]
28
+ description: ISO 216 paper size, landscape.
29
+
30
+ - name: revision
31
+ type: string
32
+ description: Current revision mark (e.g. "B").
33
+
34
+ - name: revision_date
35
+ type: string
36
+ description: Date of the current revision, YYYY-MM-DD.
37
+
38
+ - name: revision_note
39
+ type: string
40
+ description: What the current revision changed.
41
+
42
+ - name: issue_date
43
+ type: string
44
+ description: Issue date printed in the title block, YYYY-MM-DD. Empty = the export date.
45
+
46
+ - name: drawn_by
47
+ type: string
48
+
49
+ - name: checked_by
50
+ type: string