Closed MigVega closed 4 years ago
Are you talking about just the visual representation of a Door (e.g. a Door with a glazed panel)?
Or are you looking at a door as a semantic aggregation of components (e.g. Door A = IfcDoor + doorset + closer etc)
The former is pretty standard but you'd need to consult the specs: https://standards.buildingsmart.org/IFC/RELEASE/IFC4/FINAL/HTML/link/ifcrepresentation.htm
The second sounds like Aggregation/Assemblies - I've not seen it on doors, but you should be able to model it with https://standards.buildingsmart.org/IFC/RELEASE/IFC4/FINAL/HTML/link/ifcrelaggregates.htm or possibly https://standards.buildingsmart.org/IFC/RELEASE/IFC4/FINAL/HTML/link/ifcelementassembly.htm
Couldn't you just attach an IfcMaterialConstituentSet to the Door element?
Thank you @andyward! I am talking about just the visual representation of a Door, so I guess I have to use IfcRepresentation, but I still don't know how could I add such an element with xBIM to my model. I would be grateful if you could provide me with a code example to add a Door e.g. with a glazed panel in an opening previously created in a wall.
Couldn't you just attach an IfcMaterialConstituentSet to the Door element?
Thank you for your answer @LukasMHD, but the metadata of the Door's material is not the only I would like to add, but also the geometry or visual representation.
You should have a look at our example. It shows how to use xBIM to create new data. If you want to have a door consisting of partial components with their own material, geometry and properties you should use aggregation as Andy already said. IfcDoor
wouldn't have any representation in that case but would only point to its components using the relation.
You should have a look at our example. It shows how to use xBIM to create new data. If you want to have a door consisting of partial components with their own material, geometry and properties you should use aggregation as Andy already said.
IfcDoor
wouldn't have any representation in that case but would only point to its components using the relation.
Thanks @martin1cerny, yeah the wall example has been very useful for me to understand how to create SweptSolids, what is useful to create the walls and openings. But I would like to add the rest of the objects in my model, like doors, windows, furniture and so on. How could I add these elements with xBIM? For example, how did you create the model in the homepage of xBIM? The source code of a "HelloHouse" example would be just what I need! Or at least just how to add a door would give me more clues.
This sample model was created using BIM authoring tool and exported to IFC. We didn't create this from code. You will have to dive deep in [IFC documentation] and use xBIM to create all the entities and their relations. xBIM is 100% implementation of the standard so you can use it to create anything defined in IFC standard. It is also a good idea to take some (simple) existing models to study data structures and relations.
Is it possible to create an element that consists of more elements? e.g. a detailed door (a solid result of different operations of extruded solids with different materials). Is it possible to embed all these elements in a single object, or into what is also called a Family? Or could I somehow copy this Family from one model to the other? Is there any way to add it and position it correctly in the new model?