pycatia.sketcher_interfaces.spline_2D¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.sketcher_interfaces.spline_2D.Spline2D(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSketcherInterfaces.GeometricElementSketcherInterfaces.Geometry2DSketcherInterfaces.Curve2DSpline2DClass defining a spline in 2D Space.A 2D spline is defined by its constituting control points.- get_control_points() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetControlPoints(CATSafeArrayVariant oCtrlPoints)Returns the control points making up the spline.Parameters:oCtrlPointsThe control points of the splineExample:The following example fetches the list of control pointsdefining thesplinemySpline:mySpline.GetControlPoints ControlPoints
- Return type:
tuple
- get_number_of_control_points() float ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNumberOfControlPoints() As doubleReturns the number of Control Points of the SplineParameters:oNumberThe number of control points*
- Return type:
float
- insert_control_point_after(i_ctrl_point: Point2D, i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InsertControlPointAfter(Point2D iCtrlPoint,long iPosition)Inserts control points in the spline. If a 2D point is given (and not acontrolpoint), a new control point is created and aggregated in thespline.Parameters:iCtrlPointThe new point to be inserted. (@see CATIAPoint2D andCATIAControlPoint2Dfor more information).iPositionThe position at which to insert the point.To insert a new control point as the first element, set iPositionto 0.Example:The following example inserts a control point myCtrlPoint asthe secondelement of the spline mySpline:call mySpline.InsertControlPointAfter (myCtrlPoint,1)
- Parameters:
i_ctrl_point (Point2D) –
i_position (int) –
- Return type:
None