mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:50:02 +00:00
Hardcode context names, since there are unlikely to be many
This commit is contained in:
@@ -85,7 +85,7 @@ class IfcParser():
|
|||||||
return class_name in ['IfcBuilding', 'IfcBuildingStorey', 'IfcSite'] # TODO: unhardcode
|
return class_name in ['IfcBuilding', 'IfcBuildingStorey', 'IfcSite'] # TODO: unhardcode
|
||||||
|
|
||||||
def is_a_context(self, class_name):
|
def is_a_context(self, class_name):
|
||||||
return class_name in ['IfcProject', 'IfcProjectLibrary'] # TODO: unhardcode
|
return class_name in ['IfcProject', 'IfcProjectLibrary']
|
||||||
|
|
||||||
class IfcExporter():
|
class IfcExporter():
|
||||||
def __init__(self, ifc_parser):
|
def __init__(self, ifc_parser):
|
||||||
|
|||||||
Reference in New Issue
Block a user