Property Expressions

AutoCAD Map 3D AutoLISP

Up a level
Property Expressions
 
 

Property expressions are used as querycond arguments in ade_querydefine calls that define Property conditions.

They have the following format:

(property operator value [subclasses])

Property Expression Parameters

property Property name (string). See the Property and Value Arguments table below.
operator "=", ">", "<", "<=", ">=", "<>". Note that the only valid operator in a string context is "=".
value Depends on the property argument. See the Property and Value Arguments table below.
subclasses Optional. T or nil. The default if the argument is omitted is nil. This setting has no effect unless property is "feature". T means return all objects belonging to the feature class identified by the value argument, including objects belonging to any subclass of that feature. nil means do not include objects belonging to such a subclass.
Property and Value Arguments
Property Value
area Area value (string).
blockname Block name (string).
color Color (string).
elevation Z coordinate (string).
"feature" Feature name (string).
group Group name (string).
layer Layer name (string).
length Length (string).
linetype Line type (string).
"lineweight" Line weight (string).
"plotstyle" Plot style (string).
style Text style (string).
thickness Thickness (string).
objtype Object type (string), or "unknown".
value Text value (string).

Property Expression Examples

The following examples define Property conditions. The first specifies a layer:

(setq qry_id 
    (ade_qrydefine  
         '("and" "" "" "property" ("layer" "=" "WATER") "" ) 
    ) 
)

And the second specifies a color:

(setq qry_id 
    (ade_qrydefine 
         '("or" "(" "not" "property" ("color" "=" "RED") "" ) 
    ) 
)