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

Is there any way I can find the height of each layer/ top coordinates of each layer of the wall? #16

Open
jojobs opened this issue Nov 26, 2018 · 0 comments

Comments

@jojobs
Copy link

jojobs commented Nov 26, 2018

Hi All,

Is there anyway I can find the height of each layer of the wall? Also it there any option to find the top coordinates points of each layer?

Right now the code I am using is as follows:

IfcMaterialLayerSetUsage ifcMaterialLayerSetUsage = (IfcMaterialLayerSetUsage)ifcWall.GetMaterial();

            if (null != ifcMaterialLayerSetUsage)
            {
                IfcMaterialLayerSet layerSet = ifcMaterialLayerSetUsage.ForLayerSet;
                if (null != layerSet)
                {
                    IItemSet<IfcMaterialLayer> lstMaterLayer = layerSet.MaterialLayers;

                    //If three layers, then it is external
                    if (null != lstMaterLayer)
                    {
                        int noOfLayers = lstMaterLayer.Count();
                        if (noOfLayers >= 3)
                        {
                            var externalLayer = lstMaterLayer.First();

///**** doubt List lstPoints = externalLayer.GetTopPoints()????
///**** doubt steelLayerHeight = externalLayer .????

                            externalLayerThickness = externalLayer.LayerThickness;

                            var midLayer = lstMaterLayer.ElementAt(1);
                            cavityThickess = midLayer.LayerThickness;

                            var innerLayer = lstMaterLayer.ElementAt(2);
                            steelThickness = innerLayer.LayerThickness;
                        }
                    }
                }
            }

Best regards,
Jojo

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

1 participant