pycatia.part_interfaces.defeaturing_filters¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.part_interfaces.defeaturing_filters.DefeaturingFilters(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionDefeaturingFiltersRepresents the filter collection of a defeaturing object.- add(i_filter_type_to_add: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add(CATBSTR iFilterTypeToAdd) As longCreates a new filter and adds it to the Defeaturing filterscollection.Parameters:iFilterTypeToAddThe type of the new filter to add among : - “DefeaturingFilletFilter” -“DefeaturingHoleFilter” - or any user-defined filter’s typeReturns:oAddedFilterIndex The added filter’s index - equals to 0 ifFAILEDExample:The following example adds a new filter of type theFilterType todefeaturing colelction firstDefeaturingFilters and returns the index theIndexof the new filterSet theIndex = firstDefeaturingFilters.Add(theFilterType)
- Parameters:
i_filter_type_to_add (str) –
- Return type:
int
- item(i_filter_id: cat_variant) DefeaturingFilter ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Item(CATVariant iFilterId) As DefeaturingFilterReturns the filter of the Defeaturing filters collection using its index orits name.Parameters:iFilterIdThe index or the name of the filter to retrieve As a numerics, mustbe in [1;Count])Returns:oFilter The filter (see DefeaturingFilter for list of possibleactions)Example:The following example returns in myFilter the filter numbertheIndex of Defeaturing collectionfirstDefeaturingFilters:Set myFilter = firstDefeaturingFilters.Item(theIndex)
- Parameters:
i_filter_id (cat_variant) –
- Return type:
- remove(i_filter_id: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Remove(CATVariant iFilterId)Removes a filter from the Defeaturing filters collection and deletes it,using its index or its name.Parameters:iFilterIdThe index or the name of the filter to retrieve As a numerics, mustbe in [1;Count])Example:The two following examples remove the filter number theIndexfrom Defeaturing collectionfirstDefeaturingFilters:Call firstDefeaturingFilters.Remove(theIndex)firstDefeaturingFilters.Remove theIndex
- Parameters:
i_filter_id (cat_variant) –
- Return type:
None