ifcpatch.recipes.SetFalseOrigin
¶
Module Contents¶
- class ifcpatch.recipes.SetFalseOrigin.Patcher(src, file, logger, name: str = 'EPSG:1234', x: str | float = '0', y: str | float = '0', z: str | float = '0', e: str | float = '0', n: str | float = '0', h: str | float = '0', gn_angle: str | float = '0', rotate_angle: str | float = '0')¶
Sets a false origin with a map conversion in a model
On IFC2X3 models, a EPset_MapConversion is used.
- Parameters:
x – The local X coordinate which will become the new false origin.
y – The local Y coordinate which will become the new false origin.
z – The local Z coordinate which will become the new false origin.
e – The easting which the false origin correlates to.
n – The northing which the false origin correlates to.
h – The height which the false origin correlates to.
gn_angle – The anticlockwise angle to grid north.
rotate_angle – An anticlockwise angle to rotate the model by if necessary (pivoted by the false origin).
Example:
# Set the current origin 0,0,0 to correlate to map coordinates 1000,1000,0 and a grid north of 15. ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "SetFalseOrigin", "arguments": ["EPSG:1234", 0, 0, 0, 1000, 1000, 0, 15, 0]})
- patch()¶
- e¶
- file¶
- gn_angle¶
- h¶
- logger¶
- n¶
- name¶
- rotate_angle¶
- src¶
- x¶
- y¶
- z¶