Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: Remove Element Permanently ( Removed Element Must Not display even if user Undo the Process ) Using MDL Language.

$
0
0

You may also try to experiment with temporarily blocking Undo operation while leaving everything else as is.

/*------------------------------------+
|   Name: blockUndoCallback  CALLBACK |
+------------------------------------*/
Private void blockUndoCallback
(
MSElementDescr  *newEdP,   /* => */
MSElementDescr  *oldEdP,   /* => */
ChangeTrackInfo *infoP,    /* => */
boolean *cantBeUndoneP     /* <> */
)
  {
  *cantBeUndoneP = TRUE;
  }

/*-----------------------------------+
|   Name: disableUndo                |
+-----------------------------------*/
Public  void disableUndo    
(
void
)
  {
  mdlChangeTrack_setFunction ( CHANGE_TRACK_FUNC_Changed, blockUndoCallback );
  }


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>