Role: To access the data of the hybrid shape wrap curve surface object.
This data includes:
- Two support surfaces, one at each limit of the wrap curve surface
- Two curves, one for each support surface
- The curve closing points
Use the CATIAHybridShapeFactory to create a HybridShapeWrapCurve object.
- See also:
Properties
- Property FirstCurvesConstraint() As
-
Returns or sets constraint at first curves of the WrapCurve.
Legal values: 1 = no constraint, 2 = Deformed surface will have the same tangency and the same curvature as the original surface at first curves.
- Example:
-
This example retrieves in
FirstCurvesConstraintthe constraint at first curves of theShpWrapCurvehybrid shape WrapCurve feature.Dim FirstCurvesConstraint As long Set FirstCurvesConstraint = ShpWrapCurve.FirstCurvesConstraint
Legal values: 1 = no constraint, 2 = Deformed surface will have the same tangency and the the same curvatureas the original surface at last curves.
- Example:
-
This example retrieves in
LastCurvesConstraintthe constraint at last curves of theShpWrapCurvehybrid shape WrapCurve feature.Dim LastCurvesConstraint As long Set LastCurvesConstraint = ShpWrapCurve.LastCurvesConstraint
Sub-element(s) supported (see object): .
- Example:
-
This example retrieves in
SurfaceToDeformthe surface to deform of theShpWrapCurvehybrid shape WrapCurve feature.SurfaceToDeform = ShpWrapCurve.Surface
Methods
- Sub GetCurves( iPosition, oReferenceCurve, oTargetCurve)
-
Returns a curve from the WrapCurve.
- Parameters:
-
- iPosition
- The position of the curves in the list of curves. dd>
- oReferenceCurve
- the reference curve. dd>
- oTargetCurve
- the target curve.
Legal values: can be egal to Nothing. In this case, the associated ref curve will be fixed.- Example:
-
This example retrieves in
WrapCurveRefCurvethe first reference curve of theShpWrapCurvehybrid shape WrapCurve feature and retrieves inWrapCurveTargCurvethe first target curve of theShpWrapCurvehybrid shape WrapCurve feature.Dim WrapCurveRefCurve As Reference Dim WrapCurveTargCurve As Reference ShpWrapCurve.GetCurve(2)
- Func GetNumberOfCurves() As
-
Returns the number of couples of curves of the WrapCurve.
- Returns:
- The number of couples of curves
Legal values: positive or null.
- Example:
-
This example retrieves in
NumberOfCurvesthe number of couples of curves of theShpWrapCurvehybrid shape WrapCurve feature.NumberOfCurves = ShpWrapCurve.GetNumberOfCurves(2)
- Parameters:
-
- oDirectionType
- type of direction.
Legal values: 1 = reference direction is computed, and 2 = user direction. dd> - oDirection
- curve to be added as a direction, if oDirectionType = 2.
- Example:
-
This example retrieves in
RefDirectionthe reference direction of theShpWrapCurvehybrid shape WrapCurve feature and inRefDirectionTypethe reference direction of theShpWrapCurvehybrid shape WrapCurveDim RefDirectionType As long Dim RefDirection As CATIAHybridShapeDirection ShpWrapCurve.SetReferenceDirection (RefDirectionType, RefDirection)
dd>
- Parameters:
-
- oSpineType
- type of spine.
Legal values: 1 = Reference Spine is equal to the first reference curve, and 2 = user spine. dd> - oSpine
- curve to be added as a spine, if iSpineType = 2.
- Example:
-
This example retrieves in
RefSpinethe reference spine of theShpWrapCurvehybrid shape WrapCurve feature and inRefSpineTypethe reference spine type.Dim RefSpineType As long Dim RefSpine As Reference ShpWrapCurve.GetReferenceSpine (RefSpineType, RefSpine)
dd>
- Parameters:
-
- iPosition
- The position of the curves in the list of curves.
Legal values: 0 for the end of the list, or positive and not null. dd> - iReferenceCurve
- the reference curve.
Sub-element(s) supported (see object): and . dd> - iTargetCurve
- the target curve.
Sub-element(s) supported (see object): and .
- Example:
-
This example sets the
RefCurveForWrapCurvecurve and theTargCurveForWrapCurvecurve at the end of the list to theShpWrapCurvehybrid shape WrapCurve feature.ShpWrapCurve.InsertCurves (0, RefCurveForWrapCurve, TargCurveForWrapCurve)
- Parameters:
-
- iPosition
- The position of the curves in the list of curves.
Legal values: 0 for the end of the list, or positive and not null. dd> - iReferenceCurve
- the reference curve.
Sub-element(s) supported (see object): and . - Example:
-
This example sets the
RefCurveForWrapCurvecurve at the end of the list to theShpWrapCurvehybrid shape WrapCurve feature.ShpWrapCurve.InsertCurves (0, RefCurveForWrapCurve)
- Parameters:
-
- iPosition
- The position of the curves in the list of curves.
Legal values: positive, not null and lower to numberOfCurves
- Example:
-
This example removes the first couple of reference curve and target curve
of the
ShpWrapCurvehybrid shape WrapCurve feature.ShpWrapCurve.RemoveCurves (1)
- Parameters:
-
- iDirection
- curve to be added as a direction, if iDirectionType = 2.
- Example:
-
This example sets the
RefDirectioncurve as the reference direction of theShpWrapCurvehybrid shape WrapCurve feature.ShpWrapCurve.SetReferenceDirection RefDirection
dd>
- Parameters:
-
- iSpine
- curve to be added as a spine.
Sub-element(s) supported (see object): , .
- Example:
-
This example sets the
Curve10curve as the reference Spine of theShpWrapCurvehybrid shape WrapCurve feature.ShpWrapCurve.SetReferenceSpine Curve10