Pattern Object
Definition
A pattern is a set of similar features repeated in the same part. Two types
of patterns can be created with CATIA: the rectangular patterns and the
circular patterns. At present, only rectangular patterns can be generated from
a script. A rectangular pattern is defined by the following properties:
|
- Nb1, the number of elements to be replicated along the first
direction
|
|
- Nb2, the number of elements to be replicated along the second
direction
|
|
- Step1, the element spacing along the first direction
|
|
- Step2, the element spacing along the second direction
|
|
|
Syntax
pattern1 isa pattern [Nb1,Nb2] of feature_to_be_repeated
Example
MyBox isa CATPart
{
BoxPart isa Part
{
PartBody isa BodyFeature
{
Box1 isa Box
{
Width = 20 mm ;
Height = 20 mm ;
Length = 20 mm ;
}
// Use Get Surface from the
// contextual menu to specify the hole
// anchor
Hole1 isa SimpleHole ("Face:(Brp:(Pad.1;2);None:();Cf9:())")
{
Diameter = 15 mm;
}
Pattern1 isa Pattern[3,4] of Hole1
{
Step1 = 50 mm;
Step2 = 50 mm;
}
}
}
}
|