DefeaturingFilters (Object)

Represents the filter collection of a defeaturing object.

Methods


Func Add( iFilterTypeToAdd) As
Creates a new filter and adds it to the Defeaturing filters collection.
Parameters:
iFilterTypeToAdd
The type of the new filter to add among : - "DefeaturingFilletFilter" - "DefeaturingHoleFilter" - or any user-defined filter's type
Returns:
oAddedFilterIndex The added filter's index - equals to 0 if FAILED
Example:
The following example adds a new filter of type theFilterType to defeaturing colelction firstDefeaturingFilters and returns the index theIndex of the new filter
 Set theIndex = firstDefeaturingFilters.Add(theFilterType)
Func Item( iFilterId) As
Returns the filter of the Defeaturing filters collection using its index or its name.
Parameters:
iFilterId
The index or the name of the filter to retrieve As a numerics, must be in [1;Count])
Returns:
oFilter The filter (see for list of possible actions)
Example:
The following example returns in myFilter the filter number theIndex of Defeaturing collection firstDefeaturingFilters:
 Set myFilter = firstDefeaturingFilters.Item(theIndex)
Sub Remove( iFilterId)
Removes a filter from the Defeaturing filters collection and deletes it, using its index or its name.
Parameters:
iFilterId
The index or the name of the filter to retrieve As a numerics, must be in [1;Count])
Example:
The two following examples remove the filter number theIndex from Defeaturing collection firstDefeaturingFilters:
 Call firstDefeaturingFilters.Remove(theIndex)
 firstDefeaturingFilters.Remove theIndex