mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Validate entity is_abstract in ifcopenshell.geom.validate
This commit is contained in:
@@ -104,6 +104,13 @@ def validate(f, logger):
|
||||
logger.set_instance(inst)
|
||||
|
||||
entity = schema.declaration_by_name(inst.is_a())
|
||||
|
||||
if entity.is_abstract():
|
||||
e = "Entity %s is abstract" % entity.name()
|
||||
if hasattr(logger, 'set_instance'):
|
||||
logger.error(e)
|
||||
else:
|
||||
logger.error('In {}\n{}'.format(inst, e))
|
||||
|
||||
for attr, val, is_derived in zip(entity.all_attributes(), inst, entity.derived()):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user