pycatia.hybrid_shape_interfaces.hybrid_shape_loft¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.hybrid_shape_interfaces.hybrid_shape_loft.HybridShapeLoft(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.HybridShapeHybridShapeLoftRepresents the hybrid shape loft surface feature object.Role: To access the data of the hybrid shape loft surface featureobject.This data includes:The spineThe tangent surfaces to the start and end sectionsGuide curves, sections, and couplingsUse the CATIAHybridShapeFactory to create a HybridShapeLoftobject.LICENSING INFORMATION: Creation of volume result requires GSOLicenseif GSO License is not granted , setting of Volume context has noteffectUse the CATIAHybridShapeFactory to create a HybridShapeLoftobject.See also:HybridShapeFactory- add_guide(i_guide: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddGuide(Reference iGuide)Adds a guide curve to the lofted surface.Parameters:iGuideThe guide curve to be addedSub-element(s) supported (seeBoundary object): TriDimFeatEdge and BiDimFeatEdge.
- Parameters:
i_guide (Reference) –
- Return type:
None
- add_guide_with_tangent(i_guide: Reference, i_tangent: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddGuideWithTangent(Reference iGuide,Reference iTangent)Adds a guide curve and a tangent surface to the loftedsurface.Parameters:iGuideThe guide curve to be addedSub-element(s) supported (seeBoundary object): TriDimFeatEdge and BiDimFeatEdge.iTangentThe tangent surface to be added. The guide curve must be layed on thetangentSub-element(s) supported (see Boundary object): Face.
- add_section_to_loft(i_crv: Reference, i_ori: int, i_point: Reference | VBANothing) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddSectionToLoft(Reference iCrv,long iOri,Reference iPoint)Retrieves a loft section.Parameters:iCrvReference to the curveiOriOrientationiPointReference to the Closing Point
- property area_law: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AreaLaw() As ReferenceGets or sets the optional area law for multi-sections element definition.The law is a length law.
- Return type:
- property area_law_tolerance: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AreaLawTolerance() As doubleGets or sets the tolerance applied to area law. The value is in mm.
- Return type:
float
- property boolean_operation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property BooleanOperation() As longGets 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 BoolOp the type of boolean operationfor the Loft hybrid shape feature.Dim BoolOpBoolOp = Loft.BooleanOperation
- Return type:
int
- property canonical_detection: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CanonicalDetection() As longReturns or sets whether canonical surfaces of the lofted surface aredetected.Legal values:0No detection of canonical surface is performed1Detection of planar surfaces only is performed2Detection of canonical surfaces is performed
- Return type:
int
- property comp_end_section_tangent: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CompEndSectionTangent() As longReturns or sets whether the tangent surface to the end section of thelofted surface is computed.Legal values:1The tangent to the end section is computed2The tangent to the end section is not computed
- Return type:
int
- property comp_start_section_tangent: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CompStartSectionTangent() As longReturns or sets whether the tangent surface to the start section of thelofted surface is computed.Legal values:1The tangent to the start section is computed2The tangent to the start section is not computed
- Return type:
int
- property context: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Context() As longReturns or sets the context on Loft feature.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 oContext the context for the Loft hybridshape feature.Dim oContextSet oContext = Loft.Context
- Return type:
int
- get_area_law_tolerance_parameter() Length ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetAreaLawToleranceParameter() As LengthGets the tolerance parameter applied to area law.
- Return type:
- get_faces_for_closing(o_start_face: Reference, o_end_face: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetFacesForClosing(Reference oStartFace,Reference oEndFace)Gets start and end faces if the tangent is a computed tangent surface tothe start section or end section, from the lofted surface. The section musthave been set as a face.Parameters:oStartFacestart face used to close the loft.oEndFaceend face used to close the loft.
- get_guide(i_pos: int, o_guide: Reference, o_guide_tangent: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetGuide(long iPos,Reference oGuide,Reference oGuideTangent)Gets informations about the guide at a specified position in the list ofthe lofted surface.Parameters:iPosposition of the guide in the list where the information isretrieved.oGuidethe guide curve.oGuideTangentthe tangent corresponding to the guide curve.
- get_nb_of_guides() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNbOfGuides() As longReturns the number of guides in the loft object.Parameters:oSizeNumber of guides in the loft.Example:This example retrieves the number of guides in the hybShpLofthybrid shape Loft.Dim oSize As longoSize = hybShpLoft.GetNbOfGuides
- Return type:
int
- get_section_from_loft(i_rank: int, o_crv: Reference, o_ori: int, o_point: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSectionFromLoft(long iRank,Reference oCrv,long oOri,Reference oPoint)Retrieves a loft section information.Parameters:iRankThe index of the sectionoCrvThe reference to the curveoOriThe orientation valueoPointThe reference to the point
- get_spine(o_spine_type: int, o_spine: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetSpine(long oSpineType,Reference oSpine)Gets the spine of the lofted surface.Parameters:oSpineTypetype of spine = 1 : User defined spine. = 2 : Automatically computed spine.oSpinecurve used as a spine, if the spine is user definedone.
- Parameters:
o_spine_type (int) –
o_spine (Reference) –
- Return type:
None
- get_start_and_end_section_tangent(o_start_section_tangent: Reference, o_end_section_tangent: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetStartAndEndSectionTangent(ReferenceoStartSectionTangent,Reference oEndSectionTangent)Gets the start and end section tangents of the loftedsurface.Parameters:oStartSectionTangenttangent surface at start section.oEndSectionTangenttangent surface at end section.
- insert_coupling(i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InsertCoupling(long iPosition)Inserts a coupling to the loft.Parameters:iPositionThe position of the coupling in the list of couplings. If 0 isspecified, the coupling is inserted at the end of thelist.Sub-element(s) supported (seeBoundary object): Vertex.
- Parameters:
i_position (int) –
- Return type:
None
- insert_coupling_point(i_coupling_index: int, i_position: int, i_point: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InsertCouplingPoint(long iCouplingIndex,long iPosition,Reference iPoint)Inserts a coupling point to a coupling of the loftedsurface.Parameters:iCouplingIndexThe index of the coupling in the list of coupling where the pointwil be inserted.iPositionThe 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.iPointThe point to be inserted. The point must be layed on the sectionwith the same position.Sub-element(s) supported (seeBoundary object): ScVertex.
- Parameters:
i_coupling_index (int) –
i_position (int) –
i_point (Reference) –
- Return type:
None
- insert_section_to_loft(i_type: bool, i_crv: Reference, i_ori: int, i_point: Reference, i_section_ref: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InsertSectionToLoft(boolean iType,Reference iCrv,long iOri,Reference iPoint,Reference iSectionRef)Inserts a loft section.Parameters:iTypeiType if set to true section is added After and iType if set tofalse section is added Before iSectionRefiCrvReference to the curveiOriOrientationiPointReference to the Closing PointiSectionRefiSectionRef is the section before and after which section isadded.
- modify_guide_curve(i_guide: Reference, i_new_guide: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ModifyGuideCurve(Reference iGuide,Reference iNewGuide)Modifies the curve of a guide from the lofted surface.Parameters:iGuideguide curve to be replaced.iNewGuidenew guide curve, will replace iGuide.
- modify_section_curve(i_section: Reference, i_new_section: Reference, o_curve_section: Reference, o_closing_point: Reference, o_pt_diag: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ModifySectionCurve(Reference iSection,Reference iNewSection,Reference oCurveSection,Reference oClosingPoint,long oPtDiag)Modifies the curve of section from the lofted surface.Parameters:iSectionsection curve to be replaced.iNewSectionsection will replace iSection, can be a curve or a faceoCurveSectionif iSection is a face, oCurveSection is the boundary of the face.oCurveSection is used as section curve. if Part design, the face is used toclose the Loft.oClosingPointif iSection is a closed curve, oClosingPoint is a new closing pointof iSection. if iSection is a face, oClosingPoint is a new closing point theboundary of iSection.oPtDiagInformation 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.
- modify_section_orient(i_section: Reference, i_orient: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ModifySectionOrient(Reference iSection,long iOrient)Modifies the orientation of the curve of a section from the loftedsurface.Parameters:iSectionsection curve to be modified.iOrientorientation of the section curve =1 : same orientation.-1 : inverted orientation.2 : ko orientation.
- Parameters:
i_section (Reference) –
i_orient (int) –
- Return type:
None
- property relimitation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Relimitation() As longReturns or sets the relimitation type between sections of theloft.NOT YET IMPLEMENTED.Legal values:1The loft will be swept along the spine, then relimited by the startsection and the end section2The loft will be swept along the spine.If the spine is a user spine, then the loft is limited by the spineextremitiesIf the spine is a computed spine, then the loft islimited:By the start section and the end section, if there is noguideBy the guides extremities, if there are guides3The loft will be swept along the spine, then relimited by the firstsection,If the spine is a user spine, then the loft is limited by the spineextremity opposite to the first sectionIf the spine is a computed spine, then the loft islimited:By the last section, if there is no guideBy the guides extremities opposite to the first section, ifthere are guides4The loft will be swept along the spine, then relimited by the lastsection,If the spine is a user spine, then the loft is limited by the spineextremity opposite to the last sectionIf the spine is a computed spine, then the loft islimited:By the first section, if there is no guideBy the guides extremities opposite to the last section, ifthere are guides
- Return type:
int
- remove_face_for_closing(i_section: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveFaceForClosing(Reference iSection)Removes face used to close the lofted surface.Parameters:iSectionsection curve.
- Parameters:
i_section (Reference) –
- Return type:
None
- remove_guide(i_guide: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveGuide(Reference iGuide)Removes a guide curve from the lofted surface.Parameters:iGuideThe guide curve to be removedSub-element(s) supported (seeBoundary object): TriDimFeatEdge and BiDimFeatEdge.
- Parameters:
i_guide (Reference) –
- Return type:
None
- remove_guide_tangent(i_guide: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveGuideTangent(Reference iGuide)Removes a tangent surface of a guide from the loftedsurface.Parameters:iGuideguide curve of the guide from which the tangent will beremoved.
- Parameters:
i_guide (Reference) –
- Return type:
None
- remove_section(i_section: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveSection(Reference iSection)Removes a loft section from the lofted surface.Parameters:iSectionThe loft section to removeSub-element(s) supported (seeBoundary object): TriDimFeatEdge and BiDimFeatEdge.
- Parameters:
i_section (Reference) –
- Return type:
None
- remove_section_point(i_section: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveSectionPoint(Reference iSection)Removes a closing point of a section from the lofted surface. The curvesection must be closed curve.Parameters:iSectionsection curve of the section from which the point will beremoved.
- Parameters:
i_section (Reference) –
- Return type:
None
- remove_section_tangent(i_section: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveSectionTangent(Reference iSection)Removes the tangent surface of a section from the lofted surface. Thesection must be the start section or the end section of theloft.Parameters:iSectionsection curve of the section from which the tangent will beremoved.
- Parameters:
i_section (Reference) –
- Return type:
None
- property section_coupling: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SectionCoupling() As longReturns or sets the type of coupling between sections of theloft.Legal values:1The curves will be coupled according to the curvilinear abscissaratio2if each curve has the same number of tangency discontinuity points,then these points will be coupled, otherwise an error message isdisplayed3if each curve has the same number of tangency and curvaturediscontinuity points, then tangency discontinuity points will be coupled, andafter curvature discontinuity points will be coupled, otherwise an errormessage is displayed4if each curve has the same number of vertices, then these points willbe coupled, otherwise an error message is displayed
- Return type:
int
- set_end_face_for_closing(i_face: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetEndFaceForClosing(Reference iFace)Sets a face to the end section from the lofted surface.Parameters:iFaceThe face to close the loft (Part design only).Sub-element(s) supported (seeBoundary object): Face.
- Parameters:
i_face (Reference) –
- Return type:
None
- set_end_section_tangent(i_tangent_section: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetEndSectionTangent(Reference iTangentSection)Sets a tangent surface to the end section from the loftedsurface.Parameters:iTangentSectionThe tangent surface to be added. The end curve section must lay onthe surface.Sub-element(s) supported (seeBoundary object): Face.
- Parameters:
i_tangent_section (Reference) –
- Return type:
None
- set_spine(i_spine: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetSpine(Reference iSpine)Sets the spine to the lofted surface.Parameters:iSpineThe curve to be added as a spine.Sub-element(s) supported (seeBoundary object): TriDimFeatEdge and BiDimFeatEdge.
- Parameters:
i_spine (Reference) –
- Return type:
None
- set_start_face_for_closing(i_face: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetStartFaceForClosing(Reference iFace)Sets a face to the start section from the lofted surface.Parameters:iFaceThe face to close the loft (Part design only).Sub-element(s) supported (seeBoundary object): Face.
- Parameters:
i_face (Reference) –
- Return type:
None
- set_start_section_tangent(i_tangent_section: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetStartSectionTangent(Reference iTangentSection)Sets a tangent surface to the start section from the loftedsurface.Parameters:iTangentSectionThe tangent surface to be added. The start curve section must layon the surface.Sub-element(s) supported (seeBoundary object): Face.
- Parameters:
i_tangent_section (Reference) –
- Return type:
None
- property smooth_angle_threshold: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SmoothAngleThreshold() As doubleReturns or sets the angular threshold under which discontinuities (movingframe, tangency net on reference surface) will be smoothed.
- Return type:
float
- property smooth_angle_threshold_activity: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SmoothAngleThresholdActivity() As booleanReturns or sets whether a angular threshold is allowed or not duringlofting operation in order to smooth it.Legal values:TRUEThe angular threshold value is used during the loftingoperationFALSEThe angular threshold value is not used during the loftingoperation
- Return type:
bool
- property smooth_deviation: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SmoothDeviation() As doubleReturns or sets the deviation value (length) allowed during loftingoperation in order to smooth it.
- Return type:
float
- property smooth_deviation_activity: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SmoothDeviationActivity() As booleanReturns or sets whether a deviation is allowed or not during loftingoperation in order to smooth it.Legal values:TRUEThe deviation value is used during the loftingoperationFALSEThe deviation value is not used during the loftingoperation
- Return type:
bool