Пример #1
0
 def test_run(self):
     ifc = ifcopenshell.file()
     element = ifc.createIfcChiller()
     library = ifc.createIfcLibraryReference(
         Identification="http://example.org/digitaltwin#globalid")
     ifc.createIfcRelAssociatesLibrary(RelatedObjects=[element],
                                       RelatingLibrary=library)
     assert subject.get_brick(
         element) == "http://example.org/digitaltwin#globalid"
Пример #2
0
 def test_run_ifc2x3(self):
     ifc = ifcopenshell.file(schema="IFC2X3")
     tool.Ifc.set(ifc)
     element = ifc.createIfcEnergyConversionDevice()
     library = ifc.createIfcLibraryReference(
         ItemReference="http://example.org/digitaltwin#globalid")
     ifc.createIfcRelAssociatesLibrary(RelatedObjects=[element],
                                       RelatingLibrary=library)
     assert subject.get_brick(
         element) == "http://example.org/digitaltwin#globalid"