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

IfcElement—inverse attribute #146

Open
BoyChan opened this issue Apr 22, 2019 · 2 comments
Open

IfcElement—inverse attribute #146

BoyChan opened this issue Apr 22, 2019 · 2 comments

Comments

@BoyChan
Copy link

BoyChan commented Apr 22, 2019

I found the IfcElement::setInverseCounterparts() miss the inverse operations.
IfcElement in the IFC4 include the following attributes:
INVERSE
FillsVoids : SET [0:1] OF IfcRelFillsElement FOR RelatedBuildingElement;
ConnectedTo : SET [0:?] OF IfcRelConnectsElements FOR RelatingElement;
IsInterferedByElements : SET [0:?] OF IfcRelInterferesElements FOR RelatedElement;
InterferesElements : SET [0:?] OF IfcRelInterferesElements FOR RelatingElement;
HasProjections : SET [0:?] OF IfcRelProjectsElement FOR RelatingElement;
ReferencedInStructures : SET [0:?] OF IfcRelReferencedInSpatialStructure FOR

@ifcquery
Copy link
Owner

The inverse attributes are linked from the counterparts, where the inverse attribute corresponds to an actual attribute.
For example, IfcRelFillsElement has an attribute that points to IfcElement.
In the method
void IfcRelFillsElement::setInverseCounterparts(...), this inverse link is set.
It can not be set in the class IfcElement, because IfcElement has no direct link to IfcRelFillsElement.
Let me know in case you are missing any inverse links. Or were you just wondering how it is done?

@BoyChan
Copy link
Author

BoyChan commented Apr 26, 2019

Thanks. I may not know about the mechanism

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

2 participants