pycatia.part_interfaces.circ_pattern¶
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.circ_pattern.CircPattern(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.ShapePartInterfaces.TransformationShapePartInterfaces.PatternCircPatternRepresents the circular pattern.The shape is duplicated along concentric circles to build crowns. A linearrepartition object defines the duplication along radial directions, thusdetermining the number of crowns. An angular repartition object defines theduplication on the crowns.See also:LinearRepartition, AngularRepartition- property angular_direction_row: IntParam¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AngularDirectionRow() As IntParam (Read Only)Returns the position of the shape to be copied along the angulardirection.Example:The following example returns in AngularDirPos the position of theshape to be copied along the angular direction.Set AngularDirPos = firstPattern.AngularDirectionRow
- Return type:
- property angular_repartition: AngularRepartition¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AngularRepartition() As AngularRepartition (ReadOnly)Returns the angular repartition. The angular repartition is the repartitionon a crown.Example:The following example returns in repartA the angular repartition of thecircular pattern firstPattern:Set repartA = firstPattern.AngularRepartition
- Return type:
- property circular_pattern_parameters: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CircularPatternParameters() AsCatCircularPatternParametersReturns or sets the circular pattern parameters required to define thepattern. These parameters are used when reading the CATIAAngularRepartitionproperties.Example:The following example returns in parameters the circular patternparameters of the firstPattern circular pattern, and then sets it tocatCompleteCrown, so that only the number of instances is used to define thePattern:Set parameters = firstPattern.CircularPatternParametersSet firstPattern.CircularPatternParameters = catCompleteCrown
- Returns:
enum cat_circular_pattern_parameters
- Return type:
int
- get_rotation_axis(io_rotation_axis: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetRotationAxis(CATSafeArrayVariant ioRotationAxis)Returns the rotation axis. The rotation axis is returned as an arraycontaining the rotation axis vector components. Assume this array isoRotationAxis. It contains:oRotationAxis[0],oRotationAxis[1],oRotationAxis[2]The X, Y, and Z rotation axis vector componentsExample:The following example returns in axisArray the rotation axis componentsof the circular pattern firstPattern:Call firstPattern.GetRotationAxis(axisArray)Set x = axisArray[0]Set y = axisArray[1]Set z = axisArray[2]
- Parameters:
io_rotation_axis (tuple) –
- Return type:
None
- get_rotation_center(io_rotation_center: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetRotationCenter(CATSafeArrayVariantioRotationCenter)Returns the rotation center if the user defined it. Returns E_FAIL if norotation center has been defined The rotation center is returned as an arraycontaining the rotation center coordinates. Assume this array isoRotationCenter. It contains:oRotationCenter[0],oRotationCenter[1],oRotationCenter[2]The X, Y, and Z rotation center coordinatesExample:The following example returns in centerArray the rotation centercoordinates of the circular pattern firstPattern, and saves them invariables:Call firstPattern.GetRotationCenter(centerArray)x = centerArray[0]y = centerArray[1]z = centerArray[2]
- Parameters:
io_rotation_center (tuple) –
- Return type:
None
- property radial_alignment: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property RadialAlignment() As booleanReturns or sets whether the copied shapes should be rotated or radialaligned with respect to the original one.True if the copied shapes are rotated.Example:The following example returns in alignedR the radial alignment of thecircular pattern firstPattern, and then sets it toFalse:Set alignedR = firstPattern.RadialAlignmentfirstPattern.RadialAlignment = False
- Return type:
bool
- property radial_direction_row: IntParam¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property RadialDirectionRow() As IntParam (Read Only)Returns the position of the shape to be copied along the radialdirection.Example:The following example returns in RadialDirPos the position of the shapeto be copied along the radial direction.Set RadialDirPos = firstPattern.RadialDirectionRow
- Return type:
- property radial_repartition: LinearRepartition¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property RadialRepartition() As LinearRepartition (ReadOnly)Returns the radial repartition. The radial repartition is the repartitionalong a radius.Example:The following example returns in repartR the radial repartition of thecircular pattern firstPattern:Set repartR = firstPattern.RadialRepartition
- Return type:
- property rotation_orientation: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property RotationOrientation() As booleanReturns or sets whether the shapes are copied clockwise on the crowns withrespect to the rotation axis direction.True if the shapes are copied counterclockwise when the rotation axisdirection goes towards you when you look at the crown.Example:The following example returns in alignedAxis whether the circularpattern firstPattern is built clockwise, and then sets it toTrue:alignedAxis = firstPattern.RotationOrientationfirstPattern.RotationOrientation = True
- Return type:
bool
- set_instance_angular_spacing(i_instance_number: int, i_angular_spacing: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetInstanceAngularSpacing(long iInstanceNumber,double iAngularSpacing)Sets the InstanceAngularSpacing.Parameters:iInstanceNumberThe Instance NumberiAngularSpacingThe Angular SpacingExample:The following example sets the InstanceAngularSpacing of the circularpattern
- Parameters:
i_instance_number (int) –
i_angular_spacing (float) –
- Return type:
None
- set_rotation_axis(i_rotation_axis: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetRotationAxis(Reference iRotationAxis)Sets the rotation axis.Parameters:iRotationAxisThe rotation axis. It is passed as reference and can be valuatedwith a line, an edge or a plane reference: in this case the plane normal istaken into account.The followingBoundary objects are supported: PlanarFace, CylindricalFaceRectilinearTriDimFeatEdge and RectilinearBiDimFeatEdge.Example:The following example sets the rotation axis of the circular patternfirstPattern with the refLine1 reference:firstPattern.SetRotationAxis refLine1
- Parameters:
i_rotation_axis (Reference) –
- Return type:
None
- set_rotation_center(i_rotation_center: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetRotationCenter(Reference iRotationCenter)Sets the rotation center.Parameters:iRotationCenterThe rotation centerExample:The following example sets the rotation center of the circular patternfirstPattern with point1Ref point:firstPattern.SetRotationCenter point1Ref
- Parameters:
i_rotation_center (Reference) –
- Return type:
None
- set_unequal_instance_number(i_instance_number: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetUnequalInstanceNumber(long iInstanceNumber)Sets the Instance Number.Parameters:iInstanceNumberThe Instance NumberExample:The following example modifies the instance number for unequal angularspacing
- Parameters:
i_instance_number (int) –
- Return type:
None
- set_unequal_step(i_instance_number: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetUnequalStep(long iInstanceNumber)This method is deprecated Sets the UnequalStep.Parameters:iInstanceNumberThe Instance NumberExample:The following example creates the number of pattern spacing objects inpattern object
- Parameters:
i_instance_number (int) –
- Return type:
None