Role: To access the data of the hybrid shape corner object. This data includes:
- Two elements
- Their orientations (same or inverse than the underlying curve)
- A support for the hybrid shape corner on support feature
- A direction for the hybrid shape 3D corner feature
- A radius.
Use the to create a HybridShapeCorner object.
Properties
This example set the beginning wire index of
the
hybShpCorner hybrid shape corner
hybShpCorner.BeginOfCorner = 1
This example retrieves the Corner Type
the
hybShpCorner hybrid shape corner in CornerType.
Dim lCornerType As long
lCornerType = hybShpCorner.CornerType
Legal values: This can be a CATIAHybridShapeDirection.
This example sets the direction of
the
hybShpCorner hybrid shape 3D corner as
the existing direction hybShpDirection.
hybShpCorner.Direction = hybShpDirection
This example set the discrimination index of
the
hybShpCorner hybrid shape corner
hybShpCorner.DiscriminationIndex = 2
Legal values: This can be a curve or a point.
Sub-element(s) supported (see
object):
,
or
.
This example retrieves the first reference element of
the
hybShpCorner hybrid shape corner in firstElt.
Dim fisrtElt As CATIAReference
fisrtElt = hybShpCorner.FirstElem
Legal values: 1 if the orientation of the corner first reference element
is the same than the cross product: Normal(Support) ^ Tangent(FirstElem),
and -1 if it is the inverse.
This example retrieves the orientation of first reference element of
the
hybShpCorner hybrid shape corner in firstOrient.
Dim firstOrient As long
firstOrient = hybShpCorner.FirstOrientation
This example retrieves the tangent orientation of first reference element of
the
hybShpCorner hybrid shape corner in firstOrient.
Dim firstOrient As long
firstOrient = hybShpCorner.FirstTangentOrientation
This example retrieves the OnVertex
the
hybShpCorner hybrid shape corner in OnVertex.
Dim bOnVertex As boolean
bOnVertex = hybShpCorner.OnVertex
This example retrieves the radius of
the
hybShpCorner hybrid shape corner in radius.
Dim radius As CATIALength
radius = hybShpCorner.Radius
Legal values: This is always a curve.
Sub-element(s) supported (see
object):
,
or
.
This example retrieves the second reference element of
the
hybShpCorner hybrid shape corner in secondElt.
Dim secondElt As CATIAReference
secondElt = hybShpCorner.SecondElem
Legal values: 1 if the orientation of the corner second reference element
is the same than the cross product: Normal(Support) ^ Tangent(SecondElem),
and -1 if it is the inverse.
This example sets the orientation of second reference element of
the
hybShpCorner hybrid shape corner to the inverse of the cross porduct
Normal(Support) ^ Tangent(SecondElem).
hybShpCorner.SecondOrientation = -1
This example retrieves the tangent orientation of second reference element of
the
hybShpCorner hybrid shape corner in secondOrient.
Dim secondOrient As long
firstOrient = hybShpCorner.SecondTangentOrientation
Legal values: This can be a plane or a surface.
Sub-element(s) supported (see
object):
.
This example sets the support of
the
hybShpCorner hybrid shape corner as
the exisiting surgace supportSurf.
hybShpCorner.Support = supportSurf
Legal values: True if the corner reference curves are or should be trimmed,
and False otherwise.
This example sets that the corner reference curves of
the
hybShpCorner hybrid shape corner should be trimmed.
hybShpCorner.Trim = True
Legal values:
1 if the corner reference curves are or should be trimmed,
0 if the corner reference curves are not or should not be trimmed,
2 if only the first corner reference curve is or should be trimmed,
3 if only the second corner reference curve is or should be trimmed,
This example sets that the corner reference curves of
the
hybShpCorner hybrid shape corner should be trimmed.
hybShpCorner.TrimMode = 1
Methods
This example inverts the first corner reference element orientation of
the
hybShpCorner.
hybShpCorner.InvertFirstOrientation
This example inverts the second corner reference element orientation of
the
hybShpCorner.
hybShpCorner.InvertSecondOrientation