part:set-name
List of: Scheme Extensions
Subjects: Part Management
Contents: Scheme Support

Action: Sets the name of a part.

Filename: scm/scmext/part_scm.cxx

Syntax: (part:set-name [name=id name] [part=active])

Arg Types: name string

part part

Returns: unspecified

Description: The optional name specifies the desired string identification of the part. If the part is saved without a filename, the extension uses the identification name assigned to the part as the saved part filename.

Example: ; part:set-name

; Define a new part

(define part1 (part:new))

;; part1

; Set the part as the active part in the environment.

(env:set-active-part part1)

;; ()

; Set the name of the currently-active part.

(part:set-name "block.sat")

;; ()

; Save again in ACIS1.7 format

(option:set "save_version" 107)

;; 700

(part:save "block17.sat")

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