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

Object doesn't appear to have PropertySets #14

Open
jr-accurate opened this issue Jan 30, 2019 · 0 comments
Open

Object doesn't appear to have PropertySets #14

jr-accurate opened this issue Jan 30, 2019 · 0 comments

Comments

@jr-accurate
Copy link

jr-accurate commented Jan 30, 2019

Hi,
I'm having issues reading PropertySets of some IfcProduct. In my BIM viewer it seems like there are PropertySets defined, however the IfcProduct.getIsDefinedBy()-relation seems to be empty.
Here's roughly what I'm doing:

// get IfcProducts of a certain storey
for (IfcRelContainedInSpatialStructure containsRel : storey.getContainsElements()) {
            for (IfcProduct ifcProduct : containsRel.getRelatedElements()) {
                        // for the product, get it's PSets
                        for(IfcRelDefinesByProperties rel : ifcProduct.getIsDefinedBy()){
                                    IfcPropertySetDefinitionSelect set  = rel.getRelatingPropertyDefinition();
                        }
            }
}

I'm trying to read this file: http://www.ifcwiki.org/index.php?title=File:AC20-Institute-Var-2.ifc

Basically I want to figure out if a door is external. Now I realize that Pset_DoorCommon isn't set, but some custom ArchiCad-specific sets seem to be in the file, so I think I should be finding something.

Any idea on what I'm doing wrong?

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