part:clear
List of: Scheme Extensions
Subjects: Part Management
Contents: Scheme Support

Action: Deletes all entities from the active part.

Filename: scm/scmext/part_scm.cxx

Syntax: (part:clear [part=active])

Arg Types: part part

Returns: boolean

Description: This extension does not reset the entity counter to 1. Use the env:set-active-part extension to establish the active part.


Note Roll back is not supported after processing this extension. The entity counter is not reset to 1.

Example: ; part:clear

; Create a block.

(define block1


(solid:block (position 0 0 0)


(position 5 10 15)))

;; block1

; Create a sphere

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

;; sphere1

; Delete all entities in the active part.

(part:clear)

;; #t
PDF/SCM/04SC.PDF
HTM/DATA/SCM/SCM/04SC/0075.HTM