pycatia.drafting_interfaces.drawing_text_range¶
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.drafting_interfaces.drawing_text_range.DrawingTextRange(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchDrawingTextRangeRepresents a drawing text range, or contiguous area, in a drawingtext.A range is a contiguous area in a drawing text defined by the position of astarting and ending character, or by the position of a starting character and alength expressed in number of characters.- get_text_range(i_start: int, i_end: int) DrawingTextRange ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetTextRange(long iStart,long iEnd) As DrawingTextRangeReturns a drawing text range within another drawing text range. The textrange is retrieved using its starting and ending characterpositions.Parameters:iStartThe position of the drawing text range starting characteriEndThe position of the drawing text range ending characterExample:This example retrieves in extractedTextRange the drawing text rangethat begins at the eighth character and end at the fifteenth character of theMyTextRange drawing text range.Dim extractedTextRange As DrawingTextRangestart = 8end = 15extractedTextRange = MyTextRange.GetTextRange(start, end)
- Parameters:
i_start (int) –
i_end (int) –
- Return type:
- insert_after(i_string: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub InsertAfter(CATBSTR iString)Inserts a character string at the end of the drawing textrange.Parameters:iStringThe character string to be addedExample:This example inserts the String character string at the end of theMyTextRange drawing text range.String = “String to insert after”MyTextRange.InsertAfter(String)Set MyTextProperties = MyTextRange.TextPropertiesMyTextProperties.UpdateSee also:DrawingTextProperties.Update
- Parameters:
i_string (str) –
- Return type:
None
- insert_before(i_string: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub InsertBefore(CATBSTR iString)Inserts a character string at the beginning of the drawing textrange.Parameters:iStringThe character string to be addedExample:This example inserts the String character string at the beginning ofthe MyTextRange drawing text range.String = “String to insert before”MyTextRange.InsertBefore(String)Set MyTextProperties = MyTextRange.TextPropertiesMyTextProperties.UpdateSee also:DrawingTextProperties.UpdateCopyright © 1999-2011, Dassault Systèmes. All rightsreserved.
- Parameters:
i_string (str) –
- Returns:
None
- property length: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Length() As long (Read Only)Returns the number of characters of the drawing textrange.Example:This example retrieves in NbChar the number of characters of theMyTextRange drawing text range.NbChar = MyTextRange.Length
- Return type:
int
- property start: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Start() As long (Read Only)Returns the starting character position of the drawing textrange.Example:This example retrieves in StartCharPosthe starting character positionof the MyTextRange drawing text range.StartCharPos = MyTextRange.Start
- Return type:
int
- property text: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Text() As CATBSTRReturns or sets the character string making up the drawing textrange.Example:This example sets in text the character string that makes up theMyTextRange drawing text range.MyTextRange.Text = textSet MyTextProperties = MyTextRange.TextPropertiesMyTextProperties.UpdateSee also:DrawingTextProperties.Update
- Return type:
str
- property text_properties: DrawingTextProperties¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property TextProperties() As DrawingTextProperties (ReadOnly)Deprecated:V5R18 use DrawingWelding.TextProperties This method has not to be usedto manage the text range properties. Text properties is only applied on thewhole text, not on a sub text identified by a text range. Returns the drawingtext range properties.Example:This example returns in Prop the text properties of the MyTextRangedrawing text range.Dim Prop As CATIADrawingTextPropertiesSet Prop = MyTextRange.TextProperties(String)
- Return type: