ifcopenshell.api.grid.remove_grid_axis

Module Contents

ifcopenshell.api.grid.remove_grid_axis.remove_grid_axis(file, axis=None) 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.run(“root.create_entity”, model, ifc_class=”IfcGrid”) axis_a = ifcopenshell.api.run(“grid.create_grid_axis”, model,

axis_tag=”A”, uvw_axes=”UAxes”, grid=grid)

axis_1 = ifcopenshell.api.run(“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.run(“grid.create_grid_axis”, model,

axis_tag=”2”, uvw_axes=”VAxes”, grid=grid)

# Let’s remove it! ifcopenshell.api.run(“grid.remove_grid_axis”, model, axis=axis_2)