std-ssval


Synopsis

(std-ssval <ss> <grp>) ; function

*STD:MAX-SSLEN* 600 ; global variable

Description

STD-SSVAL returns the common value of the group as string or the special strings "varies" or "too much". It is used in user prompts to display default values.

The return value is always a string, taking care of accompaning actual system variables. If the group specifies an angle, the string is converted with ANGTOS, distances with DISTOF, other values with STD-PRINC-TO-STRING.

If the number of elements in ss is larger than *STD:MAX-SSLEN*, the fixed string "too much" is returned. *STD:MAX-SSLEN* defaults to 600.

If not all properties in the selection are equal, the fixed string "varies" is returned.

Examples:

;;; is there any multiple block in the "small" selection set?
(defun mblock-in-ss-p (ss)
  (not (and
          (member (std-ssval ss 71)
                '("0" "1"))
          (member (std-ssval ss 70)

'("0" "1")))))

Arguments

ss: A selection set, of type PICKSET.

grp: A positive integer number.

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDENT)

Defined in STDENT