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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
SketcherInterfaces.GeometricElement
SketcherInterfaces.Geometry2D
SketcherInterfaces.Curve2D
Spline2D

Class 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:

oCtrlPoints
The control points of the spline

Example:
The following example fetches the list of control points
defining the
splinemySpline:

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 double

Returns the number of Control Points of the Spline

Parameters:

oNumber
The 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 a
control
point), a new control point is created and aggregated in the
spline.

Parameters:

iCtrlPoint
The new point to be inserted. (@see CATIAPoint2D and
CATIAControlPoint2D
for more information).
iPosition
The position at which to insert the point.
To insert a new control point as the first element, set iPosition
to 0.

Example:
The following example inserts a control point myCtrlPoint as
the second
element of the spline mySpline:

call mySpline.InsertControlPointAfter (myCtrlPoint,
1)
Parameters:
  • i_ctrl_point (Point2D) –

  • i_position (int) –

Return type:

None