mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Ignore populate Brick attributes if active entity is a brick entity
This commit is contained in:
@@ -57,8 +57,11 @@ class BrickschemaData:
|
|||||||
brick = props.bricks[props.active_brick_index]
|
brick = props.bricks[props.active_brick_index]
|
||||||
except:
|
except:
|
||||||
return []
|
return []
|
||||||
results = []
|
|
||||||
uri = brick.uri
|
uri = brick.uri
|
||||||
|
namespace = str(uri.split("#")[0])
|
||||||
|
if namespace == "https://brickschema.org/schema/Brick":
|
||||||
|
return []
|
||||||
|
results = []
|
||||||
query = BrickStore.graph.query(
|
query = BrickStore.graph.query(
|
||||||
"""
|
"""
|
||||||
PREFIX brick: <https://brickschema.org/schema/Brick#>
|
PREFIX brick: <https://brickschema.org/schema/Brick#>
|
||||||
|
|||||||
Reference in New Issue
Block a user