Pattern (Object)

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:
, , , ,

Properties


Property ItemToCopy() As
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
Property RotationAngle() As (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

Methods


Sub ActivatePosition( iPosU, 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
Sub DesactivatePosition( iPosU, 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