pycatia.hybrid_shape_interfaces.hybrid_shape_polyline¶
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_polyline.HybridShapePolyline(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.HybridShapeHybridShapePolylineRepresents the hybrid shape polyline curve object.Role: To access or set the data of the hybrid shape polyline object. This dataincludes:ElementsRadiusClosureUse the HybridShapeFactory object to create a HybridShapePolylineobject.- property closure: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Closure() As booleanReturns or sets the flag to decide closure of thepolyline.Parameters:Closure(For get_Closure) Returns or sets the closurepropertyExample:This example retrieves the closure property of the polyline ofthe HybShpPolyline hybrid shape polyline.Dim HybShpPolClosure As booleanHybShpPolClosure = HybShpPolyline.Closure
- Return type:
bool
- get_element(i_position: int, o_element: Reference, o_radius: Length) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetElement(long iPosition,Reference oElement,Length oRadius)Returns the element of the polyline.Parameters:iPositionPosition at which the element is to be retrieved.oElementReference to the element.ioRadiusLength to the radius.Example:This example retrieves the element and radius of the polylineat specified position of the HybShpPolyline hybrid shapepolyline.Dim HybShpPolylineElement As ReferenceDim HybShpPolylineRadius As ReferenceHybShpPolyline.GetElement 1,HybShpPolylineElement,HybShpPolylineRadius
- insert_element(i_point: Reference, i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InsertElement(Reference iPoint,long iPosition)Inserts the element at a specified position in thepolyline.Parameters:iPointReference of the point object to be inserted.iPositionPosition at which the element should be inserted.Example:This example inserts the element in the polyline of theHybShpPolyline hybrid shape polyline.HybShpPolyline.InsertElement PointReference,1
- Parameters:
i_point (Reference) –
i_position (int) –
- Return type:
None
- property number_of_elements: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property NumberOfElements() As long (Read Only)Returns the number of elements of the polyline.Parameters:NumberOfElementsNumber of elements in the polyline.Example:This example retrieves the number of elements in the polylineof the HybShpPolyline hybrid shape polyline.Dim HybShpPolNoOfEle As longHybShpPolNoOfEle = HybShpPolyline.NumberOfElements
- Return type:
int
- remove_element(i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveElement(long iPosition)Removes the element at a specified position in thepolyline.Parameters:iPositionPosition from which the element should be should beremoved.Example:This example removes the element in the polyline of theHybShpPolyline hybrid shape polyline.HybShpPolyline.RemoveElement 1
- Parameters:
i_position (int) –
- Return type:
None
- replace_element(i_point: Reference, i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ReplaceElement(Reference iPoint,long iPosition)Replaces the element at a specified position in thepolyline.Parameters:iPointReference of the point object that will replace the old element.iPositionPosition at which the element should be inserted.Example:This example replaces the element in the polyline of theHybShpPolyline hybrid shape polyline.HybShpPolyline.ReplaceElement PointReference, 1
- Parameters:
i_point (Reference) –
i_position (int) –
- Return type:
None
- set_radius(i_position: int, i_radius: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetRadius(long iPosition,double iRadius)Sets the radius at specified position of the polyline.Parameters:iPositionPosition at which radius should be setiRadiusValue of the radius to be set.Example:This example sets the radius at the specific position of thepolyline of the HybShpPolyline hybrid shapepolyline.HybShpPolyline.SetRadius 1, 10
- Parameters:
i_position (int) –
i_radius (float) –
- Return type:
None