mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
append_asset - allow using same name for different ifcpresentationstyle types
Since they are not used interchangeably typically.
This commit is contained in:
@@ -229,7 +229,9 @@ class Usecase:
|
||||
return next((e for e in self.file.by_type("IfcProfileDef") if e.ProfileName == profile_name), None)
|
||||
elif element.is_a("IfcPresentationStyle"):
|
||||
name = element.Name
|
||||
return next((e for e in self.file.by_type("IfcPresentationStyle") if e.Name == name), None)
|
||||
if name is None:
|
||||
return None
|
||||
return next((e for e in self.file.by_type(element.is_a()) if e.Name == name), None)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user