|
|
@@ -44,10 +44,10 @@ unknown = 'UNKNOWN'
|
|
|
|
def usedin(inst, ref_name):
|
|
|
|
def usedin(inst, ref_name):
|
|
|
|
if inst is None:
|
|
|
|
if inst is None:
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|
(_, __, attr) = ref_name.split('.')
|
|
|
|
_, __, attr = ref_name.split('.')
|
|
|
|
|
|
|
|
|
|
|
|
def filter():
|
|
|
|
def filter():
|
|
|
|
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
|
|
|
|
for ref, attr_idx in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
|
|
|
|
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
|
|
|
|
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
|
|
|
|
yield ref
|
|
|
|
yield ref
|
|
|
|
return list(filter())
|
|
|
|
return list(filter())
|
|
|
@@ -246,7 +246,7 @@ notdefined = IfcAlarmTypeEnum.NOTDEFINED
|
|
|
|
IfcAlignmentCantSegmentTypeEnum = enum_namespace()
|
|
|
|
IfcAlignmentCantSegmentTypeEnum = enum_namespace()
|
|
|
|
constantcant = IfcAlignmentCantSegmentTypeEnum.CONSTANTCANT
|
|
|
|
constantcant = IfcAlignmentCantSegmentTypeEnum.CONSTANTCANT
|
|
|
|
lineartransition = IfcAlignmentCantSegmentTypeEnum.LINEARTRANSITION
|
|
|
|
lineartransition = IfcAlignmentCantSegmentTypeEnum.LINEARTRANSITION
|
|
|
|
helmertcurve = IfcAlignmentCantSegmentTypeEnum.HELMERTCURVE
|
|
|
|
biquadraticparabola = IfcAlignmentCantSegmentTypeEnum.BIQUADRATICPARABOLA
|
|
|
|
blosscurve = IfcAlignmentCantSegmentTypeEnum.BLOSSCURVE
|
|
|
|
blosscurve = IfcAlignmentCantSegmentTypeEnum.BLOSSCURVE
|
|
|
|
cosinecurve = IfcAlignmentCantSegmentTypeEnum.COSINECURVE
|
|
|
|
cosinecurve = IfcAlignmentCantSegmentTypeEnum.COSINECURVE
|
|
|
|
sinecurve = IfcAlignmentCantSegmentTypeEnum.SINECURVE
|
|
|
|
sinecurve = IfcAlignmentCantSegmentTypeEnum.SINECURVE
|
|
|
@@ -256,7 +256,7 @@ line = IfcAlignmentHorizontalSegmentTypeEnum.LINE
|
|
|
|
circulararc = IfcAlignmentHorizontalSegmentTypeEnum.CIRCULARARC
|
|
|
|
circulararc = IfcAlignmentHorizontalSegmentTypeEnum.CIRCULARARC
|
|
|
|
clothoid = IfcAlignmentHorizontalSegmentTypeEnum.CLOTHOID
|
|
|
|
clothoid = IfcAlignmentHorizontalSegmentTypeEnum.CLOTHOID
|
|
|
|
cubic = IfcAlignmentHorizontalSegmentTypeEnum.CUBIC
|
|
|
|
cubic = IfcAlignmentHorizontalSegmentTypeEnum.CUBIC
|
|
|
|
helmertcurve = IfcAlignmentHorizontalSegmentTypeEnum.HELMERTCURVE
|
|
|
|
biquadraticparabola = IfcAlignmentHorizontalSegmentTypeEnum.BIQUADRATICPARABOLA
|
|
|
|
blosscurve = IfcAlignmentHorizontalSegmentTypeEnum.BLOSSCURVE
|
|
|
|
blosscurve = IfcAlignmentHorizontalSegmentTypeEnum.BLOSSCURVE
|
|
|
|
cubicspiral = IfcAlignmentHorizontalSegmentTypeEnum.CUBICSPIRAL
|
|
|
|
cubicspiral = IfcAlignmentHorizontalSegmentTypeEnum.CUBICSPIRAL
|
|
|
|
cosinecurve = IfcAlignmentHorizontalSegmentTypeEnum.COSINECURVE
|
|
|
|
cosinecurve = IfcAlignmentHorizontalSegmentTypeEnum.COSINECURVE
|
|
|
@@ -802,9 +802,9 @@ soundabsorption = IfcDiscreteAccessoryTypeEnum.SOUNDABSORPTION
|
|
|
|
pointmachinemountingdevice = IfcDiscreteAccessoryTypeEnum.POINTMACHINEMOUNTINGDEVICE
|
|
|
|
pointmachinemountingdevice = IfcDiscreteAccessoryTypeEnum.POINTMACHINEMOUNTINGDEVICE
|
|
|
|
point_machine_locking_device = IfcDiscreteAccessoryTypeEnum.POINT_MACHINE_LOCKING_DEVICE
|
|
|
|
point_machine_locking_device = IfcDiscreteAccessoryTypeEnum.POINT_MACHINE_LOCKING_DEVICE
|
|
|
|
rail_mechanical_equipment = IfcDiscreteAccessoryTypeEnum.RAIL_MECHANICAL_EQUIPMENT
|
|
|
|
rail_mechanical_equipment = IfcDiscreteAccessoryTypeEnum.RAIL_MECHANICAL_EQUIPMENT
|
|
|
|
birdprotection = IfcDiscreteAccessoryTypeEnum.BIRDPROTECTION
|
|
|
|
|
|
|
|
userdefined = IfcDiscreteAccessoryTypeEnum.USERDEFINED
|
|
|
|
userdefined = IfcDiscreteAccessoryTypeEnum.USERDEFINED
|
|
|
|
notdefined = IfcDiscreteAccessoryTypeEnum.NOTDEFINED
|
|
|
|
notdefined = IfcDiscreteAccessoryTypeEnum.NOTDEFINED
|
|
|
|
|
|
|
|
birdprotection = IfcDiscreteAccessoryTypeEnum.BIRDPROTECTION
|
|
|
|
IfcDistributionBoardTypeEnum = enum_namespace()
|
|
|
|
IfcDistributionBoardTypeEnum = enum_namespace()
|
|
|
|
switchboard = IfcDistributionBoardTypeEnum.SWITCHBOARD
|
|
|
|
switchboard = IfcDistributionBoardTypeEnum.SWITCHBOARD
|
|
|
|
consumerunit = IfcDistributionBoardTypeEnum.CONSUMERUNIT
|
|
|
|
consumerunit = IfcDistributionBoardTypeEnum.CONSUMERUNIT
|
|
|
@@ -1418,7 +1418,7 @@ logicalnotor = IfcLogicalOperatorEnum.LOGICALNOTOR
|
|
|
|
IfcMarineFacilityTypeEnum = enum_namespace()
|
|
|
|
IfcMarineFacilityTypeEnum = enum_namespace()
|
|
|
|
canal = IfcMarineFacilityTypeEnum.CANAL
|
|
|
|
canal = IfcMarineFacilityTypeEnum.CANAL
|
|
|
|
waterwayshiplift = IfcMarineFacilityTypeEnum.WATERWAYSHIPLIFT
|
|
|
|
waterwayshiplift = IfcMarineFacilityTypeEnum.WATERWAYSHIPLIFT
|
|
|
|
revetment = IfcMarineFacilityTypeEnum.REVETMENT
|
|
|
|
embankment = IfcMarineFacilityTypeEnum.EMBANKMENT
|
|
|
|
launchrecovery = IfcMarineFacilityTypeEnum.LAUNCHRECOVERY
|
|
|
|
launchrecovery = IfcMarineFacilityTypeEnum.LAUNCHRECOVERY
|
|
|
|
marinedefence = IfcMarineFacilityTypeEnum.MARINEDEFENCE
|
|
|
|
marinedefence = IfcMarineFacilityTypeEnum.MARINEDEFENCE
|
|
|
|
hydrolift = IfcMarineFacilityTypeEnum.HYDROLIFT
|
|
|
|
hydrolift = IfcMarineFacilityTypeEnum.HYDROLIFT
|
|
|
@@ -1587,11 +1587,6 @@ dataoutlet = IfcOutletTypeEnum.DATAOUTLET
|
|
|
|
telephoneoutlet = IfcOutletTypeEnum.TELEPHONEOUTLET
|
|
|
|
telephoneoutlet = IfcOutletTypeEnum.TELEPHONEOUTLET
|
|
|
|
userdefined = IfcOutletTypeEnum.USERDEFINED
|
|
|
|
userdefined = IfcOutletTypeEnum.USERDEFINED
|
|
|
|
notdefined = IfcOutletTypeEnum.NOTDEFINED
|
|
|
|
notdefined = IfcOutletTypeEnum.NOTDEFINED
|
|
|
|
IfcPavementTypeEnum = enum_namespace()
|
|
|
|
|
|
|
|
flexible = IfcPavementTypeEnum.FLEXIBLE
|
|
|
|
|
|
|
|
rigid = IfcPavementTypeEnum.RIGID
|
|
|
|
|
|
|
|
userdefined = IfcPavementTypeEnum.USERDEFINED
|
|
|
|
|
|
|
|
notdefined = IfcPavementTypeEnum.NOTDEFINED
|
|
|
|
|
|
|
|
IfcPerformanceHistoryTypeEnum = enum_namespace()
|
|
|
|
IfcPerformanceHistoryTypeEnum = enum_namespace()
|
|
|
|
userdefined = IfcPerformanceHistoryTypeEnum.USERDEFINED
|
|
|
|
userdefined = IfcPerformanceHistoryTypeEnum.USERDEFINED
|
|
|
|
notdefined = IfcPerformanceHistoryTypeEnum.NOTDEFINED
|
|
|
|
notdefined = IfcPerformanceHistoryTypeEnum.NOTDEFINED
|
|
|
@@ -2073,7 +2068,6 @@ parking = IfcSpaceTypeEnum.PARKING
|
|
|
|
gfa = IfcSpaceTypeEnum.GFA
|
|
|
|
gfa = IfcSpaceTypeEnum.GFA
|
|
|
|
internal = IfcSpaceTypeEnum.INTERNAL
|
|
|
|
internal = IfcSpaceTypeEnum.INTERNAL
|
|
|
|
external = IfcSpaceTypeEnum.EXTERNAL
|
|
|
|
external = IfcSpaceTypeEnum.EXTERNAL
|
|
|
|
berth = IfcSpaceTypeEnum.BERTH
|
|
|
|
|
|
|
|
userdefined = IfcSpaceTypeEnum.USERDEFINED
|
|
|
|
userdefined = IfcSpaceTypeEnum.USERDEFINED
|
|
|
|
notdefined = IfcSpaceTypeEnum.NOTDEFINED
|
|
|
|
notdefined = IfcSpaceTypeEnum.NOTDEFINED
|
|
|
|
IfcSpatialZoneTypeEnum = enum_namespace()
|
|
|
|
IfcSpatialZoneTypeEnum = enum_namespace()
|
|
|
@@ -3126,9 +3120,6 @@ def IfcDirection(*args, **kwargs):
|
|
|
|
def IfcDirectrixCurveSweptAreaSolid(*args, **kwargs):
|
|
|
|
def IfcDirectrixCurveSweptAreaSolid(*args, **kwargs):
|
|
|
|
return ifcopenshell.create_entity('IfcDirectrixCurveSweptAreaSolid', 'IFC4X3_RC3', *args, **kwargs)
|
|
|
|
return ifcopenshell.create_entity('IfcDirectrixCurveSweptAreaSolid', 'IFC4X3_RC3', *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
def IfcDirectrixDerivedReferenceSweptAreaSolid(*args, **kwargs):
|
|
|
|
|
|
|
|
return ifcopenshell.create_entity('IfcDirectrixDerivedReferenceSweptAreaSolid', 'IFC4X3_RC3', *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def IfcDirectrixDistanceSweptAreaSolid(*args, **kwargs):
|
|
|
|
def IfcDirectrixDistanceSweptAreaSolid(*args, **kwargs):
|
|
|
|
return ifcopenshell.create_entity('IfcDirectrixDistanceSweptAreaSolid', 'IFC4X3_RC3', *args, **kwargs)
|
|
|
|
return ifcopenshell.create_entity('IfcDirectrixDistanceSweptAreaSolid', 'IFC4X3_RC3', *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
@@ -8276,7 +8267,7 @@ class IfcFacilityPart_CorrectPredefinedType:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
assert ((predefinedtype != express_getattr(IfcBridgePartTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype != express_getattr(IfcRailwayPartTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype != express_getattr(IfcRoadPartTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype != express_getattr(IfcMarinePartTypeEnum, 'USERDEFINED', INDETERMINATE)) or (predefinedtype != express_getattr(IfcFacilityPartCommonTypeEnum, 'USERDEFINED', INDETERMINATE))) or ((predefinedtype == express_getattr(IfcBridgePartTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcRailwayPartTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcRoadPartTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype == express_getattr(IfcMarinePartTypeEnum, 'USERDEFINED', INDETERMINATE)) or (predefinedtype == express_getattr(IfcFacilityPartCommonTypeEnum, 'USERDEFINED', INDETERMINATE))) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
assert (not exists(predefinedtype) or (predefinedtype != express_getattr(IfcBridgePartTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcRailwayPartTypeEnum, 'USERDEFINED', INDETERMINATE) and (predefinedtype != express_getattr(IfcRoadPartTypeEnum, 'USERDEFINED', INDETERMINATE)) and (predefinedtype != express_getattr(IfcMarinePartTypeEnum, 'USERDEFINED', INDETERMINATE)) and (predefinedtype != express_getattr(IfcFacilityPartCommonTypeEnum, 'USERDEFINED', INDETERMINATE))) or ((predefinedtype == express_getattr(IfcBridgePartTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcRailwayPartTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcRoadPartTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype == express_getattr(IfcMarinePartTypeEnum, 'USERDEFINED', INDETERMINATE)) or (predefinedtype == express_getattr(IfcFacilityPartCommonTypeEnum, 'USERDEFINED', INDETERMINATE))) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcFan_CorrectPredefinedType:
|
|
|
|
class IfcFan_CorrectPredefinedType:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
@@ -8834,7 +8825,7 @@ class IfcImpactProtectionDevice_CorrectPredefinedType:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
assert (not exists(predefinedtype) or (predefinedtype != express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype != express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype != express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) or ((predefinedtype == express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
assert (not exists(predefinedtype) or (predefinedtype != express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) and (predefinedtype != express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE))) or ((predefinedtype == express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcImpactProtectionDevice_CorrectTypeAssigned:
|
|
|
|
class IfcImpactProtectionDevice_CorrectTypeAssigned:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
@@ -8854,7 +8845,7 @@ class IfcImpactProtectionDeviceType_CorrectPredefinedType:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
assert ((predefinedtype != express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype != express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype != express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) or ((predefinedtype == express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
assert (predefinedtype != express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) and (predefinedtype != express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) or ((predefinedtype == express_getattr(IfcImpactProtectionDeviceTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationDamperTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcVibrationIsolatorTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcIndexedPolyCurve_Consecutive:
|
|
|
|
class IfcIndexedPolyCurve_Consecutive:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
@@ -9523,36 +9514,6 @@ class IfcPath_IsContinuous:
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
assert IfcPathHeadToTail(self) is not False
|
|
|
|
assert IfcPathHeadToTail(self) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPavement_CorrectPredefinedType:
|
|
|
|
|
|
|
|
SCOPE = 'entity'
|
|
|
|
|
|
|
|
TYPE_NAME = 'IfcPavement'
|
|
|
|
|
|
|
|
RULE_NAME = 'CorrectPredefinedType'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def __call__(self):
|
|
|
|
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
|
|
|
|
assert (not exists(predefinedtype) or predefinedtype != express_getattr(IfcPavementTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype == express_getattr(IfcPavementTypeEnum, 'USERDEFINED', INDETERMINATE) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPavement_CorrectTypeAssigned:
|
|
|
|
|
|
|
|
SCOPE = 'entity'
|
|
|
|
|
|
|
|
TYPE_NAME = 'IfcPavement'
|
|
|
|
|
|
|
|
RULE_NAME = 'CorrectTypeAssigned'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def __call__(self):
|
|
|
|
|
|
|
|
istypedby = express_getattr(self, 'IsTypedBy', INDETERMINATE)
|
|
|
|
|
|
|
|
assert (sizeof(istypedby) == 0 or 'ifc4x3_rc3.ifcpavementtype' in typeof(express_getattr(express_getitem(express_getattr(self, 'IsTypedBy', INDETERMINATE), 1 - EXPRESS_ONE_BASED_INDEXING, INDETERMINATE), 'RelatingType', INDETERMINATE))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPavementType_CorrectPredefinedType:
|
|
|
|
|
|
|
|
SCOPE = 'entity'
|
|
|
|
|
|
|
|
TYPE_NAME = 'IfcPavementType'
|
|
|
|
|
|
|
|
RULE_NAME = 'CorrectPredefinedType'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def __call__(self):
|
|
|
|
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
|
|
|
|
assert (predefinedtype != express_getattr(IfcPavementTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype == express_getattr(IfcPavementTypeEnum, 'USERDEFINED', INDETERMINATE) and exists(express_getattr(self, 'ElementType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPcurve_DimIs2D:
|
|
|
|
class IfcPcurve_DimIs2D:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
|
TYPE_NAME = 'IfcPcurve'
|
|
|
|
TYPE_NAME = 'IfcPcurve'
|
|
|
@@ -9844,29 +9805,6 @@ class IfcPolyline_SameDim:
|
|
|
|
points = express_getattr(self, 'Points', INDETERMINATE)
|
|
|
|
points = express_getattr(self, 'Points', INDETERMINATE)
|
|
|
|
assert (sizeof([temp for temp in points if express_getattr(temp, 'Dim', INDETERMINATE) != express_getattr(express_getitem(points, 1 - EXPRESS_ONE_BASED_INDEXING, INDETERMINATE), 'Dim', INDETERMINATE)]) == 0) is not False
|
|
|
|
assert (sizeof([temp for temp in points if express_getattr(temp, 'Dim', INDETERMINATE) != express_getattr(express_getitem(points, 1 - EXPRESS_ONE_BASED_INDEXING, INDETERMINATE), 'Dim', INDETERMINATE)]) == 0) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPolynomialCurve_ValidCoefficients:
|
|
|
|
|
|
|
|
SCOPE = 'entity'
|
|
|
|
|
|
|
|
TYPE_NAME = 'IfcPolynomialCurve'
|
|
|
|
|
|
|
|
RULE_NAME = 'ValidCoefficients'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def __call__(self):
|
|
|
|
|
|
|
|
coefficientsx = express_getattr(self, 'CoefficientsX', INDETERMINATE)
|
|
|
|
|
|
|
|
coefficientsy = express_getattr(self, 'CoefficientsY', INDETERMINATE)
|
|
|
|
|
|
|
|
coefficientsz = express_getattr(self, 'CoefficientsZ', INDETERMINATE)
|
|
|
|
|
|
|
|
assert (exists(coefficientsx) and exists(coefficientsy) or (exists(coefficientsx) and exists(coefficientsz)) or (exists(coefficientsy) and exists(coefficientsz)) or (exists(coefficientsx) and exists(coefficientsy) and exists(coefficientsz))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPolynomialCurve_CorrectPositionDim:
|
|
|
|
|
|
|
|
SCOPE = 'entity'
|
|
|
|
|
|
|
|
TYPE_NAME = 'IfcPolynomialCurve'
|
|
|
|
|
|
|
|
RULE_NAME = 'CorrectPositionDim'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
|
|
|
def __call__(self):
|
|
|
|
|
|
|
|
position = express_getattr(self, 'Position', INDETERMINATE)
|
|
|
|
|
|
|
|
coefficientsz = express_getattr(self, 'CoefficientsZ', INDETERMINATE)
|
|
|
|
|
|
|
|
assert (express_getattr(position, 'Dim', INDETERMINATE) == 2 and (not exists(coefficientsz)) or express_getattr(position, 'Dim', INDETERMINATE) == 3) is not False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IfcPositioningElement_HasPlacement:
|
|
|
|
class IfcPositioningElement_HasPlacement:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
|
TYPE_NAME = 'IfcPositioningElement'
|
|
|
|
TYPE_NAME = 'IfcPositioningElement'
|
|
|
@@ -11154,7 +11092,7 @@ class IfcSectionedSolidHorizontal_NoLongitudinalOffsets:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
crosssectionpositions = express_getattr(self, 'CrossSectionPositions', INDETERMINATE)
|
|
|
|
crosssectionpositions = express_getattr(self, 'CrossSectionPositions', INDETERMINATE)
|
|
|
|
assert (sizeof([temp for temp in crosssectionpositions if exists(express_getattr(express_getattr(temp, 'Location', INDETERMINATE), 'OffsetLongitudinal', INDETERMINATE))]) == 0) is not False
|
|
|
|
assert (sizeof([temp for temp in crosssectionpositions if exists(express_getattr(temp, 'OffsetLongitudinal', INDETERMINATE))]) == 0) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcSectionedSpine_CorrespondingSectionPositions:
|
|
|
|
class IfcSectionedSpine_CorrespondingSectionPositions:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
@@ -12514,7 +12452,7 @@ class IfcTransportElement_CorrectPredefinedType:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
assert (not exists(predefinedtype) or (predefinedtype != express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE)) or ((predefinedtype == express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ElementType', INDETERMINATE)))) is not False
|
|
|
|
assert (not exists(predefinedtype) or (predefinedtype != express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE)) or ((predefinedtype == express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ObjectType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
class IfcTransportElement_CorrectTypeAssigned:
|
|
|
|
class IfcTransportElement_CorrectTypeAssigned:
|
|
|
|
SCOPE = 'entity'
|
|
|
|
SCOPE = 'entity'
|
|
|
@@ -12534,7 +12472,7 @@ class IfcTransportElementType_CorrectPredefinedType:
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def __call__(self):
|
|
|
|
def __call__(self):
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
predefinedtype = express_getattr(self, 'PredefinedType', INDETERMINATE)
|
|
|
|
assert (predefinedtype != express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype == express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) or (predefinedtype == express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE) and exists(express_getattr(self, 'ElementType', INDETERMINATE))))) is not False
|
|
|
|
assert (predefinedtype != express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) and predefinedtype != express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE) or ((predefinedtype == express_getattr(IfcTransportElementFixedTypeEnum, 'USERDEFINED', INDETERMINATE) or predefinedtype == express_getattr(IfcTransportElementNonFixedTypeEnum, 'USERDEFINED', INDETERMINATE)) and exists(express_getattr(self, 'ElementType', INDETERMINATE)))) is not False
|
|
|
|
|
|
|
|
|
|
|
|
def calc_IfcTriangulatedFaceSet_NumberOfTriangles(self):
|
|
|
|
def calc_IfcTriangulatedFaceSet_NumberOfTriangles(self):
|
|
|
|
coordindex = express_getattr(self, 'CoordIndex', INDETERMINATE)
|
|
|
|
coordindex = express_getattr(self, 'CoordIndex', INDETERMINATE)
|
|
|
@@ -13440,8 +13378,6 @@ def IfcCurveDim(curve):
|
|
|
|
if 'ifc4x3_rc3.ifccurvesegment2d' in typeof(curve):
|
|
|
|
if 'ifc4x3_rc3.ifccurvesegment2d' in typeof(curve):
|
|
|
|
return 2
|
|
|
|
return 2
|
|
|
|
if 'ifc4x3_rc3.ifcpolynomialcurve' in typeof(curve):
|
|
|
|
if 'ifc4x3_rc3.ifcpolynomialcurve' in typeof(curve):
|
|
|
|
if not exists(express_getattr(curve, 'CoefficientsZ', INDETERMINATE)) and express_getattr(express_getattr(curve, 'Position', INDETERMINATE), 'Dim', INDETERMINATE) == 2:
|
|
|
|
|
|
|
|
return 2
|
|
|
|
|
|
|
|
return 3
|
|
|
|
return 3
|
|
|
|
if 'ifc4x3_rc3.ifcpcurve' in typeof(curve):
|
|
|
|
if 'ifc4x3_rc3.ifcpcurve' in typeof(curve):
|
|
|
|
return 3
|
|
|
|
return 3
|
|
|
|