Description

Select the objects enumerated by _NewEnum.

Return Type

None  

Syntax

object.SetEnumFilter [EnumWhat], [ClassName], [TemplateID]

The SetEnumFilter Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McGraphOverlay.
EnumWhatOptional. A mcGraphOverlayEnumWhat enumeration, as described in settings.

Filter the resulting set based on object Category.

ClassNameOptional. A String value.

Limit the enumeration to instances of this class.

TemplateIDOptional. A Long value.

Limit the enumeration to objects created using this template.

Settings

The settings for EnumWhat are:

ConstantValueDescription
 mcgewSelected1

Only return selected objects

 mcgewAny2

Return all non-template objects (selected or not)

 mcgewTemplate3

Return Template objects only

 mcgewMasterOrLabel0

Return either Master or Label flag

 mcgewMaster16

Only return master objects (no labels) flag.

 mcgewLabel32

Only return label objects attached to master objects flag.

 mcgewEnumWhatMask15

Mask for the group of objects to enumerate from.

Remarks

The number of objects returned by the Count property is also affected by SetEnumFilter. All 3 conditions are combined to produce the final filter.

After any “For Each” enumertion (a call to get the _NewEnum property), the SetEnumFilter is reset to enumerate all objects. It is not reset by accessing the Count property. Thus, you must call SetEnumFilter anew before each “For Each” enumeration.