All Frameworks  Object Hierarchy  This Framework  Indexes   

HybridShapeWrapCurve (Object)

Represents the hybrid shape wrap curve surface object.
Role: To access the data of the hybrid shape wrap curve surface object.

This data includes:

Use the CATIAHybridShapeFactory to create a HybridShapeWrapCurve object.

See also:
HybridShapeFactory

Property Index

FirstCurvesConstraint
Returns or sets constraint at first curves of the WrapCurve.
LastCurvesConstraint
Returns or sets constraint at last curves of the WrapCurve.
Surface
Returns or sets the surface to deform of the WrapCurve.

Method Index

GetCurves
Returns a curve from the WrapCurve.
GetNumberOfCurves
Returns the number of couples of curves of the WrapCurve.
GetReferenceDirection
Gets the reference direction projection of the wrap curve feature.
GetReferenceSpine
Returns the reference spine of the wrap curve feature.
InsertCurves
Inserts a couple of reference curve and target curve to the wrap curve.
InsertReferenceCurve
Inserts a of reference curve to the wrap curve.
RemoveCurves
Removes a couple of reference curve and target curve from the WrapCurve.
SetReferenceDirection
Sets the reference direction projection to the wrap curve feature.
SetReferenceSpine
Sets the reference spine to the wrap curve feature.

Properties


o 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 FirstCurvesConstraint the constraint at first curves of the ShpWrapCurve hybrid shape WrapCurve feature.
 Dim FirstCurvesConstraint As long
 Set FirstCurvesConstraint = ShpWrapCurve.FirstCurvesConstraint
 
o Property LastCurvesConstraint() As
Returns or sets constraint at last curves of the WrapCurve.
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 LastCurvesConstraint the constraint at last curves of the ShpWrapCurve hybrid shape WrapCurve feature.
 Dim LastCurvesConstraint As long
 Set LastCurvesConstraint = ShpWrapCurve.LastCurvesConstraint
 
o Property Surface() As
Returns or sets the surface to deform of the WrapCurve.
Sub-element(s) supported (see
Boundary object): Face.
Example:
This example retrieves in SurfaceToDeform the surface to deform of the ShpWrapCurve hybrid shape WrapCurve feature.
 SurfaceToDeform = ShpWrapCurve.Surface
 

Methods


o Sub GetCurves( iPosition,
oReferenceCurve,
oTargetCurve)
Returns a curve from the WrapCurve.
Parameters:
iPosition
The position of the curves in the list of curves.
oReferenceCurve
the reference curve.
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 WrapCurveRefCurve the first reference curve of the ShpWrapCurve hybrid shape WrapCurve feature and retrieves in WrapCurveTargCurve the first target curve of the ShpWrapCurve hybrid shape WrapCurve feature.
 Dim WrapCurveRefCurve As Reference
 Dim WrapCurveTargCurve As Reference
 ShpWrapCurve.GetCurve(2)
 
o 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 NumberOfCurves the number of couples of curves of the ShpWrapCurve hybrid shape WrapCurve feature.
 NumberOfCurves = ShpWrapCurve.GetNumberOfCurves(2)
 
o Sub GetReferenceDirection( oDirectionType,
oDirection)
Gets the reference direction projection of the wrap curve feature.
Parameters:
oDirectionType
type of direction.
Legal values: 1 = reference direction is computed, and 2 = user direction.
oDirection
curve to be added as a direction, if oDirectionType = 2.
Example:
This example retrieves in RefDirection the reference direction of the ShpWrapCurve hybrid shape WrapCurve feature and in RefDirectionType the reference direction of the ShpWrapCurve hybrid shape WrapCurve
 Dim RefDirectionType As long 
 Dim RefDirection As CATIAHybridShapeDirection 
 ShpWrapCurve.SetReferenceDirection (RefDirectionType, RefDirection)
 
o Sub GetReferenceSpine( oSpineType,
oSpine)
Returns the reference spine of the wrap curve feature.
Parameters:
oSpineType
type of spine.
Legal values: 1 = Reference Spine is equal to the first reference curve, and 2 = user spine.
oSpine
curve to be added as a spine, if iSpineType = 2.
Example:
This example retrieves in RefSpine the reference spine of the ShpWrapCurve hybrid shape WrapCurve feature and in RefSpineType the reference spine type.
 Dim RefSpineType As long 
 Dim RefSpine As Reference 
 ShpWrapCurve.GetReferenceSpine (RefSpineType, RefSpine)
 
o Sub InsertCurves( iPosition,
iReferenceCurve,
iTargetCurve)
Inserts a couple of reference curve and target curve to the wrap curve.
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.
iReferenceCurve
the reference curve.
Sub-element(s) supported (see
Boundary object): TriDimFeatEdge and BiDimFeatEdge.
iTargetCurve
the target curve.
Sub-element(s) supported (see
Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Example:
This example sets the RefCurveForWrapCurve curve and the TargCurveForWrapCurve curve at the end of the list to the ShpWrapCurve hybrid shape WrapCurve feature.
 ShpWrapCurve.InsertCurves (0, RefCurveForWrapCurve, TargCurveForWrapCurve)
 
o Sub InsertReferenceCurve( iPosition,
iReferenceCurve)
Inserts a of reference curve to the wrap curve.
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.
iReferenceCurve
the reference curve.
Sub-element(s) supported (see
Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Example:
This example sets the RefCurveForWrapCurve curve at the end of the list to the ShpWrapCurve hybrid shape WrapCurve feature.
 ShpWrapCurve.InsertCurves (0, RefCurveForWrapCurve)
 
o Sub RemoveCurves( iPosition)
Removes a couple of reference curve and target curve from the WrapCurve.
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 ShpWrapCurve hybrid shape WrapCurve feature.
 ShpWrapCurve.RemoveCurves (1)
 
o Sub SetReferenceDirection( iDirection)
Sets the reference direction projection to the wrap curve feature.
Parameters:
iDirection
curve to be added as a direction, if iDirectionType = 2.
Example:
This example sets the RefDirection curve as the reference direction of the ShpWrapCurve hybrid shape WrapCurve feature.
 ShpWrapCurve.SetReferenceDirection RefDirection
 
o Sub SetReferenceSpine( iSpine)
Sets the reference spine to the wrap curve feature.
Parameters:
iSpine
curve to be added as a spine.
Sub-element(s) supported (see
Boundary object): TriDimFeatEdge, BiDimFeatEdge.
Example:
This example sets the Curve10 curve as the reference Spine of the ShpWrapCurve hybrid shape WrapCurve feature.
 ShpWrapCurve.SetReferenceSpine Curve10
 

Copyright © 2003, Dassault Systèmes. All rights reserved.