pycatia.part_interfaces.defeaturing_filter_with_range¶
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_filter_with_range.DefeaturingFilterWithRange(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectPartInterfaces.DefeaturingFilterDefeaturingFilterWithRangeRepresents the base object for defeaturing filters which uses range(s) ofvalues- get_maximum_activity(i_range_id: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMaximumActivity(CATBSTR iRangeId) As boolean
- Parameters:
i_range_id (str) –
- Return type:
bool
- get_maximum_angle(i_range_id: str) Angle ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMaximumAngle(CATBSTR iRangeId) As Angle
- Parameters:
i_range_id (str) –
- Return type:
- get_maximum_length(i_range_id: str) Length ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMaximumLength(CATBSTR iRangeId) As Length
- Parameters:
i_range_id (str) –
- Return type:
- get_maximum_value(i_range_id: str) float ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMaximumValue(CATBSTR iRangeId) As double
- Parameters:
i_range_id (str) –
- Return type:
float
- get_minimum_activity(i_range_id: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMinimumActivity(CATBSTR iRangeId) As booleanReturns the minimum or maximum value activity of the filter for the givenrange id.Parameters:iRangeIdThe identificator of the range on which the minimum/maximum shouldbe read - if iRangeId is empty or equal to “Default”, takes the default rangeas defined by the filter (“RibbonRadius” for FilletFilter, “MainDiameter” forHoleFilter) - else iRangeId should be chosen among: *{“RibbonRadius”,”RibbonAngle”,”RibbonLength”} for FilletFilter *{“MainDiameter”} for HoleFilter * any defined and supported range id in case ofa user-defined filterReturns:oValue The filter minimum/maximum activity for the specifiedrangeExample:The following example returns in theMinActivity the minimum valueactivity of filter myFilter for the range myRange:Set theMinActivity = myFilter.getMinimumActivity(myRange)
- Parameters:
i_range_id (str) –
- Return type:
bool
- get_minimum_angle(i_range_id: str) Angle ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMinimumAngle(CATBSTR iRangeId) As Angle
- Parameters:
i_range_id (str) –
- Return type:
- get_minimum_length(i_range_id: str) Length ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMinimumLength(CATBSTR iRangeId) As Length
- Parameters:
i_range_id (str) –
- Return type:
- get_minimum_value(i_range_id: str) float ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func getMinimumValue(CATBSTR iRangeId) As doubleReturns the minimum or maximum value of the filter for the given range id,if defined and active.Parameters:iRangeIdThe identificator of the range on which the minimum/maximum shouldbe read - if iRangeId is empty or equal to “Default”, takes the default rangeas defined by the filter (“RibbonRadius” for FilletFilter, “MainDiameter” forHoleFilter) - else iRangeId should be chosen among: *{“RibbonRadius”,”RibbonAngle”,”RibbonLength”} for FilletFilter *{“MainDiameter”} for HoleFilter * any defined and supported range id in case ofa user-defined filterReturns:oValue The filter minimum/maximum value for the specified range ifdefined and active ELSE the method FAILS (to avoid this,getMinimumValueActivity/getMaximumValueActivity can be called prior to callinggetMinimumValue/getMaximumValue) Signature with double works for angles as wellas for lengths / EXPRESSED in MODEL UNIT (mm/deg) Signatures with CATIALengthor CATIAAngle must be used with care and will fail if the range nature and theexpected type are incompatibleExample:The following example returns in theMinValue the minimum value offilter myFilter for the range myRange:theMinValue = myFilter.getMinimumValue(myRange)The following example returns in theMinAngle the minimum value asan angle of filter myFilter for the range myRange:Set theMinAngle = myFilter.getMinimumAngle(myRange)The following example returns in theMaxLength the maximum value asa length of filter myFilter for the range myRange:Set theMaxLength = myFilter.getMaximumLength(myRange)
- Parameters:
i_range_id (str) –
- Return type:
float
- set_maximum_activity(i_range_id: str, i_value: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub setMaximumActivity(CATBSTR iRangeId,boolean iValue)
- Parameters:
i_range_id (str) –
i_value (bool) –
- Return type:
None
- set_maximum_value(i_range_id: str, i_value: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub setMaximumValue(CATBSTR iRangeId,double iValue)
- Parameters:
i_range_id (str) –
i_value (float) –
- Return type:
None
- set_minimum_activity(i_range_id: str, i_value: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub setMinimumActivity(CATBSTR iRangeId,boolean iValue)Sets the defeaturing minimum or maximum value activity of the filter forthe given range id.Parameters:iRangeIdThe identificator of the range on which the minimum/maximum shouldbe read - if iRangeId is empty or equal to “Default”, takes the default rangeas defined by the filter (“RibbonRadius” for FilletFilter, “MainDiameter” forHoleFilter) - else iRangeId should be chosen among: *{“RibbonRadius”,”RibbonAngle”,”RibbonLength”} for FilletFilter *{“MainDiameter”} for HoleFilter * any defined and supported range id in case ofa user-defined filteriValueThe filter minimum/maximum activity for the specifiedrangeExample:The two following examples set theMaxActivity as the maximumvalue activity of filter myFilter for the rangemyRange:Call myFilter.setMaximumActivity(myRange,theMaxActivity)myFilter.setMaximumActivity myRangetheMaxActivity
- Parameters:
i_range_id (str) –
i_value (bool) –
- Return type:
None
- set_minimum_value(i_range_id: str, i_value: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub setMinimumValue(CATBSTR iRangeId,double iValue)Sets the minimum or maximum value of the filter for the given range id.Forces the activation of the minimum or maximum value if not the caseyet.Parameters:iRangeIdThe identificator of the range on which the minimum/maximum shouldbe read - if iRangeId is empty or equal to “Default”, takes the default rangeas defined by the filter (“RibbonRadius” for FilletFilter, “MainDiameter” forHoleFilter) - else iRangeId should be chosen among: *{“RibbonRadius”,”RibbonAngle”,”RibbonLength”} for FilletFilter *{“MainDiameter”} for HoleFilter * any defined and supported range id in case ofa user-defined filteriValueThe filter minimum/maximum value for the specified range / MUST BEEXPRESSED in MODEL UNIT (mm/deg) iValue must be consistent with the other valueif defined and active - new minimum iValue must be smaller than existing activemaximum value if any - new maximum iValue must be larger than existing activeminimum value if any ELSE the method FAILSExample:The two following examples set theMaxValue as the maximum valueof filter myFilter for the range myRange:CallmyFilter.setMaximumValue(myRange,theMaxValue)myFilter.setMaximumValue myRange theMaxValue
- Parameters:
i_range_id (str) –
i_value (float) –
- Return type:
None