Skip to content

pytha.create_block

daniel-flassig edited this page May 3, 2020 · 24 revisions

Creates a solid block (mathematically a cuboid) in PYTHA as new part.

pytha.create_block(length, width, height, origin, options) 
Parameter Type Description
length number Length of the block (in x-direction)
width number Width of the block (in y-direction)
height number Height of the block (in z-direction)
origin {x,y,z} Optional: origin point of the block
options {...} Optional: a table that may contain the following options:
options.u_axis {x,y,z} Local coordinate u-axis for the orientation of the block
options.v_axis {x,y,z} Local coordinate v-axis for the orientation of the block
return element_handle An [[element handle

See also:

pytha

Clone this wiki locally