article

Paul Toone avatar image
0 Likes"
Paul Toone posted

Advanced Undo Example   

The following are snippets of example code using custom undo.

Simple Undo

  1. int undoId = beginaggregatedundo(c, "Set Object Rank"); setrank(anObj, 5); endaggregatedundo(c, undoId);

Undo with an Ignore

  1. int undoId = beginaggregatedundo(c, "Change Object Shape"); setnodestr(shape(anObj), shapePath); int index = getshapeindex(gets(shape(anObj))); beginignoreundo(); if (getshapeindex(shapePath)==0) { autoloadallmedia(anObj); index = getshapeindex(gets(shape(anObj))); } endignoreundo(); set(shapeindex(anObj), index); applyshapefactors(anObj); endaggregatedundo(c, undoId);


flexsim users manual
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1