formZ SDK | 5.0 API Reference | Project | Modeling | Selection (Pick)

fz_model_pick_get_pnts

Description

Retrieves click locations for an item in the modeling Pick Buffer. The click locations are the screen points where the mouse was clicked to picked the entity. If the selection was made using a non graphical pick, then an error is returned. Examples of non graphic picking are the Objects Palette, The Select By dialog, Select All, a plugin function call or an area pick.

If the pick method uses a single point, then pnt2 will be {-1,-1}. Otherwise it will be a valid screen point.

Plugin Prototype

fzrt_error_td fz_model_pick_get_pnts(

fzrt_int

windex,

fzrt_int

pick_indx,

fzrt_point *

pnt1,

fzrt_point *

pnt2 )

Parameters

windex [Input]

project window index

pick_indx [Input]

index of item in pick buffer.

Range: pick_indx >= 0

Range: pick_indx < ()

pnt1 [Result, Optional]

screen point for first click point or {-1,-1} if none

pnt2 [Result, Optional]

screen point for second click point or {-1,-1} if none

Returns

MODEL_ERR_PICK_INVALID if non graphical pick.

Availability

5.0.0.0

See Also

Function Set

fz_model_fset


Defined in

fz_objt_api.h