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

building.AddElement(wall) ? #1

Open
theebow opened this issue Feb 23, 2016 · 0 comments
Open

building.AddElement(wall) ? #1

theebow opened this issue Feb 23, 2016 · 0 comments

Comments

@theebow
Copy link

theebow commented Feb 23, 2016

First have to congrats you about this wonderfull API i’m going to use for the next 20 years :)
i have an error (no definition for ifcBuilding.AddElement) on this project
Visual project references have been updated from web nuget pakage
i found an another way :

`
IEnumerable relcsss = mIfcModel.Instances.OfType([ IfcRelContainedInSpatialStructure])();

            IfcRelContainedInSpatialStructure relcss;

            if (relcsss.Count() > 0)
            {
                relcss = relcsss.ElementAt(0);
                relcss.RelatedElements.Add(wall);
            }

IEnumerable relcsss = mIfcModel.Instances.OfType();

            IfcRelContainedInSpatialStructure relcss;

            if (relcsss.Count() > 0)
            {
                relcss = relcsss.ElementAt(0);
                relcss.RelatedElements.Add(wall);
            }

`

prehaps i don't have to update references throught nuget packages ?

Another important question please :
How to reload the view in the DrawingControl3D when the model has been updated
Is it possible without saving model into a new ifc file and then open this new file ?

regards

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