Role: To access the data of the hybrid shape loft surface feature object.
This data includes:
- The spine
- The tangent surfaces to the start and end sections
- Guide curves, sections, and couplings
Use the CATIAHybridShapeFactory to create a HybridShapeLoft object.
LICENSING INFORMATION: Creation of volume result requires GSO License
if GSO License is not granted , settting of Volume context has not effect
Use the CATIAHybridShapeFactory to create a HybridShapeLoft object.
- See also:
Properties
- Property AreaLaw() As
- Gets or sets the optional area law for multi-sections element definition. The law is a length law.
- Property AreaLawTolerance() As
- Gets or sets the tolerance applied to area law. The value is in mm.
- Property BooleanOperation() As
-
Gets or sets the boolean operation for closed lofted surface.
TO BE USED ONLY for Part Loft (closed loft).
BooleanOperation = 1 : No boolean operation.
= 2 : Union boolean operation.
= 3 : Removal boolean operation.
This example retrieves in
BoolOpthe type of boolean operation for theLofthybrid shape feature.Dim BoolOp BoolOp = Loft.BooleanOperation
Legal values:
- 0
- No detection of canonical surface is performed
- 1
- Detection of planar surfaces only is performed
- 2
- Detection of canonical surfaces is performed
Legal values:
- 1
- The tangent to the end section is computed
- 2
- The tangent to the end section is not computed
Legal values:
- 1
- The tangent to the start section is computed
- 2
- The tangent to the start section is not computed
Legal values:
- 0 This option creates Lofted surface.
- 1 This option creates Lofted volume.
Note: Setting volume result requires GSO License.
- Example:
-
This example retrieves in
oContextthe context for theLofthybrid shape feature.Dim oContext Set oContext = Loft.Context
NOT YET IMPLEMENTED.
Legal values:
- 1
- The loft will be swept along the spine, then relimited by the start section and the end section
- 2
- The loft will be swept along the spine.
- If the spine is a user spine, then the loft is limited by the spine extremities
- If the spine is a computed spine, then the loft is limited:
- By the start section and the end section, if there is no guide
- By the guides extremities, if there are guides
- 3
- The loft will be swept along the spine, then relimited by the first section,
- If the spine is a user spine, then the loft is limited by the spine extremity opposite to the first section
- If the spine is a computed spine, then the loft is limited:
- By the last section, if there is no guide
- By the guides extremities opposite to the first section, if there are guides
- 4
- The loft will be swept along the spine, then relimited by the last section,
- If the spine is a user spine, then the loft is limited by the spine extremity opposite to the last section
- If the spine is a computed spine, then the loft is limited:
- By the first section, if there is no guide
- By the guides extremities opposite to the last section, if there are guides
Legal values:
- 1
- The curves will be coupled according to the curvilinear abscissa ratio
- 2
- if each curve has the same number of tangency discontinuity points, then these points will be coupled, otherwise an error message is displayed
- 3
- if each curve has the same number of tangency and curvature discontinuity points, then tangency discontinuity points will be coupled, and after curvature discontinuity points will be coupled, otherwise an error message is displayed
- 4
- if each curve has the same number of vertices, then these points will be coupled, otherwise an error message is displayed
Legal values:
- TRUE
- The angular threshold value is used during the lofting operation
- FALSE
- The angular threshold value is not used during the lofting operation
Legal values:
- TRUE
- The deviation value is used during the lofting operation
- FALSE
- The deviation value is not used during the lofting operation
Methods
- Sub AddGuide( iGuide)
-
Adds a guide curve to the lofted surface.
- Parameters:
-
- iGuide
- The guide curve to be added
Sub-element(s) supported (see object): and . dd>
- Sub AddGuideWithTangent( iGuide, iTangent)
-
Adds a guide curve and a tangent surface to the lofted surface.
- Parameters:
-
- iGuide
- The guide curve to be added
Sub-element(s) supported (see object): and . dd> - iTangent
- The tangent surface to be added.
The guide curve must be layed on the tangent
Sub-element(s) supported (see object): . dd>
- Sub AddSectionToLoft( iCrv, iOri, iPoint)
-
Retrieves a loft section.
- Parameters:
-
- iCrv
- Reference to the curve dd>
- iOri
- Orientation dd>
- iPoint
- Reference to the Closing Point dd>
- Func GetAreaLawToleranceParameter() As
- Gets the tolerance parameter applied to area law.
- Sub GetFacesForClosing( oStartFace, oEndFace)
-
Gets start and end faces if the tangent is a computed tangent surface to the
start section or end section, from the lofted surface.
The section must have been set as a face.
- Parameters:
-
- oStartFace
- start face used to close the loft. dd>
- oEndFace
- end face used to close the loft. dd>
- Sub GetGuide( iPos, oGuide, oGuideTangent)
-
Gets informations about the guide at a specified position in the list of the lofted surface.
- Parameters:
-
- iPos
- position of the guide in the list where the information is retrieved. dd>
- oGuide
- the guide curve. dd>
- oGuideTangent
- the tangent corresponding to the guide curve. dd>
- Func GetNbOfGuides() As
-
Returns the number of guides in the loft object.
- Parameters:
-
- oSize
- Number of guides in the loft.
- Example:
-
This example retrieves the number of guides
in the
hybShpLofthybrid shape Loft.Dim oSize As long oSize = hybShpLoft.GetNbOfGuides
- Sub GetSectionFromLoft( iRank, oCrv, oOri, oPoint)
-
Retrieves a loft section information.
- Parameters:
-
- iRank
- The index of the section dd>
- oCrv
- The reference to the curve dd>
- oOri
- The orientation value dd>
- oPoint
- The reference to the point dd>
- Sub GetSpine( oSpineType, oSpine)
-
Gets the spine of the lofted surface.
- Parameters:
-
- oSpineType
- type of spine = 1 : User defined spine. = 2 : Automatically computed spine. dd>
- oSpine
- curve used as a spine, if the spine is user defined one. dd>
- Sub GetStartAndEndSectionTangent( oStartSectionTangent, oEndSectionTangent)
-
Gets the start and end section tangents of the lofted surface.
- Parameters:
-
- oStartSectionTangent
- tangent surface at start section. dd>
- oEndSectionTangent
- tangent surface at end section. dd>
- Sub InsertCoupling( iPosition)
-
Inserts a coupling to the loft.
- Parameters:
-
- iPosition
- The position of the coupling in the list of couplings.
If 0 is specified, the coupling is inserted at the end of the list.
Sub-element(s) supported (see object): . dd>
- Sub InsertCouplingPoint( iCouplingIndex, iPosition, iPoint)
-
Inserts a coupling point to a coupling of the lofted surface.
- Parameters:
-
- iCouplingIndex
- The index of the coupling in the list of coupling where the point wil be inserted. dd>
- iPosition
- The position of the coupling point in the list of coupling points. If 0 is specified, the coupling point is inserted at the end of the list. dd>
- iPoint
- The point to be inserted. The point must be layed on the section with the same position.
Sub-element(s) supported (see object): ScVertex. dd>
- Sub InsertSectionToLoft( iType, iCrv, iOri, iPoint, iSectionRef)
-
Inserts a loft section.
- Parameters:
-
- iType
- iType if set to true section is added After and iType if set to false section is added Before iSectionRef dd>
- iCrv
- Reference to the curve dd>
- iOri
- Orientation dd>
- iPoint
- Reference to the Closing Point dd>
- iSectionRef
- iSectionRef is the section before and after which section is added. dd>
- Sub ModifyGuideCurve( iGuide, iNewGuide)
-
Modifies the curve of a guide from the lofted surface.
- Parameters:
-
- iGuide
- guide curve to be replaced. dd>
- iNewGuide
- new guide curve, will replace iGuide. dd>
- Sub ModifySectionCurve( iSection, iNewSection, oCurveSection, oClosingPoint, oPtDiag)
-
Modifies the curve of section from the lofted surface.
- Parameters:
-
- iSection
- section curve to be replaced. dd>
- iNewSection
- section will replace iSection, can be a curve or a face dd>
- oCurveSection
- if iSection is a face, oCurveSection is the boundary of the face. oCurveSection is used as section curve. if Part design, the face is used to close the Loft. dd>
- oClosingPoint
- if iSection is a closed curve, oClosingPoint is a new closing point of iSection. if iSection is a face, oClosingPoint is a new closing point the boundary of iSection. dd>
- oPtDiag
- Information on closing point = 0 : No closing point has been created nor retrieved. = 1 : A closing point has been created as a vertex. = 2 : A closing point has been created as an extremum. = 3 : A closing point has been retrieved as an extremum. dd>
- Sub ModifySectionOrient( iSection, iOrient)
-
Modifies the orientation of the curve of a section from the lofted surface.
- Parameters:
-
- iSection
- section curve to be modified. dd>
- iOrient
- orientation of the section curve = 1 : same orientation. = -1 : inverted orientation. = 2 : ko orientation. dd>
- Sub RemoveFaceForClosing( iSection)
-
Removes face used to close the lofted surface.
- Parameters:
-
- iSection
- section curve. dd>
- Sub RemoveGuide( iGuide)
-
Removes a guide curve from the lofted surface.
- Parameters:
-
- iGuide
- The guide curve to be removed
Sub-element(s) supported (see object): and . dd>
- Sub RemoveGuideTangent( iGuide)
-
Removes a tangent surface of a guide from the lofted surface.
- Parameters:
-
- iGuide
- guide curve of the guide from which the tangent will be removed. dd>
- Sub RemoveSection( iSection)
-
Removes a loft section from the lofted surface.
- Parameters:
-
- iSection
- The loft section to remove
Sub-element(s) supported (see object): and . dd>
- Sub RemoveSectionPoint( iSection)
-
Removes a closing point of a section from the lofted surface.
The curve section must be closed curve.
- Parameters:
-
- iSection
- section curve of the section from which the point will be removed. dd>
- Sub RemoveSectionTangent( iSection)
-
Removes the tangent surface of a section from the lofted surface.
The section must be the start section or the end section of the loft.
- Parameters:
-
- iSection
- section curve of the section from which the tangent will be removed. dd>
- Sub SetEndFaceForClosing( iFace)
-
Sets a face to the end section from the lofted surface.
- Parameters:
-
- iFace
- The face to close the loft (Part design only).
Sub-element(s) supported (see object): . dd>
- Sub SetEndSectionTangent( iTangentSection)
-
Sets a tangent surface to the end section from the lofted surface.
- Parameters:
-
- iTangentSection
- The tangent surface to be added. The end curve section must lay on the surface.
Sub-element(s) supported (see object): . dd>
- Sub SetSpine( iSpine)
-
Sets the spine to the lofted surface.
- Parameters:
-
- iSpine
- The curve to be added as a spine.
Sub-element(s) supported (see object): and . dd>
- Sub SetStartFaceForClosing( iFace)
-
Sets a face to the start section from the lofted surface.
- Parameters:
-
- iFace
- The face to close the loft (Part design only).
Sub-element(s) supported (see object): . dd>
- Sub SetStartSectionTangent( iTangentSection)
-
Sets a tangent surface to the start section from the lofted surface.
- Parameters:
-
- iTangentSection
- The tangent surface to be added. The start curve section must lay on the surface.
Sub-element(s) supported (see object): . dd>