Role: To access the data of the point object created on a curve. This data includes:
- The curve onto which the point is created
- The reference point from which the point is created
- The curvilinear distance from the reference point
- The ratio of distance with respect to the curve length
- The distance stored value type, either distance or ratio
- The curve orientation
- The distance type, either geodesic or euclidean.
- The direction along which point is created with specified distance.
Use the to create a HybridShapePointOnCurve object.
If the point does not lie on the curve, the point on the curve
with the smallest distance to this point is taken. The reference point may not exist. In this case,
the extremity of the curve is taken as reference point.Properties
Sub-element(s) supported (see
object):
or
.
This example retrieves in
oCurve the supporting curve for
the pointOnCurve hybrid shape point.
Dim oCurve As CATIAReference
Set oCurve = pointOnCurve.Curve
Dir the direction for the PointOnCurve hybrid shape feature.
Dim Dir As CATIAHybridShapeDirection
Set Dir=pointOnCurve.Direction
Legal values: 1 for geodesic, -1 for euclidean.
Default is geodesic.
This example retrieves in
oDistanceType the distance computation type used
for the pointOnCurve hybrid shape object.
Dim oDistanceType As long
Set oDistanceType = pointOnCurve.DistanceType
This distance is a distance in a length unit,
The distance can be null.In this case, the reference point is the curve end point
defined using the Orientation parameter.
This example retrieves in
oOffset the distance from the reference point
on the supporting curve for the pointOnCurve hybrid shape object.
Dim oOffset As CATIALength
Set oOffset = pointOnCurve.Offset
Legal values: 0 = Distance on curve
1 = Distance along direction
2 = Ratio of Curve length
Legal values:
-1 means that the distance (length or ratio) is measured:
This example retrieves in
oOrientation curve Orientation use
for the pointOnCurve hybrid shape feature.
Dim oOrientation As long
Set oOrientation = pointOnCurve.Orientation
Sub-element(s) supported (see
object):
.
This example retrieves in
oRefPoint the reference point
on the supporting curve for the pointOnCurve hybrid shape object.
Dim oRefPoint As CATIAReference
Set oRefPoint = pointOnCurve.Point
This is a real parameter which corresponds to the ratio of the distance from the
reference point with respect to the length of the supporting curve.
The ratio can be null. In this case, the reference point is the curve end point
defined using the Orientation parameter.
This example retrieves in
oRatio the distance ratio from the reference point
on the supporting curve for the pointOnCurve hybrid shape object.
Dim oRatio As CATIALength
Set oRatio = PointOnCurve.Ratio
Legal values:
This example retrieves in
oType the distance type computation
for the pointOnCurve hybrid shape object.
Dim oType As long
Set oType = pointOnCurve.Type