RyugaRyuzaki / DotBimConvert

7 stars 1 forks source link

Dot bim to ifc #1

Open Isaina opened 4 months ago

Isaina commented 4 months ago

Is possible to convert .bim to ifc just maybe wall, doors, openings,

best regards

RyugaRyuzaki commented 4 months ago

yes, i think is possible . But i'm limited knowledge native ifc

Isaina commented 4 months ago

Here is python version https://github.com/Moult/dotbim-ifc

RyugaRyuzaki commented 4 months ago

no, i means this https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/annex_e/basic-geometric-shape/extruded-solid.html. I'm limited

Isaina commented 4 months ago

https://academy.ifcopenshell.org/posts/creating-a-simple-wall-with-property-set-and-quantity-information/

RyugaRyuzaki commented 4 months ago

Well, let me try with typescript, not python. But you can try with python

Isaina commented 4 months ago

https://github.com/IfcOpenShell/wasm-preview/tree/master

https://www.youtube.com/watch?v=MWJqGH7TOY8

RyugaRyuzaki commented 4 months ago

https://github.com/IfcOpenShell/wasm-preview/tree/master

https://www.youtube.com/watch?v=MWJqGH7TOY8

yes, i tried it, but very slow to load wasm

Isaina commented 4 months ago

For me problems is that I don’t know dotbim , basically in dot bim there is geometry but how I know that this is a wall or windows , when converting from ifc if there is a possibility to add meta data in description that this is ifcwall for egg would be helpfull imho

RyugaRyuzaki commented 4 months ago

For me problems is that I don’t know dotbim , basically in dot bim there is geometry but how I know that this is a wall or windows , when converting from ifc there if there is a possibility to add meta data in description that this is ifcwall for egg would be helpfull imho

Here, https://github.com/RyugaRyuzaki/DotBimConvert/blob/main/Ifc/output/01/01-IfcWallStandardCase.bim#L3770C16-L3780 .The metadata

Isaina commented 4 months ago

https://github.com/andrewisen/bim-whale/tree/main

Isaina commented 4 months ago

Is maybe possible when converting put all ifc file in dotbim meta data , and have all in dotbim when converting back just remove dotbim part and write ifc , main problem is when dotbim geometry is changed but this can be checked when converting like wall dimension, windows dimensions, etc

RyugaRyuzaki commented 4 months ago

Is maybe possible when converting put all ifc file in dotbim meta data , and have all in dotbim when converting back just remove dotbim part and write ifc , main problem is when dotbim geometry is changed but this can be checked when converting like wall dimension, windows dimensions, etc

Well, this is big issue, may be we can talk with Author to change it to version 2.Becuase i told him that .bim can use for sql database. May be we can discuss with author, what you think?

Isaina commented 4 months ago

For me this would be the easiest way to have ifc <-> .bim interoperability , to write into .bim and ifc file and when converting back check geometry , files would be larger but would be easy to handle.

RyugaRyuzaki commented 4 months ago

For me this would be the easiest way to have ifc <-> .bim interoperability , to write into .bim and ifc file and when converting back check geometry , files would be larger but would be easy to handle.

Yes, you can tell the Author

Isaina commented 4 months ago

Basically I search for one dotbim to ifc converter , because on iPad Pro and iPhone pro there is a LiDAR room plan api, which gives usdz export, there is a tool mesh2mesh which can convert usdz to dotbim, and searching way to easy convert dotbim to ifc

paireks commented 4 months ago

.bim -> .ifc even though it exists (https://github.com/Moult/dotbim-ifc <- it was already mentioned above :)) it will never be perfect. It's because:

That's why .bim -> .ifc mentioned can't create high-quality IFC file. It can satisfy some people, who use IFC as a 3d exchange file format, and don't really care about the schema, but then: why to use IFC? :)

Isaina commented 4 months ago

Here is ifc ts help https://github.com/hypar-io/IFC-gen

Isaina commented 4 months ago

here is clay work in progress so there is a easy way to generate ifc file without knowing ifc

https://github.com/IFCjs/clay/commit/bcd1c227cf2a62eb4a460372285f7483a9de4828

Generally my idea is to go thru .bim file if is there is a section wall read dimension of stl object and convert to ifcwall, also for doors and all known elements if one element is not recognize leave it in stl format and put into ifc as is IFC4 version support this. But when clay would be ready for now it support only walls