pycatia.part_interfaces.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.pattern.Pattern(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
MecModInterfaces.Shape
PartInterfaces.TransformationShape
Pattern

Represents the pattern shape.
It is the base object for rectangular and circular patterns. A pattern shape is
a set of copies of the same shape. The copy is done according to linear and
angular repartitions.

See also:
CircPattern, RectPattern, Repartition, LinearRepartition,
AngularRepartition
activate_position(i_pos_u: int, i_pos_v: int) None

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Sub ActivatePosition(long iPosU,
long iPosV)

Allows user to activate an instance of the pattern.

Parameters:

iPosU
The position of the instance in the U direction
iPosV
The position of the instance in the V direction
Parameters:
  • i_pos_u (int) –

  • i_pos_v (int) –

Return type:

None

desactivate_position(i_pos_u: int, i_pos_v: int) None

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Sub DesactivatePosition(long iPosU,
long iPosV)

Allows user to desactivate an instance of the pattern.

Parameters:

iPosU
The position of the instance in the U direction
iPosV
The position of the instance in the V direction
Parameters:
  • i_pos_u (int) –

  • i_pos_v (int) –

Return type:

None

property item_to_copy: AnyObject

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
o Property ItemToCopy() As AnyObject

Returns or sets the shape to be copied.

Example:
The following example returns in shape the copied shape of the pattern
firstPattern, and then sets it to pad1:

Set shape = firstPattern.ItemToCopy
firstPattern.ItemToCopy = pad1
Return type:

AnyObject

property rotation_angle: Angle

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
o Property RotationAngle() As Angle (Read Only)

Returns the pattern global rotation angle. The rotation is applied to the
whole pattern, but not to the shapes themselves. The shape to be copied is used
as the rotation center.

Example:
The following example returns in globAng the rotation of pattern
firstPattern:

Set globAng = firstPattern.RotationAngle
Return type:

Angle