AcMapDataCondition class

Land Desktop Development ARX CPP SDK

 

AcMapDataCondition class

Header file: MapQuery.h.

A data condition is used to select drawing objects based on object data, which is nongraphic data stored about the drawing in the drawing file.

A data condition contains a = 4) BSPSPopupOnMouseOver(event);;">join operator, a data type, a = 4) BSPSPopupOnMouseOver(event);;">condition operator, and a value. In addition, an associated value expression specifies the table and column in which the drawing’s = 4) BSPSPopupOnMouseOver(event);;">object data is stored, so that the object data can be attached before the query is executed.

Drawing objects whose related object data values meet the conditions of the data condition expression are selected. For example, to select drawing objects that represent pipes of a diameter of one inch, create a data condition that queries a table called PIPES and select those drawing objects whose DIAMETER column value = 1.0.

After you have built the data condition, add it to the query branch using the AcMapQueryBranch::AppendOperand, AcMapQueryBranch::InsertOperand, or AcMapQueryBranchSubstituteOperand function. Since these functions make a copy of the AcMapDataCondition object, you can release the data condition after adding it to the query branch.

The AcMapDataCondition class is derived from the AcMapQueryCondition class.

Do not subclass from this class.