Action:
|
Sets the parameters in an acis_options scheme object.
|
|
Filename:
|
kern/kern_scm/acisoptions_scm.cxx
|
|
APIs:
|
api_set_acis_options
|
|
Syntax:
|
(acisoptions:set [acis-opts] [["option-name" option] | ...])
|
|
Arg Types:
|
acis-opts1
|
acis-options
|
|
"option-name"
|
string
|
|
acis-opts2
|
acis-options
|
|
Returns:
|
acis-options
|
|
Description:
|
Makes or edits an
acis-options object, sets the
option arguments, and returns a new
acis-options object if no parameters are specified. If an
acis-options object is passed, it is modified and returns that object.
|
|
|
acis-opts1 specifies the acis-options object that has to be modified.
|
|
|
option-name is a string indicating the field in the
acis-options object.
|
|
|
acis-opts2 contains the value to be set.
|
|
Example:
|
; acisoptions:set
|
|
; This example creates versiontag and journal
|
|
; Scheme objects that are going to be applied
|
|
; to a sweeping operation.
|
|
(define j (acis_journal:set "file"
|
|
|
"sweep_journal_example"))
|
|
;; j
|
|
(define v (versiontag 7 0 0))
|
|
;; v
|
|
(define ao (acisoptions:set "journal" j "version" v))
|
|
;; ao
|
|
(define profile (solid:block
|
|
|
(position 0 0 0) (position 2 2 0)))
|
|
;; profile
|
|
(define path (wire-body:points (list (position 0 0 0)
|
|
|
(position 0 0 2) (position 1 1 4))))
|
|
;; path
|
|
(define opts (sweep:options ))
|
|
;; opts
|
|
(acis_journal:start ao)
|
|
;; #t
|
|
(define journal (sweep:law profile path opts ao))
|
|
;; journal
|
|
(acis_journal:end ao)
|
|
;; #t
|