AcEdJig is designed to control a drag sequence by supplying graphical feedback specified by a cursor type and a single entity.
To use the AcEdJig class
- Create an instance of your derived class of AcEdJig.
- Establish your prompt text with the AcEdJig::setDispPrompt() function.
- Call the AcEdJig::drag() function, which controls the drag loop and in turn calls the sampler(), update(), and entity() functions until the user ends the drag sequence.
- Check within the sampler() function:
If you are using a prompt with keywords, invoke the AcEdJig::setKeywordList() function.
If you want to set a special cursor type, call the AcEdJig::setSpecialCursorType() function. (This step is optional and can typically be omitted.)
If desired, place limitations on the drag sequence and the return value using the AcEdJig::setUserInputControls() function.
- Check the return status from the AcEdJig::drag() function and commit the changes of the drag sequence. If the user canceled or aborted the process, perform the appropriate cleanup.