Skip to content

Commit

Permalink
added type method to PyIfcVariant
Browse files Browse the repository at this point in the history
  • Loading branch information
CEXT-Dan committed Oct 14, 2024
1 parent 307d8a2 commit 2df6e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions PyRxCore/PyBrxIFC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ void makePyIfcVariantWrapper()
.def("setSelect", &PyIfcVariant::setSelect, DS.ARGS({ "val: PyBrxBim.IfcVectorValue" }))
.def("getEnum", &PyIfcVariant::getEnum, DS.ARGS())
.def("setEnum", &PyIfcVariant::setEnum, DS.ARGS({ "val: PyBrxBim.IfcEnumValue" }))
.def("type", &PyIfcVariant::type, DS.ARGS())
.def("className", &PyIfcVariant::className, DS.SARGS()).staticmethod("className")
;
}
Expand Down
1 change: 1 addition & 0 deletions PySamples/PyBrxBim/importTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def onIfcProduct(self, context, entity, isParent, parentEntity):
self.m_onProductCalled = True
print("onIfcProduct")
if entity.isKindOf(Bim.IfcEntityDesc.IfcWindow()):
print(entity.getAttribute("OverallHeight"))
mat = context.getLocalPlacement(entity)
createBoxSolid(100.0, 100.0, 100.0, mat.getTranslation(), 1)
return True
Expand Down

0 comments on commit 2df6e67

Please sign in to comment.