pycatia.sketcher_interfaces.line_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.line_2D.Line2D(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
Line2D

Class defining a line in 2D Space.
get_direction() tuple

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Sub GetDirection(CATSafeArrayVariant oDirection)

Returns the unit-vector pointing in the direction of the
line.

Parameters:

oDirection[0]
The X Coordinate of the unit vector pointing in the direction of
the line
oDirection[1]
The Y Coordinate of the unit vector pointing in the direction of
the line
Return type:

tuple

get_origin() tuple

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns a point lying on the line

Parameters:

oPoint[0]
The X Coordinate of a point lying on the line
oPoint[1]
The Y Coordinate of a point lying on the line
Return type:

tuple

set_data(i_x: float, i_y: float, i_x_direction: float, i_y_direction: float) None

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Sub SetData(double iX,
double iY,
double iXDirection,
double iYDirection)

Modifies the caracteristics of the infinite line

Parameters:

iX
The X Coordinate of a point lying on the line
iY
The Y Coordinate of a point lying on the line
iXDirection
The X Coordinate of the unit vector pointing in the direction of
the line
iYDirection
The Y Coordinate of the unit vector pointing in the direction of
the line
Parameters:
  • i_x (float) –

  • i_y (float) –

  • i_x_direction (float) –

  • i_y_direction (float) –

Return type:

None