formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Cube

# fz_objt_edit_cube_parm_get

Description

Gets a parameter of a cube.

Plugin Prototype

fzrt_error_td fz_objt_edit_cube_parm_get(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_objt_cube_parm_enum | which,
fz_type_td * | data )

Parameters

windex [Input]

project window index

obj [Input]

object

which [Input]

parameter id

data [Result]

parameter data

Returns

Error codes
MODEL_ERR_WRONG_OBJT_TYPE - object passed in is not a cube

Availability

5.0.0.0

Plugin Example

double width; fz_type_td data;
fz_objt_edit_cube_parm_get(windex,obj,FZ_OBJT_CUBE_PARM_WIDTH,&data); fz_type_get_double(&width,&data);

Script Example

double width;
fz_objt_edit_cube_parm_get(windex,obj,FZ_OBJT_CUBE_PARM_WIDTH,width);

Example Files

util_objt_prim.fsl

See Also

, fz_objt_cnstr_cube,

Function Set

fz_model_fset

Defined in

fz_objt_prim_api.h