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

What i have to do to obtain the geometry of Walls, columns, slabs, etc? #1

Closed
QuimMoya opened this issue Jun 12, 2015 · 2 comments
Closed

Comments

@QuimMoya
Copy link

Hello, I'm not sure it is the correct place to ask it, if it's not please redirect me:

I'm new in Xbim, and I need to obtain all the geometric data of an object in order to represent it. At the moment i'm using the next code

        if (OpenFile.ShowDialog() != DialogResult.Cancel)
        {
            Wnd.IFCModel.CreateFrom(OpenFile.FileName, "temp.xbim");
            Wnd.IFCModel.Close();
            Wnd.IFCModel.Open("temp.xbim", Xbim.XbimExtensions.XbimDBAccess.ReadWrite);
            var TotalColumns = Wnd.IFCModel.Instances.OfType<Xbim.Ifc2x3.SharedBldgElements.IfcColumn>();
            int num = TotalColumns.Count();
            for (int i = 0; i < num; i++)
            {
                //Now what i have to do to obtain columns, walls, slabs, geometry??
            }
        }

But i'm completely blocked at this point, i have no idea what to do now, i tried it by myself, but after spending many days without result i need help. I need something to began with, at least to obtain the cartesian points and the 3dplacement coordinates.

Thank you in advance.

@andyward
Copy link
Member

I made a little demo app at https://github.com/andyward/XBimDemo which might help. It shows how to parse the model and generate IFC and then work the Geometry Context. I've used the BoundingBoxes to show the bounds rather than the meshes. The XYZ needs converting to World Coordinates. Best to look at XbimWebUI if you want to see how to do this.

image

SteveLockley pushed a commit that referenced this issue Mar 25, 2019
@tulip411
Copy link

tulip411 commented Apr 2, 2019

I made a little demo app at https://github.com/andyward/XBimDemo which might help. It shows how to parse the model and generate IFC and then work the Geometry Context. I've used the BoundingBoxes to show the bounds rather than the meshes. The XYZ needs converting to World Coordinates. Best to look at XbimWebUI if you want to see how to do this.

image


Hi! It seems that the demo you provided is based on the old version of Xbim. I tried to compile but there are still some issues.

Could you please update this demo?

Thank you!
Maggie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants