Title: # Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM · Issue #8085 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: # Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM · Issue #8085 · IfcOpenShell/IfcOpenShell
X Title: # Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM · Issue #8085 · IfcOpenShell/IfcOpenShell
Description: Feature Description Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM Summary Please consider adding a documented, generic and scriptable MEP port model/API to BonsaiBIM, together with a UI tool fo...
Open Graph Description: Feature Description Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM Summary Please consider adding a documented, generic and scriptable MEP port model/API ...
X Description: Feature Description Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM Summary Please consider adding a documented, generic and scriptable MEP port model/API ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8085
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"# Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM","articleBody":"### Feature Description\n\n# Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM\n\n## Summary\n\nPlease consider adding a documented, generic and scriptable MEP port model/API to BonsaiBIM, together with a UI tool for manually adding IFC distribution ports to arbitrary components.\n\nThe goal is to make pipes, ducts, fittings, equipment and imported IFC/STEP/manufacturer components behave as real connected MEP network elements, not only as geometric objects.\n\nIn IFC terms, this would ideally map to concepts such as `IfcDistributionPort` and MEP connectivity relationships.\n\n## Problem\n\nIn MEP workflows, geometry alone is not enough.\n\nA pipe or duct segment is not only a visible cylinder, sweep or rectangular solid. It is part of a connected distribution network and should expose connection points/ports.\n\nFor example:\n\n- a pipe segment should have 2 ports\n- a duct segment should have 2 ports\n- an elbow should have 2 ports\n- a tee should have 3 ports\n- a cross fitting should have 4 ports\n- a reducer should have 2 ports with different sizes\n- a valve should have 2 ports\n- a pump should have 2 ports and optional flow direction\n- an air terminal/diffuser should have at least 1 port\n- an air handling unit may have several air and water ports\n\nWithout a generic MEP port model/API, it is difficult to build reliable workflows for:\n\n- continuing a pipe/duct from an endpoint\n- snapping fittings to pipe/duct ends\n- inserting elbows, tees, reducers or valves automatically\n- routing between two selected MEP elements\n- checking whether two ports are compatible\n- preserving diameter, width, height and system type through a route\n- building a MEP network graph\n- exporting meaningful MEP connectivity to IFC\n- importing IFC MEP components and reconnecting/editing them\n- allowing scripts, add-ons or AI-assisted tools to reason about MEP connectivity\n\n## Requested feature 1: Generic MEP port model/API\n\nPlease add or document a generic MEP port model/API that can be attached to pipes, ducts, fittings, equipment and IFC components.\n\nA minimal port structure could contain:\n\n```text\nid\nname\nlocal_position\nlocal_direction\nprofile_type: circular / rectangular / oval / custom\ndiameter\nwidth\nheight\nsystem_type: supply_air / return_air / exhaust_air / heating_water / cooling_water / domestic_water / drain / unknown\nflow_direction: in / out / bidirectional / unknown\nconnection_status\nconnected_to\n```\n\nExample: pipe generated from line A -> B\n\n```text\nPipe segment:\n- Port 1:\n - position: A\n - direction: opposite to pipe axis\n - diameter: pipe diameter\n\n- Port 2:\n - position: B\n - direction: pipe axis\n - diameter: pipe diameter\n```\n\nExample: rectangular duct generated from line A -> B\n\n```text\nDuct segment:\n- Port 1:\n - position: A\n - direction: opposite to duct axis\n - width: duct width\n - height: duct height\n\n- Port 2:\n - position: B\n - direction: duct axis\n - width: duct width\n - height: duct height\n```\n\n## Requested feature 2: Manual \"Add IfcDistributionPort\" tool\n\nPlease also consider adding a UI button/tool that allows users to manually add a port to any selected component.\n\nPossible tool names:\n\n- Add MEP Port\n- Add Distribution Port\n- Add IfcDistributionPort\n- Create MEP Connection Point\n\nSuggested workflow:\n\n1. Select an object, such as:\n - pipe\n - duct\n - fitting\n - valve\n - pump\n - air handling unit\n - fan coil\n - manifold\n - custom Blender object\n - imported IFC component\n - imported STEP/manufacturer component\n\n2. Click \"Add MEP Port\" / \"Add IfcDistributionPort\".\n\n3. Select a point, vertex, edge, face center or custom placement on the object.\n\n4. Define port direction/orientation.\n\n5. Define basic port properties:\n - name / id\n - profile type\n - diameter or width/height\n - system type\n - flow direction\n\n6. Store the port as object metadata and prepare it for IFC export as `IfcDistributionPort`.\n\n## Suggested Python API\n\nA basic scriptable API could include:\n\n```python\nget_mep_ports(obj)\nadd_mep_port(obj, port_data)\nremove_mep_port(obj, port_id)\nupdate_mep_port(obj, port_id, port_data)\n\nconnect_mep_ports(obj_a, port_a_id, obj_b, port_b_id)\ndisconnect_mep_port(obj, port_id)\nare_mep_ports_compatible(port_a, port_b)\n\nadd_distribution_port(obj, placement, direction, properties)\nget_distribution_ports(obj)\nupdate_distribution_port(obj, port_id, properties)\nremove_distribution_port(obj, port_id)\n```\n\n## IFC relevance\n\nIn IFC, MEP components can use distribution ports to describe how they connect to other distribution elements.\n\nA BonsaiBIM internal MEP port model could map to IFC concepts such as:\n\n- `IfcDistributionPort`\n- port placement/orientation\n- flow direction\n- system type\n- port-to-element relationships\n- port-to-port connectivity relationships\n\nThis would allow BonsaiBIM to move from:\n\n```text\nMEP object = geometry + IFC class/tag\n```\n\ntoward:\n\n```text\nMEP object = geometry + parameters + ports + connection rules + IFC connectivity\n```\n\n## Use cases\n\nThis feature would enable:\n\n1. Select a pipe end and continue drawing from its port.\n2. Select a duct end and continue drawing from its port.\n3. Snap fittings directly to existing MEP ports.\n4. Automatically insert elbows, tees or reducers between compatible ports.\n5. Route a pipe or duct between two selected ports.\n6. Validate whether two ports can be connected.\n7. Preserve diameter, rectangular size and system type during routing.\n8. Add ports manually to custom equipment or manufacturer components.\n9. Import IFC/STEP equipment and assign editable MEP ports.\n10. Build future autorouting tools on top of a stable port graph.\n11. Allow external scripts, add-ons and AI-assisted tools to reason about MEP connectivity.\n\n## Minimal first milestone\n\nThis does not need to start as a full MEP autorouter.\n\nA practical first milestone could be:\n\n- define a documented internal MEP port data model\n- expose ports through Python\n- automatically create 2 ports for pipe and duct segments\n- allow manual creation of one `IfcDistributionPort` on a selected object\n- store position, direction and basic size/profile/system information\n- prepare the data for IFC export/import\n- later extend the same model to elbows, tees, reducers, valves, pumps, air terminals and complex equipment\n\n## Why this matters\n\nFor serious BIM/MEP workflows, connection points are as important as visible geometry.\n\nA pipe without ports is only a shape.\nA pipe with ports becomes part of a MEP network graph.\n\nAdding a generic MEP port model/API and a manual `IfcDistributionPort` tool would make BonsaiBIM much more suitable for real MEP modeling, IFC coordination, routing, validation and automation.\n\nMaybe @falken10vdl know is this all implemented ","author":{"url":"https://github.com/Isaina","@type":"Person","name":"Isaina"},"datePublished":"2026-05-20T11:23:56Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8085"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55a416b9-ee81-a31c-79a2-40460ab4ff81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA4A:2D88C9:3AF0C:50A78:6B04AE1B |
| html-safe-nonce | 0fb401d3a1ce5ace7556b25daae9f8cd5b7114a520644699d20e63f65528abb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTRBOjJEODhDOTozQUYwQzo1MEE3ODo2QjA0QUUxQiIsInZpc2l0b3JfaWQiOiI2ODM2ODM4MjE2MTI2MjEzNjYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7cfd34258166a114b42a894be20fb963a0678f9919ddf5c1a73d5e6b00695722 |
| hovercard-subject-tag | issue:4485914414 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8085/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e09f3e94588c42355da98ef8feb35b835a68de4291b5e66b0a1930a09c639e53/IfcOpenShell/IfcOpenShell/issues/8085 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e09f3e94588c42355da98ef8feb35b835a68de4291b5e66b0a1930a09c639e53/IfcOpenShell/IfcOpenShell/issues/8085 |
| og:image:alt | Feature Description Feature request: Generic MEP port model and manual IfcDistributionPort tool for BonsaiBIM Summary Please consider adding a documented, generic and scriptable MEP port model/API ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Isaina |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width