NXOpen.UF.Drf.GetTextSubstring¶
-
Drf.
GetTextSubstring
()¶ Refer to UF_DRF_get_text_substring for documentation.
Signature:
GetTextSubstring(segmentNumber, annData, substringInstance)
Parameters: - segmentNumber (int) – The text segment number to work on.
- annData (int) – The data defining the drafting object. See UF_DRF_ask_ann_data.
- substringInstance (int) – The substring number that we want to find.
Returns: A Tuple
Return type: A tuple consisting of (textType,numberOfSubstring,substring,substringPosition,substringCharacteristic)
textType(int): The type of the substring: 0 = string 1 = superscript 2 = subscript 3 = symbol
numberOfSubstring(int): The number of bytes in the returned substring.
substring(str): The substring found.
substringPosition(list of float): The x and y coordinates for the start of this substring.
substringCharacteristic(list of float): Six word array of characteristics of this substring: [0] = The character size [1] = The physical length of the substring [2] = The scale from the original character size of the string. [3] = The scale from the original character gap. [4] = The character slant angle. [5] = The text angle.
License requirements: DRAFTING