GeometryGym / GeometryGymIFC

C# classes to generate and parse OpenBIM IFC files
Other
270 stars 97 forks source link

IFC Structural Analysis View #8

Open dawiddyrcz opened 6 years ago

dawiddyrcz commented 6 years ago

Hello, How can I read IFC Data from IFC Structural Analysis View (This is the type of ifc which is implemented in Structural Analysis Programs)?

Reagards, dyrdaw

I-Sokolov commented 6 years ago

The same way like other IFC files. Reading particular MVD has no specific. The difference may be only what data will you have and how will you use it but this is application, not toolkit deal

dawiddyrcz commented 6 years ago

Thank you for the response. I am writting because I have tried read IFC Structural Analysis View from Sofistik and Dlubal and it not works (I am sure that the files are correct). I cannot extract any types. I would like to read beams and its profiles and start / end points. I have IFC from Tekla Structures to compare and it working. What am I doing wrong? Here is my project

IFCReader.zip

I-Sokolov commented 6 years ago

It may be useful if you attach IFC file

dawiddyrcz commented 6 years ago

IFC files are in folder IFCReader\bin\Debug in the IFCReader.zip in the post above

I-Sokolov commented 6 years ago

The are no IfcBeam in the file. You can check in Notepad.

I recall structural view does not include building elements, only structural model

Entity Amount Entities 1083 IfcBuilding 1 IfcBuildingStorey 1 IfcProject 1 IfcSite 1 IfcStructuralAnalysisModel 1 IfcStructuralCurveConnection 379 IfcStructuralCurveMember 376 IfcStructuralLoadGroup 11 IfcStructuralPointAction 83 IfcStructuralPointConnection 229

dawiddyrcz commented 6 years ago

Ok. I understand. I need one more information. I have tried method:

GG.DatabaseIfc db = new GG.DatabaseIfc("IFCFileFromDlubal.ifc"); var project = db.Project; project.Extract().Count; //and it return 0 but it should return 83 project.Extract().Count; //and it return 0 but it should return 376

Probably i dont know how to extract from structural models. Here my updated project. IFCReader.zip

jmirtsch commented 6 years ago

Thanks for reporting this, Structural Analysis Model View isn't commonly supported at this point in time. I've checked the code and made improvements to make this work. I'm refactoring and making some significant changes at the moment so won't commit a new release for a while yet, but I can provide a dll (or the code to change) if you want to implement the fix yourself.

Note, I would suggest finding the structural analysis model first, and then searching within this rather than searching the entire project each time (on a small file this won't make much difference, but on a large one with physical elements it would).