Description

Sets the Enabled state for selected measurements in the collection

Return Type

None  

Syntax

object.Select [MeasureIDs], [bEnable]

The Select Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McMeasures.
MeasureIDsOptional. A Variant value.

If given, a scalar or array of either the name(s) of the measurements to be enabled (as a String) or the IDs of the measurements to be enabled. The name is McMeasure.Attributes(mcmaidName) and the ID is McMeasure.Attributes(mcmaidID). Note that the referenced measurement does not have to be part of the collection; it will be automatically added if necessary.

If not given, then all measurements already in the collection are either enabled or disabled, based on the bEnable argument. This is equivalent to calling “SelectAll mcmcfAllCategories, bEnable”.

bEnableOptional. A Boolean value.

If True (the default), the selected measurements are Enabled. If False, the selected measurements are disabled.

Remarks

Only those McMeasure instances in the collection that have a True Enabled property will be computed when the Compute method is called and only those will be used for filtering features when the Filter method is called. Furthermore, event notifications are only fired for enabled measurements.

Note, however that the Value property of an McMeasure will be correct when accessed no matter the state of its Enable property.