pycatia.navigator_interfaces.marker_3D¶
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.navigator_interfaces.marker_3D.Marker3D(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMarker3DRepresents a marker 3D.- add_object(i_object: AnyObject) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddObject(AnyObject iObject)Adds a link to an object.Parameters:iObjectThe object to be linked.Example:This example links ThisProduct to the NewMarker3D marker3D.NewMarker3D.AddObject(ThisProduct)
- Parameters:
i_object (AnyObject) –
- Return type:
None
- count_object() → int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func CountObject() As longReturns the number of objects which are linked to the marker3D.Example:This example reads the number of objects in the marker3DNewMarker3D.Dim number As Integernumber = NewMarker3D.CountObject
- Return type:
int
- property fill: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Fill() As longReturns or sets the marker 3D’s filling status (1 the figure is filled, 0the figure is not filled).Example:This example retrieves the filling status of NewMarker3D marker3D.Dim status As Integerstatus = NewMarker3D.Fill
- Return type:
int
- property frame: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Frame() As longReturns or sets the marker 3D’s framing status (1 the figure is framed, 0the figure is not framed).Example:This example retrieves the framing status of NewMarker3D marker3D.Dim status As Integerstatus = NewMarker3D.Frame
- Return type:
int
- get_object_positions(i_index: cat_variant, o_coordinates: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetObjectPositions(CATVariant iIndex,CATSafeArrayVariant oCoordinates)Retrieves the coordinates of the anchor point of the marker on theobject.Parameters:iIndexThe index of the object in the marker 3D. The index of the firstobject is 1, and the index of the last object is CountObject.oCoordinatesThe coordinates of the anchor pointoCoordinates(0) is the X coordinate of the anchorpointoCoordinates(1) is the Y coordinate of the anchorpointoCoordinates(2) is the Z coordinate of the anchor pointExample:This example retrieves the coordinates of the anchor in theNewMarker3D marker 3D.Dim Coordinates (3)NewMarker3D.GetObjectPositions Coordinates
- Parameters:
i_index (cat_variant) –
o_coordinates (tuple) –
- Return type:
None
- get_text_positions(o_coordinates: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetTextPositions(CATSafeArrayVariant oCoordinates)Retrieves the coordinates of the positions of a text marker 3D. Thebottom-left corner of the text is anchored to a givenpoint.Returns:The coordinates of the text anchor pointoCoordinates(0) is the X coordinate of the text anchorpointoCoordinates(1) is the Y coordinate of the text anchorpointoCoordinates(2) is the Z coordinate of the text anchor pointExample:This example retrieves the coordinates of the text in theNewMarker3D marker 3D.Dim Coordinates (2)NewMarker3D.GetTextPositions Coordinates
- Parameters:
o_coordinates (tuple) –
- Return type:
None
- item_object(i_index: cat_variant) → AnyObject¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func ItemObject(CATVariant iIndex) As CATBaseDispatchReturns an object which is linked to the marker 3D using itsindex.Parameters:iIndexThe index of the object in the marker 3D. The index of the firstobject is 1, and the index of the last object is CountObject.Returns:The retrieved objectExample:This example retrieves in ThisObject the ninthobjectfrom the NewMarker3D marker 3D.Dim ThisObject As Marker3DSet ThisObject = NewMarker3D.ItemObject(9)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove_object(i_index: cat_variant) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveObject(CATVariant iIndex)Removes an object which is linked to the marker 3D using itsindex.Parameters:iIndexThe index of the object in the marker 3D. The index of the firstobject is 1, and the index of the last object is CountObject.Example:This example removes the ninth objectfrom the NewMarker3D marker 3D.NewMarker3D.RemoveObject(9)
- Parameters:
i_index (cat_variant) –
- Return type:
None
- set_object_positions(i_index: cat_variant, i_coordinates: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetObjectPositions(CATVariant iIndex,CATSafeArrayVariant iCoordinates)Sets the coordinates of the anchor point of the marker on theobject.Parameters:iIndexThe index of the object in the marker 3D. The index of the firstobject is 1, and the index of the last object is CountObject.iCoordinatesThe coordinates of the anchor pointoCoordinates(0) is the X coordinate of the anchorpointoCoordinates(1) is the Y coordinate of the anchorpointoCoordinates(2) is the Z coordinate of the anchor pointExample:This example sets the coordinates of the anchor in the NewMarker3Dmarker 3D.Dim Coordinates (3)NewMarker3D.SetObjectPositions Coordinates
- Parameters:
i_index (cat_variant) –
i_coordinates (tuple) –
- Return type:
None
- set_text_positions(i_coordinates: tuple) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetTextPositions(CATSafeArrayVariant iCoordinates)Sets the coordinates of the positions of a text marker 3D.Parameters:iCoordinatesThe coordinates of the text anchor pointoCoordinates(0) is the X coordinate of the text anchorpointoCoordinates(1) is the Y coordinate of the text anchorpointoCoordinates(2) is the Z coordinate of the text anchor pointExample:This example sets the coordinates of the text in the NewMarker3Dmarker 3D.Dim Coordinates (2)NewMarker3D.SetTextPositions Coordinates
- Parameters:
i_coordinates (tuple) –
- Return type:
None
- property text: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Text() As CATBSTRReturns or sets the text for a text marker 3D.Example:This example reads the text of NewMarker3D marker3D.Dim text As Stringtext = NewMarker3D.Text
- Return type:
str
- property text_font: str¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextFont() As CATBSTRReturns or sets the text’s font for a marker 3D.Example:This example retrieves the text’s font of NewMarker3D marker3D.Dim font As Stringfont = NewMarker3D.TextFont
- Return type:
str
- property text_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextOrientation() As CatMarkerTextOrientationReturns or sets the orientation of text.Example:This example retrieves the orientation of NewMarker3D marker3D.Dim orientation As CatMarkerTextOrientationorientation = NewMarker3D.TextOrientation
- Returns:
enum cat_marker_text_orientation
- Return type:
int
- property text_size: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property TextSize() As doubleReturns or sets the text’s size for a marker 3D.Example:This example retrieves the text’s size of NewMarker3D marker3D.Dim size As Doublesize = NewMarker3D.TextSize
- Return type:
float
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Type() As CatMarker3DType (Read Only)Returns the type of the marker 3D.Example:This example reads the type of NewMarker3D marker3D.Dim type As CatMarker3DTypetype = NewMarker3D.Type
- Returns:
eum cat_marker_3d_type
- Return type:
int
- update() → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Update()Updates the the marker 3D: that is to take into account all modificationswhich occur since last update.Example:This example updates the NewMarker3D marker 3D.NewMarker3D.Update
- Return type:
None