env:count-parts
List of: Scheme Extensions
Subjects: Part Management, Physical Properties
Contents: Scheme Support

Action: Gets the number of defined parts.

Filename: scm/scmext/part_scm.cxx

Syntax: (env:count-parts)

Arg Types: None

Returns: integer


count-part is an enviroment that counts and returns the number of parts.

Example: ; env:count-parts

; Define an active part.

(define first (env:active-part))

;; first

; Create another part.

(define part1 (part:new))

;; part1

; part1

; Verify what was created.

part1

;; #[part 2]

; Get the number of parts currently defined.

(env:count-parts)

;; 2
PDF/SCM/04SC.PDF
HTM/DATA/SCM/SCM/04SC/0029.HTM