Cad Cell Block#
cad_cell_block is used to create the CAD object of a cell block
- classes:
CellBlock
- class basd.cad.cad_cell_block.CellBlock(x_pos: float, y_pos: float, z_pos: float, x_dir: int, y_dir: int, z_dir: int, row_offset: tuple[float], inner_padding: tuple[float], outer_padding: tuple[float], cell_type: str, cell_dimensions: tuple[float], rotate: bool)[source]#
CellBlock class used to build a cell block out of cells
- Variables:
x_pos – x position of the block
y_pos – y position of the block
z_pos – z position of the block
x_dir – number of elements in x direction
y_dir – number of elements in y direction
offset – row offset definition as lists in a list ,
padding – space to next objects in x,y,z direction
cell_type – cylindrical or prismatic
cell_key – cell identifier
- __init__(x_pos: float, y_pos: float, z_pos: float, x_dir: int, y_dir: int, z_dir: int, row_offset: tuple[float], inner_padding: tuple[float], outer_padding: tuple[float], cell_type: str, cell_dimensions: tuple[float], rotate: bool) None [source]#
init
- property cell_type: str#
cell_type property
- create_block(alternate: bool = False) Workplane [source]#
create_block builds a cell block object
- Parameters:
handle – workplane at which the cell block should be build
alternate – rotate the cell block depending on the cell type to enable a series connection
- Returns:
workplane with the cell block as shape object on the stack