The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#76061 by dhs
Tue Mar 19, 2019 12:47 pm
MFM wrote:
PROCEDURE UndoStartTransaction; BUILTIN 634;
PROCEDURE UndoEndTransaction; BUILTIN 635;

These procedures mark the beginning and end of what the undo system sees as a "transaction".

For example, when creating a single line, the undo system sees the following:

- An entity was added
- It was drawn to the screen
- It was marked as the end of a "group"

These 3 steps are seen as a single "transaction" and will be "un-done" together.


I'm not entirely clear on the use of these procedures, but I'm assume that they can be used to break what the undo system would otherwise see as a single transaction into multiple transactions. (e.g. if I have a macro that updates a polyline and then updates some text in the same operation, I could wrap each of those discreet pieces of code in a UndoStartTransaction/UndoEnd transaction block so that the undo logic would treat them as 2 separate operations) ?

I have not been able to find anything in DCAL for Delphi that looks equivalent to these procedures ... is there a D4D equivalent ?
#76085 by Mark F. Madura
Fri Mar 22, 2019 11:05 am
The undo start/end procedures have not been exported to DCAL for Delphi / C++. However, the following functions will be made available in the next update to DataCAD 21.

DCAL for Delphi
undoStartTransaction();
undoEndTransaction();

DCAL for C++
undoStartTransaction();
undoEndTransaction();

Who is online

Users browsing this forum: No registered users and 13 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984