Scheme Extensions |
|
|
Technical Article |
Scheme is a public domain programming language, based on the LISP language, that uses an interpreter to run commands. ACIS provides extensions (written in C++) to the native Scheme language that can be used by an application to interact with ACIS through its Scheme Interpreter. The C++ source files for ACIS Scheme extensions are provided with the product. Spatial's Scheme based demonstration application, Scheme ACIS Interface Driver Extension (Scheme AIDE), also uses these Scheme extensions and the Scheme Interpreter. |
type | string |
date | string |
test-name | string |
Description
This Scheme extension executes one or more of the available example tests.
The Scheme extensions in the example test suite can be used to test API
functionality, and are sometimes known as "smoke tests." The source code
for these Scheme extensions illustrates the way APIs can be used in C++
applications.
This Scheme extension is for test purposes only. Entities created here are temporary and cannot be retained.
"fast" | Runs a minimum level of tests |
"smoke" | Runs an intermediate level of tests |
"all" | Runs all of the tests in the example test suite |
; acis:test ; Initiate and run the functionality tests. (acis:test "fast") ; Running test: blend_diamante ;Demonstrates: ; chamfering ; api_delete_blends ; api_set_const_rounds ; . ; . ; . ;; #t |
[Top]
type | string |
date | string |
test-name | string |
dojournal | boolean |
Description
This Scheme extension tests and demonstrates the blending functionality
by running a series of examples. This Scheme extension is for test purposes
only. Entities created here are temporary and cannot be retained.
"fast" | Runs a minimum level of tests |
"smoke" | Runs an intermediate level of tests |
"all" | Runs all of the blend tests in the example test suite |
; blend:test ; Tests the blending functionality. ; Display list of blend options. (blend:test) ; The list of blend tests and options are displayed. ; Please pass in one of the following strings. ; To test options or functionality: ; variable_radius_blend ; chamfering ; lop_attribute ; blending_splines ; blend_entities ; To test APIs: ; api_smooth_edge_seq ; . ; . ; . ; For thorough testing pass in "all". For faster ; but less thorough testing (smoke test) pass ; in "smoke". For fast testing pass in "fast". ; Pass in a date (yyyymmdd) to run tests ; that were made prior to or on that date. ;; 0 |
[Top]
type | string |
date | string |
test-name | string |
; journal:test ; No example available at this time |
[Top]
name | string |
do-journal | boolean |
Description
This extension tests and demonstrates the local operations functionality.
The name string allows you to specify which functionality to demonstrate.
Other parameters are all optional and specific to the test. If no name
string is defined, a list of the possible options is displayed.
; lop:test ; Test the local operations functionality ; Display list of local operations options (lop:test) ; The list of local operations options is displayed ;; 0 ; Test all the local operations option routines at ; once (lop:test "all") ;; 30 |
[Top]
type | string |
date | string |
test-name | string |
index | integer |
Description
This Scheme extension tests and demonstrates the pattern functionality
of ACIS by running a series of examples. The first set of optional arguments
allows the user to specify one of three types of testing: run a predefined
set of examples by level of functionality (type);
display a previously run set of examples by date (date);
or run a specific test by name (test-name).
As there is more than one set of pattern tests, the user may supply an
additional argument index to
specify which set is to be run. If index
is omitted, or set to -1, all sets are run. Other valid values are currently
0, 1, and 2. The extension returns the number of bodies created by the
test.
This Scheme extension is for test purposes only. Entities created here are temporary and cannot be retained.
"fast" | runs a minimum level oftests |
"smoke" | runs an intermediate level of tests |
"all" | runs all of the tests in the example test suite |
; pattern:test ; Test the pattern functionality ; Display list of pattern options (pattern:test) ; The list of pattern options is displayed ;; 0 ; Display and run the "pat_linear_1d" ; functionality test (pattern:test "pat_linear_1d") ;; Running test: pat_linear_1d ;; Demonstrates: ;; api_linear_pattern?Entity check results: ;; checks clean1 ; Clear the image. (part:clear) ;; #t ; Display and run the "api_linear_pattern" ; functionality test (pattern:test "api_linear_pattern") ; Each routine using "api_linear_pattern" is ; tested and displayed consecutively. ;; 48 ; Test all the pattern option routines (pattern:test "all") ; Each routine is tested and displayed consecutively. ;; 123 ; Clear the image. (part:clear) ;; #t ; Test all the pattern option routines in set #1 (pattern:test "all" 1) ; Each routine in set #1 is tested and ; displayed consecutively. ;; 36 |
[Top]
type | string |
date | string |
test-name | string |
Description
This Scheme extension tests and demonstrates the skinning and lofting (Advanced
Surfacing) functionality by running a series of examples. The optional
arguments allow you to specify one of three types of testing: run a predefined
set of examples by level of functionality (type);
or display a previously run set of examples by date (date);
or run a specific test by name (test-name).
This command tests the following options: ruled, virtual guides, perpendicular, periodic, and closed. This command tests the following functionality: path, draft, guide, laws, mapping curves, vertex modification, tanfac estimation, skinning interface, and lofting interface.
The two required files are: scm/scmext/smoke/test_utl.cpp, skin/skin_scm/test_utl.hxx
This Scheme extension is for test purposes only. Entities created here are temporary and cannot be retained.
"fast" | Runs a minimum level of tests |
"smoke" | Runs an intermediate level of tests |
"all" | Runs all of the skinning tests in the example test suite |
; skin:test ; Run test command without argument to display list ; of valid tests. (skin:test) ; Please pass in one of the following strings. ; To test options or functionality: ; closed ; path ; draft ; guide ; virtual guides ; periodic ; . ; . ; . ; skin_flower ; For thorough testing pass in "all". For faster ; but less thorough testing (smoke test) pass ; in "smoke". For fast testing pass in "fast". ; Pass in a date (yyyymmdd) to run tests ; that were made prior to or on that date. ;; 0 |
[Top]
type | string |
date | string |
test-name | string |
Description
This Scheme extension tests and demonstrates the sweeping functionality
by running a series of examples. The optional arguments allow you to specify
one of three types of testing: run a predefined set of examples by level
of functionality (type); or display
a previously run set of examples by date (date);
or run a specific test by name (test-name).
This Scheme extension is for test purposes only. Entities created here are temporary and cannot be retained.
"fast" | Runs a minimum level of tests |
"smoke" | Runs an intermediate level of tests |
"all" | Runs all of the sweeping tests in the example test suite |
; sweep:test ; Test the sweeping functionality. ; Display list of sweep options. (sweep:test) ; The list of sweep options is displayed. ;; 0 ; Display and run the "bool_type" ; functionality test. (define test1 (sweep:test "bool_type")) ;; test1 ; Clear the image. (part:clear) ;; #t ; Display and run the "api_rsw_face_path" ; functionality test. (define test2 (sweep:test "api_rsw_face_path")) ;; test2 ; Clear the image. (part:clear) ;; #t ; Test all the sweep option routines at once (sweep:test "all") ;; 30 |
[Top]
name | string |
Description
This extension tests and demonstrates the warping functionality. The string
name allows the user to specify
which functionality is going to be tested. If no string is passed, a list
of possible input is displayed.
; warp:test ; No example available at this time. |
[Top]
© 1989-2007 Spatial Corp., a Dassault Systèmes company. All rights reserved.