mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
Rerun express-related codegen
This commit is contained in:
@@ -95,12 +95,12 @@ EXPRESS_ONE_BASED_INDEXING = 1
|
||||
def typeof(inst):
|
||||
if not inst:
|
||||
return express_set([])
|
||||
schema_name = inst.is_a(True).split('.')[0].upper()
|
||||
schema_name = inst.is_a(True).split('.')[0].lower()
|
||||
|
||||
def inner():
|
||||
decl = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema_name).declaration_by_name(inst.is_a())
|
||||
while decl:
|
||||
yield '.'.join((schema_name, decl.name().upper()))
|
||||
yield '.'.join((schema_name, decl.name().lower()))
|
||||
if isinstance(decl, ifcopenshell.ifcopenshell_wrapper.entity):
|
||||
decl = decl.supertype()
|
||||
else:
|
||||
@@ -3592,7 +3592,7 @@ class IfcBoxAlignment_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['top-left', 'top-middle', 'top-right', 'middle-left', 'center', 'middle-right', 'bottom-left', 'bottom-middle', 'bottom-right'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['top-left', 'top-middle', 'top-right', 'middle-left', 'center', 'middle-right', 'bottom-left', 'bottom-middle', 'bottom-right']) is not False
|
||||
|
||||
class IfcCompoundPlaneAngleMeasure_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -3655,7 +3655,7 @@ class IfcFontStyle_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['normal', 'italic', 'oblique'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['normal', 'italic', 'oblique']) is not False
|
||||
|
||||
class IfcFontVariant_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -3664,7 +3664,7 @@ class IfcFontVariant_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['normal', 'small-caps'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['normal', 'small-caps']) is not False
|
||||
|
||||
class IfcFontWeight_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -3673,7 +3673,7 @@ class IfcFontWeight_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['normal', 'small-caps', '100', '200', '300', '400', '500', '600', '700', '800', '900'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['normal', 'small-caps', '100', '200', '300', '400', '500', '600', '700', '800', '900']) is not False
|
||||
|
||||
class IfcHeatingValueMeasure_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -3781,7 +3781,7 @@ class IfcTextAlignment_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['left', 'right', 'center', 'justify'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['left', 'right', 'center', 'justify']) is not False
|
||||
|
||||
class IfcTextDecoration_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -3790,7 +3790,7 @@ class IfcTextDecoration_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['none', 'underline', 'overline', 'line-through', 'blink'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['none', 'underline', 'overline', 'line-through', 'blink']) is not False
|
||||
|
||||
class IfcTextTransformation_WR1:
|
||||
SCOPE = 'type'
|
||||
@@ -3799,7 +3799,7 @@ class IfcTextTransformation_WR1:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['capitalize', 'uppercase', 'lowercase', 'none'])) is not False
|
||||
assert (express_getattr(self, 'lower', INDETERMINATE)() in ['capitalize', 'uppercase', 'lowercase', 'none']) is not False
|
||||
|
||||
class Ifc2DCompositeCurve_WR1:
|
||||
SCOPE = 'entity'
|
||||
@@ -4150,7 +4150,7 @@ class IfcBlobTexture_WR11:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'RasterFormat', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['BMP', 'JPG', 'GIF', 'PNG'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'RasterFormat', INDETERMINATE), 'lower', INDETERMINATE)() in ['BMP', 'JPG', 'GIF', 'PNG']) is not False
|
||||
|
||||
class IfcBoilerType_WR1:
|
||||
SCOPE = 'entity'
|
||||
@@ -4749,7 +4749,7 @@ class IfcDimensionCalloutRelationship_WR11:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['primary', 'secondary'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['primary', 'secondary']) is not False
|
||||
|
||||
class IfcDimensionCalloutRelationship_WR12:
|
||||
SCOPE = 'entity'
|
||||
@@ -4832,7 +4832,7 @@ class IfcDimensionPair_WR11:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['chained', 'parallel'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['chained', 'parallel']) is not False
|
||||
|
||||
class IfcDimensionPair_WR12:
|
||||
SCOPE = 'entity'
|
||||
@@ -4947,7 +4947,7 @@ class IfcDraughtingPreDefinedColour_WR31:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['black', 'red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'white', 'by layer'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['black', 'red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'white', 'by layer']) is not False
|
||||
|
||||
class IfcDraughtingPreDefinedCurveFont_WR31:
|
||||
SCOPE = 'entity'
|
||||
@@ -4956,7 +4956,7 @@ class IfcDraughtingPreDefinedCurveFont_WR31:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['continuous', 'chain', 'chain double dash', 'dashed', 'dotted', 'by layer'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['continuous', 'chain', 'chain double dash', 'dashed', 'dotted', 'by layer']) is not False
|
||||
|
||||
class IfcDraughtingPreDefinedTextFont_WR31:
|
||||
SCOPE = 'entity'
|
||||
@@ -4965,7 +4965,7 @@ class IfcDraughtingPreDefinedTextFont_WR31:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['ISO 3098-1 font A', 'ISO 3098-1 font B'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['ISO 3098-1 font A', 'ISO 3098-1 font B']) is not False
|
||||
|
||||
class IfcDuctFittingType_WR2:
|
||||
SCOPE = 'entity'
|
||||
@@ -5795,7 +5795,7 @@ class IfcPreDefinedDimensionSymbol_WR31:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['arc length', 'conical taper', 'counterbore', 'countersink', 'depth', 'diameter', 'plus minus', 'radius', 'slope', 'spherical diameter', 'spherical radius', 'square'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['arc length', 'conical taper', 'counterbore', 'countersink', 'depth', 'diameter', 'plus minus', 'radius', 'slope', 'spherical diameter', 'spherical radius', 'square']) is not False
|
||||
|
||||
class IfcPreDefinedPointMarkerSymbol_WR31:
|
||||
SCOPE = 'entity'
|
||||
@@ -5804,7 +5804,7 @@ class IfcPreDefinedPointMarkerSymbol_WR31:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['asterisk', 'circle', 'dot', 'plus', 'square', 'triangle', 'x'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['asterisk', 'circle', 'dot', 'plus', 'square', 'triangle', 'x']) is not False
|
||||
|
||||
class IfcPreDefinedTerminatorSymbol_WR31:
|
||||
SCOPE = 'entity'
|
||||
@@ -5813,7 +5813,7 @@ class IfcPreDefinedTerminatorSymbol_WR31:
|
||||
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['blanked arrow', 'blanked box', 'blanked dot', 'dimension origin', 'filled arrow', 'filled box', 'filled dot', 'integral symbol', 'open arrow', 'slash', 'unfilled arrow'])) is not False
|
||||
assert (express_getattr(express_getattr(self, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['blanked arrow', 'blanked box', 'blanked dot', 'dimension origin', 'filled arrow', 'filled box', 'filled dot', 'integral symbol', 'open arrow', 'slash', 'unfilled arrow']) is not False
|
||||
|
||||
class IfcProcedure_WR1:
|
||||
SCOPE = 'entity'
|
||||
@@ -6799,7 +6799,7 @@ class IfcStructuredDimensionCallout_WR31:
|
||||
@staticmethod
|
||||
def __call__(self):
|
||||
contents = express_getattr(self, 'Contents', INDETERMINATE)
|
||||
assert (sizeof([ato for ato in [con for con in express_getattr(self, 'contents', INDETERMINATE) if 'IFC2X3.IFCANNOTATIONTEXTOCCURRENCE' in typeof(con)] if not express_getattr(express_getattr(ato, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in map(express_getattr(str, 'lower', INDETERMINATE), ['dimension value', 'tolerance value', 'unit text', 'prefix text', 'suffix text'])]) == 0) is not False
|
||||
assert (sizeof([ato for ato in [con for con in express_getattr(self, 'contents', INDETERMINATE) if 'IFC2X3.IFCANNOTATIONTEXTOCCURRENCE' in typeof(con)] if not express_getattr(express_getattr(ato, 'Name', INDETERMINATE), 'lower', INDETERMINATE)() in ['dimension value', 'tolerance value', 'unit text', 'prefix text', 'suffix text']]) == 0) is not False
|
||||
|
||||
class IfcStyledItem_WR11:
|
||||
SCOPE = 'entity'
|
||||
|
||||
Reference in New Issue
Block a user