[CE U17 C++] Disable Undo\Redo history

Hello all. I'm a new one in the MicroStation add-in development. As I understood the C++ API has more methods so I chose it.

For now, I have some logic that creates some geometry elements. I am interested in disabling the Undo\Redo history while this element is being created or how to exclude this element from this history. For example, in some cases where I need it. The user creates some geometry. After it, he calls some add-in command which should generate some geometry via API, for example, 50 lines. But he sees that his initial geometry is incorrect, so he wants to undo some changes. And in this case, he should make about 50 undo operations to just cancel the creation of "add-in lines". So I want to avoid this situation. How can I do it? Thanks all for the answers.