roll:delete-previous-states
List of: Scheme Extensions
Subjects: History and Roll
Contents: Scheme Support

Action: Deletes all delta states before the current one.

Filename: scm/scmext/roll_scm.cxx

Syntax: (roll:delete-previous-states [history])

Arg Types: history history

Returns: integer

Description: This extension deletes all delta states before the current state to free memory used to maintain the states in ACIS (but not the operating system). After calling this extension, it is no longer possible to roll back to any of the deleted states.


The optional history is used to find the history stream to prune. The default is the stream associated with the active part.


This extension returns the number of deleted states.

Example: ; roll:delete-previous-states

; Create a solid sphere.

(define sphere1 (solid:sphere (position 0 0 0) 10))

;; sphere1

; Delete all previous delta states.

(roll:delete-previous-states)

;; 0
PDF/SCM/04SC.PDF
HTM/DATA/SCM/SCM/04SC/0119.HTM