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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSketcherInterfaces.GeometricElementSketcherInterfaces.Geometry2DSketcherInterfaces.Curve2DLine2DClass 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 theline.Parameters:oDirection[0]The X Coordinate of the unit vector pointing in the direction ofthe lineoDirection[1]The Y Coordinate of the unit vector pointing in the direction ofthe 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 lineParameters:oPoint[0]The X Coordinate of a point lying on the lineoPoint[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 lineParameters:iXThe X Coordinate of a point lying on the lineiYThe Y Coordinate of a point lying on the lineiXDirectionThe X Coordinate of the unit vector pointing in the direction ofthe lineiYDirectionThe Y Coordinate of the unit vector pointing in the direction ofthe line
- Parameters:
i_x (float) –
i_y (float) –
i_x_direction (float) –
i_y_direction (float) –
- Return type:
None