ifcopenshell.api.grid.remove_grid_axis
¶
Module Contents¶
- ifcopenshell.api.grid.remove_grid_axis.remove_grid_axis(file: ifcopenshell.file, axis: ifcopenshell.entity_instance) None ¶
Removes a grid axis from a grid
- Parameters:
axis (ifcopenshell.entity_instance) – The IfcGridAxis you want to remove.
- Returns:
None
- Return type:
None
Example:
# A pretty standard rectangular grid, with only two axes. grid = ifcopenshell.api.root.create_entity(model, ifc_class=”IfcGrid”) axis_a = ifcopenshell.api.grid.create_grid_axis(model,
axis_tag=”A”, uvw_axes=”UAxes”, grid=grid)
- axis_1 = ifcopenshell.api.grid.create_grid_axis(model,
axis_tag=”1”, uvw_axes=”VAxes”, grid=grid)
# Let’s create a third so we can remove it later axis_2 = ifcopenshell.api.grid.create_grid_axis(model,
axis_tag=”2”, uvw_axes=”VAxes”, grid=grid)
# Let’s remove it! ifcopenshell.api.grid.remove_grid_axis(model, axis=axis_2)