Clear_Bookmarks

Short description

Clears the internal **bookmark list** used by BMEntityPos for storing text/entity positions Provides a simple confirmation dialog before erasing stored data Ensures the global list *textPositions* is reset safely

Command:

Command: ClearTextPos Input: Confirmation via alert dialog (OK / Cancel) Effect: Clears global bookmark storage list

Description:

This command displays a confirmation alert asking whether the user wants to clear all saved text positions. If confirmed, it removes all entries from *textPositions*, the list used to store entity bookmarks created by c:BMEntityPos. If the user cancels, the function safely exits without modifying existing data.

Helper function: (if any)​

• Uses the built-in alert dialog to prompt the user • Checks the returned value (=1 for OK) to determine whether clearing should proceed • Modifies the global variable *textPositions* only after confirmation

Functionalities:

• Prompts user with a confirmation message • Clears the bookmark memory list when confirmed • Leaves stored data untouched if Cancel is pressed • Prints status messages to the command line after completion

Result:

• If OK is selected → *textPositions* is set to NIL, and a message confirms successful clearing • If Cancel is selected → Bookmark list remains intact, and a safe cancellation message is displayed • No entities or drawing data are modified, only memory storage is affected

Images, animations etc.

Pixel

Additional info:

Share this page:

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Tags: Bookmark
Tags: Bookmark
0
Would love your thoughts, please comment.x
()
x