ade_rtdefrange

AutoCAD Map 3D AutoLISP

Up a level
ade_rtdefrange
 
 

Defines a range table.

(ade_rtdefrange tabname description range_defn)

Returns a range table ID or nil.

tabname Range table name (string); can be up to 31 characters long. Must be unique, contain no spaces, and start with an alphanumeric character
description Range table description (string)
range_defn Range table definition (string)

A range table allows you to alter properties of queried entities conditionally. It contains a set of property alteration values from which a single value is selected depending on conditions obtaining in the queried entity to be altered.

The range_defn argument is a range table definition, a list of range expressions. Each range expression includes (1) a condition and (2) a property alteration value to return if the condition is true. This information is expressed as a list of three elements: a range table operator and a comparison value (which together make up the condition), and the return value. You must state each value explicitly. You cannot substitute an expression.

See Using a Range Table for more information.