pycatia.hybrid_shape_interfaces.hybrid_shape_sweep_line¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
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.hybrid_shape_interfaces.hybrid_shape_sweep_line.HybridShapeSweepLine(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.HybridShapeCATGSMIDLItf.HybridShapeSweepHybridShapeSweepLineRepresents the sweep line object.- add_draft_angle_definition_location(ip_ia_loc_elem: Reference, i_ang: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddDraftAngleDefinitionLocation(Reference ipIALocElem,double iAng)Adds a draft angle location.Parameters:ipIALocElemThe geometric element where the draft angle appliesiAngThe draft angle
- Parameters:
ip_ia_loc_elem (Reference) –
i_ang (float) –
- Return type:
None
- property angle_law: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AngleLaw() As ReferenceReturns or sets the angular law.
- Return type:
- property angle_law_inversion: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AngleLawInversion() As longReturns or sets whether the angular law has to beinverted.Legal angular law inversion values are:0 The angular law has NOT to be inverted1 The angular law has to be inverted
- Return type:
int
- property angle_law_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AngleLawType() As longReturns or sets the angular law type.Legal angular law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- Return type:
int
- property canonical_detection: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CanonicalDetection() As longReturns or sets whether canonical surfaces of the swept surface aredetected.Legal values:0 No detection of canonical surface is performed.2 Detection of canonical surfaces is performed.
- Return type:
int
- property context: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Context() As longReturns or sets the context on Sweep feature.0 This option creates Swept surface.1 This option creates Swept volume.Note: Setting volume result requires GSO License.Example:This example retrieves in oContext the context for the Sweep hybridshape feature.Dim oContextSet oContext = Sweep.Context
- Return type:
int
- property draft_computation_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property DraftComputationMode() As longReturns or sets the draft computation mode.
- Return type:
int
- property draft_direction: HybridShapeDirection¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property DraftDirection() As HybridShapeDirectionReturns or sets the draft direction.Example:This example retrieves in oDirection the direction of the LinearSweepfeature.Dim oDirection As CATIAHybridShapeDirectionSet oDirection = LinearSweep.DraftDirection
- Return type:
- property first_guide_crv: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstGuideCrv() As ReferenceReturns or sets the sweep operation first guide curve.
- Return type:
- property first_guide_surf: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstGuideSurf() As ReferenceReturns or sets the sweep operation first guide surface.
- Return type:
- property first_length_law: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstLengthLaw() As ReferenceReturns or sets the first length law useful in some linear sweep types.
- Return type:
- property first_length_law_inversion: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstLengthLawInversion() As longReturns or sets whether the first length law has to beinverted.Legal length law inversion values are:0 The length law has NOT to be inverted1 The length law has to be inverted
- Return type:
int
- get_angle(i_i: int) Angle ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetAngle(long iI) As AngleReturns the angle values useful in some linear sweeptypes.Parameters:iIThe angle value indexReturns:The angle value
- Parameters:
i_i (int) –
- Return type:
- get_angular_law(op_start_ang: Angle, op_end_ang: Angle, o_law_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetAngularLaw(Angle opStartAng,Angle opEndAng,long oLawType)Retrieves the angular law useful in some linear sweeptypes.Parameters:opStartAngThe angular law start valueopEndAngThe angular law end valueoLawTypeThe angular law typeLegal angular law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- get_choice_nb_surfaces(o_surf_ori1: int, o_surf_ori2: int, o_surf_coupl_ori1: int, o_surf_coupl_ori2: int, o_no: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetChoiceNbSurfaces(long oSurfOri1,long oSurfOri2,long oSurfCouplOri1,long oSurfCouplOri2,long oNo)Gets a sequence which identifies a solution amongst all possibilities of aline-profile swept surface, caseCATGSMLinearSweep_TwoTangencySurfaces.Parameters:oSurfOri1This orientation determines the location of the results with regardto the first surface. Possible values are:* +1 : the result is in the semi-space defined by the normal to the surface,* -1 : the result is in the semi-space defined by the opposite to the normal to thesurface,* 0 : no orientation is specified, all the results are output,* 2 : the result changes of semi-space along the spine.oSurfOri2This orientation determines the location of the results with regardto the second surface. Possible values are as for oSurfOri1.oSurfCouplOri1This orientation determines the location of the results with regardto the trihedron defined by the the spine, the normal to the first surface andthe tangent to the linear profile. Possible valuesare:* +1 : the output results are such that the triedron is counter clockwise,* -1 : the output results are such that the triedron is clockwise,* 0 : no orientation is specified, all the results are output,* 2 : the orientation of the trihedron changes along the spine.oSurfCouplOri2This orientation determines the location of the results with regardto the trihedron defined by the the spine, the normal to the second surface andthe tangent to the linear profile. Possible values are as for oSurfCouplOri1.oNoGiven the previous orientations, solution number in a distanceordered list.
- Parameters:
o_surf_ori1 (int) –
o_surf_ori2 (int) –
o_surf_coupl_ori1 (int) –
o_surf_coupl_ori2 (int) –
o_no (int) –
- Return type:
None
- get_choice_no(o_val1: int, o_val2: int, o_val3: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetChoiceNo(long oVal1,long oVal2,long oVal3)Retrieves the choice number associated with each solution of a given linearsweep case.Example: a linear sweep with one guide curve and a tangency surface maylead to several possible solutions.Parameters:oVal1The solution number (from 1 to n)oVal2In the example, the shell orientation : -1, +1 or 0 (both +1 and -1)val3In the example, the wire orientation : -1, +1 or 0 (both +1 and -1)
- Parameters:
o_val1 (int) –
o_val2 (int) –
o_val3 (int) –
- Return type:
None
- get_draft_angle_definition_location(i_loc: int, op_ia_element: Reference, o_angle: Angle) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetDraftAngleDefinitionLocation(long iLoc,Reference opIAElement,Angle oAngle)Retrieves the draft angle location element.Parameters:iLocThe draft angle location position in the listopIAElementThe geometric element at that location and where the draft angleappliesoAngleThe draft angle
- get_draft_angle_definition_locations_nb(o_count: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetDraftAngleDefinitionLocationsNb(long oCount)Retrieves the draft angle location list size.Parameters:oCountThe draft angle location list size
- Parameters:
o_count (int) –
- Return type:
None
- get_first_length_definition_type(o_first_type: int, op_ia_elem: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFirstLengthDefinitionType(long oFirstType,Reference opIAElem)Retrieves the first length definition type.Parameters:oFirstTypeThe first length definition typeLegal length definition types are:0 Undefined length type(CATGSMLinearSweepLengthType_None)1 Length of the swept line in the sweeping plane from the guidecurve (CATGSMLinearSweepLengthType_Standard)2 No numerical value is required, equivalent to standard length atzero (CATGSMLinearSweepLengthType_FromCurve)3 Up to or from a geometrical reference (a surface)(CATGSMLinearSweepLengthType_Reference)4 Only for draft surfaces, the length is computed in the draftdirection from an extremum point on the guide curve(CATGSMLinearSweepLengthType_FromExtremum)5 Only for draft surfaces, the length will be used in a waysimilar to euclidean parallel curve distance on the swept surface(CATGSMLinearSweepLengthType_AlongSurface)opIAElemThe geometric element where the first length definition typeapplies
- Parameters:
o_first_type (int) –
op_ia_elem (Reference) –
- Return type:
None
- get_first_length_law(o_length1: Length, o_length2: Length, o_law_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFirstLengthLaw(Length oLength1,Length oLength2,long oLawType)Retrieves the first length law useful in some linear sweeptypes.Parameters:oLength1The length law start valueoLength2The length law end valueoLawTypeThe length law typeLegal length law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- get_length(i_i: int) Length ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetLength(long iI) As LengthReturns the length values useful in some linear sweeptypes.Parameters:iIThe length value indexReturns:The length value
- Parameters:
i_i (int) –
- Return type:
- get_length_law_types(o_first_type: int, o_second_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetLengthLawTypes(long oFirstType,long oSecondType)Gets length law types.Parameters:oFirstTypeFirst type of law.oSecondTypeSecond type of law. oFirstType and oSecondType0 : Undefined law type1 : Constant law type2 : Linear law type3 : S law type4 : Law specified by a GSD law feature5 : Law specified by a set of points and parameters
- Parameters:
o_first_type (int) –
o_second_type (int) –
- Return type:
None
- get_longitudinal_relimiters(op_ia_elem1: Reference, op_ia_elem2: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetLongitudinalRelimiters(Reference opIAElem1,Reference opIAElem2)Deprecated:V5R16 CATHybridShapeSweepLine#GetRelimiters Retrieves the elementsrelimiting the spine (or the default spine).Parameters:opIAElem1The first relimiting feature (plane or point)opIAElem2The second relimiting feature (plane or point)
- get_nb_angle(o_ang: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetNbAngle(long oAng)Retrieves the number of angles.Parameters:oAngThe number of angles
- Parameters:
o_ang (int) –
- Return type:
None
- get_nb_guide_crv(o_num: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetNbGuideCrv(long oNum)Retrieves the number of guides curves.Parameters:oNumThe number of guide curves
- Parameters:
o_num (int) –
- Return type:
None
- get_nb_guide_sur(o_num: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetNbGuideSur(long oNum)Retrieves the number of guide surfaces.Parameters:oNumThe number of guides surfaces
- Parameters:
o_num (int) –
- Return type:
None
- get_nb_length(o_len: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetNbLength(long oLen)Retrieves the number of lengths.Parameters:oLenThe number of lengths
- Parameters:
o_len (int) –
- Return type:
None
- get_relimiters(op_ia_elem1: Reference, op_orient1: int, op_ia_elem2: Reference, op_orient2: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetRelimiters(Reference opIAElem1,long opOrient1,Reference opIAElem2,long opOrient2)Retrieves the elements relimiting the spine (or the defaultspine).Parameters:opIAElem1The first relimiting feature (plane or point)opOrient1Split direction for the first relimitation0 means that the beginning of the spine (considering itsorientation) is removed, 1 means that the end of the spine is removedopIAElem2The second relimiting feature (plane or point)opOrient2Split direction for the second relimitation
- get_second_length_definition_type(o_second_type: int, op_ia_elem: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSecondLengthDefinitionType(long oSecondType,Reference opIAElem)Retrieves the second length definition type.Parameters:oSecondTypeThe second length definition typeLegal length definition types are:0 Undefined length type(CATGSMLinearSweepLengthType_None)1 Length of the swept line in the sweeping plane from the guidecurve (CATGSMLinearSweepLengthType_Standard)2 No numerical value is required, equivalent to standard length atzero (CATGSMLinearSweepLengthType_FromCurve)3 Up to or from a geometrical reference (a surface)(CATGSMLinearSweepLengthType_Reference)4 Only for draft surfaces, the length is computed in the draftdirection from an extremum point on the guide curve(CATGSMLinearSweepLengthType_FromExtremum)5 Only for draft surfaces, the length will be used in a waysimilar to euclidean parallel curve distance on the swept surface(CATGSMLinearSweepLengthType_AlongSurface)opIAElemThe geometric element where the second length definition typeapplies
- Parameters:
o_second_type (int) –
op_ia_elem (Reference) –
- Return type:
None
- get_second_length_law(o_length1: Length, o_length2: Length, o_law_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSecondLengthLaw(Length oLength1,Length oLength2,long oLawType)Retrieves the second length law useful in some linear sweeptypes.Parameters:oLength1The length law start valueoLength2The length law end valueoLawTypeThe length law typeLegal length law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- property guide_deviation: Length¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property GuideDeviation() As Length (Read Only)Returns the deviation value (length) from guide curves allowed during asweeping operation in order to smooth it.
- Return type:
- property guide_deviation_activity: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property GuideDeviationActivity() As booleanReturns or sets whether a deviation from guide curves isallowed.This property gives the information on performing smoothing during sweepingoperation.TRUE if a deviation from guide curves is allowed, or FALSE otherwise (FALSEif not specified).
- Return type:
bool
- insert_draft_angle_definition_location(i_elem: Reference, i_angle: Angle, i_pos: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InsertDraftAngleDefinitionLocation(Reference iElem,Angle iAngle,long iPos)Inserts a geometrical element and a value necessary for draft angledefinition after a given position in the lists.Parameters:iElemGeometrical elementiAngleAngular parameteriPosPosition in lists. To insert in the beginning of the list put iPos = 0.
- property mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Mode() As longReturns or sets the linear sweep mode.Legal mode values are:0 Undefined linear profile swept surface(CATGSMLinearSweep_None)1 Linear profile swept surface defined by two guide curves(CATGSMLinearSweep_TwoGuides)2 Linear profile swept surface defined by a guide curve and an angle(CATGSMLinearSweep_GuideAndAngleCurve)3 Linear profile swept surface defined by a guide curve and a middle curve(CATGSMLinearSweep_GuideAndMiddle)4 Linear profile swept surface defined by a guide curve and an angle froma reference surface(CATGSMLinearSweep_GuideAndRefSurfaceAngle)5 Linear profile swept surface defined by a guide curve and a tangencysurface (CATGSMLinearSweep_GuideAndTangencySurface)6 Linear profile swept surface defined by a guide curve and a draftdirectio (CATGSMLinearSweep_GuideAndDraftDirection)7 Linear profile swept surface defined by two tangency surfaces(CATGSMLinearSweep_TwoTangencySurfaces)
- Return type:
int
- remove_all_draft_angle_definition_locations() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveAllDraftAngleDefinitionLocations()Removes all geometrical elements and values necessary for draft angledefinition.
- Return type:
None
- remove_angle() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveAngle()Removes an angle.
- Return type:
None
- remove_draft_angle_definition_location_position(i_pos: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveDraftAngleDefinitionLocationPosition(long iPos)Removes a draft angle location.Parameters:iPosThe position in the list of the draft angle location toremove
- Parameters:
i_pos (int) –
- Return type:
None
- remove_guide_crv() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveGuideCrv()Removes a guide curve.
- Return type:
None
- remove_guide_sur() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveGuideSur()Removes a guide surface.
- Return type:
None
- remove_length() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveLength()Removes a length.
- Return type:
None
- property second_guide_crv: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondGuideCrv() As ReferenceReturns or sets the sweep operation second guide curve.
- Return type:
- property second_guide_surf: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondGuideSurf() As ReferenceReturns or sets the sweep operation second guide surface.
- Return type:
- property second_length_law: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondLengthLaw() As ReferenceReturns or sets second length law useful in some linear sweep types.
- Return type:
- property second_length_law_inversion: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondLengthLawInversion() As longReturns or sets whether the second length law has to beinverted.Legal length law inversion values are:0 The length law has NOT to be inverted1 The length law has to be inverted
- Return type:
int
- property second_trim_option: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondTrimOption() As longReturns or sets the trim option for the second tangencysurface.Legal trim option values are:0 No trim computed or trim undefined(CATGSMSweepTrimMode_None)1 Trim computed (CATGSMSweepTrimMode_On)
- Return type:
int
- set_angle(i_i: int, i_elem: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetAngle(long iI,double iElem)Sets the angle values useful in some linear sweep types.Parameters:iIThe angle value indexiElemThe angle value
- Parameters:
i_i (int) –
i_elem (float) –
- Return type:
None
- set_angular_law(i_start_ang: float, i_end_ang: float, i_law_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetAngularLaw(double iStartAng,double iEndAng,long iLawType)Sets the angular law useful in some linear sweep types.Parameters:iStartAngThe angular law start valueiEndAngThe angular law end valueiLawTypeThe angular law typeLegal angular law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- Parameters:
i_start_ang (float) –
i_end_ang (float) –
i_law_type (int) –
- Return type:
None
- set_choice_nb_surfaces(i_surf_ori1: int, i_surf_ori2: int, i_surf_coupl_ori1: int, i_surf_coupl_ori2: int, i_no: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetChoiceNbSurfaces(long iSurfOri1,long iSurfOri2,long iSurfCouplOri1,long iSurfCouplOri2,long iNo)Sets a sequence which identifies a solution amongst all possibilities of aline-profile swept surface, caseCATGSMLinearSweep_TwoTangencySurfaces.Parameters:iSurfOri1This orientation determines the location of the results with regardto the first surface. Possible values are:* +1 : the result is in the semi-space defined by the normal to the surface,* -1 : the result is in the semi-space defined by the opposite to the normal to the ,* 0 : no orientation is specified, all the results are output,* 2 : the result changes of semi-space along the spine.iSurfOri2This orientation determines the location of the results with regardto the second surface. Possible values are as for iSurfOri1.iSurfCouplOri1This orientation determines the location of the results with regardto the trihedron defined by the the spine, the normal to the first surface andthe tangent to the linear profile. Possible valuesare:* +1 : the output results are such that the triedron is counter clockwise,* -1 : the output results are such that the triedron is clockwise,* 0 : no orientation is specified, all the results are output,* 2 : the orientation of the trihedron changes along the spine.iSurfCouplOri2This orientation determines the location of the results with regardto the trihedron defined by the the spine, the normal to the second surface andthe tangent to the linear profile. Possible values are as for iSurfCouplOri2.iNoGiven the previous orientations, solution number in a distanceordered list.
- Parameters:
i_surf_ori1 (int) –
i_surf_ori2 (int) –
i_surf_coupl_ori1 (int) –
i_surf_coupl_ori2 (int) –
i_no (int) –
- Return type:
None
- set_choice_no(i_val1: int, i_val2: int, i_val3: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetChoiceNo(long iVal1,long iVal2,long iVal3)Sets the choice number associated with each solution of a given linearsweep case.Example: a linear sweep with one guide curve and a tangency surface maylead to several possible solutions.Parameters:iVal1The solution number (from 1 to n)iVal2In the example, the shell orientation : -1, +1 or 0 (both +1 and -1)iVal3In the example, the wire orientation : -1, +1 or 0 (both +1 and -1)
- Parameters:
i_val1 (int) –
i_val2 (int) –
i_val3 (int) –
- Return type:
None
- set_first_length_definition_type(i_first_type: int, ip_ia_elem: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetFirstLengthDefinitionType(long iFirstType,Reference ipIAElem)Sets the first length definition type.Parameters:iFirstTypeThe first length definition typeLegal length definition types are:0 Undefined length type(CATGSMLinearSweepLengthType_None)1 Length of the swept line in the sweeping plane from the guidecurve (CATGSMLinearSweepLengthType_Standard)2 No numerical value is required, equivalent to standard length atzero (CATGSMLinearSweepLengthType_FromCurve)3 Up to or from a geometrical reference (a surface)(CATGSMLinearSweepLengthType_Reference)4 Only for draft surfaces, the length is computed in the draftdirection from an extremum point on the guide curve(CATGSMLinearSweepLengthType_FromExtremum)5 Only for draft surfaces, the length will be used in a waysimilar to euclidean parallel curve distance on the swept surface(CATGSMLinearSweepLengthType_AlongSurface)ipIAElemThe geometric element where the first length definition typeapplies
- Parameters:
i_first_type (int) –
ip_ia_elem (Reference) –
- Return type:
None
- set_first_length_law(i_length1: float, i_length2: float, i_law_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetFirstLengthLaw(double iLength1,double iLength2,long iLawType)Sets the first length law useful in some linear sweeptypes.Parameters:iLength1The length law start valueiLength2The length law end valueiLawTypeThe length law typeLegal length law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- Parameters:
i_length1 (float) –
i_length2 (float) –
i_law_type (int) –
- Return type:
None
- set_guide_deviation(i_length: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetGuideDeviation(double iLength)Sets the deviation value (length) from guide curves allowed during sweepingoperation in order to smooth it.Parameters:iLengthThe deviation value
- Parameters:
i_length (float) –
- Return type:
None
- set_length(i_i: int, i_elem: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetLength(long iI,double iElem)Sets the linear values useful in some linear sweep types.Parameters:iIThe linear value indexiElemThe linear value
- Parameters:
i_i (int) –
i_elem (float) –
- Return type:
None
- set_length_law_types(i_first_type: int, i_second_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetLengthLawTypes(long iFirstType,long iSecondType)Sets length law types.Parameters:iFirstTypeFirst type of law.iSecondTypeSecond type of law. iFirstType and iSecondType0 : Undefined law type1 : Constant law type2 : Linear law type3 : S law type4 : Law specified by a GSD law feature5 : Law specified by a set of points and parameters
- Parameters:
i_first_type (int) –
i_second_type (int) –
- Return type:
None
- set_longitudinal_relimiters(ip_ia_elem1: Reference, ip_ia_elem2: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetLongitudinalRelimiters(Reference ipIAElem1,Reference ipIAElem2)Deprecated:V5R16 CATHybridShapeSweepLine#SetRelimiters Sets the elementsrelimiting the spine (or the default spine).Parameters:ipIAElem1The first relimiting feature (plane or point)ipIAElem2The second relimiting feature (plane or point)
- set_relimiters(ip_ia_elem1: Reference, ip_orient1: int, ip_ia_elem2: Reference, ip_orient2: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetRelimiters(Reference ipIAElem1,long ipOrient1,Reference ipIAElem2,long ipOrient2)Sets the elements relimiting the spine (or the defaultspine).Parameters:ipIAElem1The first relimiting feature (plane or point)ipOrient1Split direction for the first relimitation0 means that the beginning of the spine (considering itsorientation) is removed, 1 means that the end of the spine is removedipIAElem2The second relimiting feature (plane or point)ipOrient2Split direction for the second relimitation
- set_second_length_definition_type(i_second_type: int, ip_ia_elem: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetSecondLengthDefinitionType(long iSecondType,Reference ipIAElem)Sets the second length definition type.Parameters:iSecondTypeThe second length definition typeLegal length definition types are:0 Undefined length type(CATGSMLinearSweepLengthType_None)1 Length of the swept line in the sweeping plane from the guidecurve (CATGSMLinearSweepLengthType_Standard)2 No numerical value is required, equivalent to standard length atzero (CATGSMLinearSweepLengthType_FromCurve)3 Up to or from a geometrical reference (a surface)(CATGSMLinearSweepLengthType_Reference)4 Only for draft surfaces, the length is computed in the draftdirection from an extremum point on the guide curve(CATGSMLinearSweepLengthType_FromExtremum)5 Only for draft surfaces, the length will be used in a waysimilar to euclidean parallel curve distance on the swept surface(CATGSMLinearSweepLengthType_AlongSurface)ipIAElemThe geometric element where the second length definition typeapplies
- Parameters:
i_second_type (int) –
ip_ia_elem (Reference) –
- Return type:
None
- set_second_length_law(i_length1: float, i_length2: float, i_law_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetSecondLengthLaw(double iLength1,double iLength2,long iLawType)Sets the second length law useful in some linear sweeptypes.Parameters:iLength1The length law start valueiLength2The length law end valueiLawTypeThe length law typeLegal length law type values are:0 Undefined law type (CATGSMBasicLawType_None)1 Constant law type (CATGSMBasicLawType_Constant)2 Linear law type (CATGSMBasicLawType_Linear)3 S law type (CATGSMBasicLawType_SType)4 Law specified by a GSD law feature(CATGSMBasicLawType_Advanced)
- Parameters:
i_length1 (float) –
i_length2 (float) –
i_law_type (int) –
- Return type:
None
- set_smooth_angle_threshold(i_angle: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetSmoothAngleThreshold(double iAngle)Sets the angular threshold.Parameters:iAngleThe angle numerical value
- Parameters:
i_angle (float) –
- Return type:
None
- property smooth_activity: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SmoothActivity() As booleanReturns whether the sweeping operation is smoothed.TRUE if the sweeping operation is smoothed, or FALSE otherwise (FALSE ifnot specified).
- Return type:
bool
- property smooth_angle_threshold: Angle¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SmoothAngleThreshold() As Angle (Read Only)Returns the angular threshold.
- Return type:
- property solution_no: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SolutionNo() As longReturns or sets the choice number, which corresponds to each solution of agiven linear sweep case.For example: a linear sweep with reference surface leads to four possiblesolutions.
- Return type:
int
- property spine: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Spine() As ReferenceReturns or sets the sweep operation spine (optional).
- Return type:
- property trim_option: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TrimOption() As longReturns or sets the trim option.Legal trim option values are:0 No trim computed or trim undefined(CATGSMSweepTrimMode_None)1 Trim computed (CATGSMSweepTrimMode_On)
- Return type:
int