Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow attach/detach db to a IModel connection to allow combine data from two or more files. #7532

Open
khanaffan opened this issue Jan 9, 2025 · 0 comments · May be fixed by #7530
Open
Assignees
Labels
ecdb ECDb and ECSQL related issues
Milestone

Comments

@khanaffan
Copy link
Contributor

khanaffan commented Jan 9, 2025

The main idea here is to attach secondary file to iModel connection e.g. A separate file containing clashes or analysis data. This will allow to use ECSQL to combine data from two or more sources for presentation and reporting purpose.

conn.attachDb("clash.bim", "clashes");
conn.createReader("SELECT p.CodeValue, c.ECInstanceId FROM main.plant.PIPE p JOIN clashes.cl.Clash c ON p.ECInstanceId = c.ElementId ")

conn.detachDb("clashes");

Requested by : Clash Studio App

@khanaffan khanaffan linked a pull request Jan 9, 2025 that will close this issue
@khanaffan khanaffan self-assigned this Jan 9, 2025
@khanaffan khanaffan added the ecdb ECDb and ECSQL related issues label Jan 9, 2025
@khanaffan khanaffan added this to the iTwin.js 5.0 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecdb ECDb and ECSQL related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant