Function ProKinDragPerformMove
Description
this function bring to drag this selected object. Displays a hook point around the point. Performs a drag according to the environment set in ProKinDragEnvironmentSet(). For dragging use constraints from current snapshot, if it set. After end of the movement the hook point is removed.
Replacement in Object TOOLKIT:
Synopsis
#include <ProKinDrag.h>
ProKinDragPerformMove
(
const ProSelection dragpoint
/* (In)
A geometrical object (PRO_POINT, PRO_SURFACE_PNT, PRO_AXIS, PRO_EDGE, PRO_CURVE, PRO_DATUM_PLANE, PRO_SRF_PLANE_PNT, PRO_SURFACE for PRO_KIN_POINT_DRAG, or PRO_PART, PRO_MDO_BODY for all other drag types) to be dragged. Set the selected-point using ProSelectionPoint3dSet(), otherwise the hook point will be wrong and movement result will be wrong as well.
*/
const Pro2dPnt* screenx_y
/* (In)
ProArray array of Pro2dPnt X and Y screen coordinates we want our dragpoint to be moved to.
*/
)
Returns
The function was successful.
Dragpoint cannot be used for dragging. For example, it may belong to Ground or undefined body.
Connect failed. The model is left unchanged.
The function ProKinDragStart has not been called before.
Sample Code References
User Guide References
これは役に立ちましたか?