This function is retired. See more information in the 'Remarks' section below.
This method has been retired and replaced by createInput3. Use the new method to define text using an expression that can combine literal text with parameter values.
"sketchTexts_var" is a variable referencing a SketchTexts object. |
"sketchTexts_var" is a variable referencing a SketchTexts object. |
| Type | Description |
| SketchTextInput | Returns a SketchTextInput object that can be used to set additional formatting and is used as input to the add method. |
| Name | Type | Description |
| formattedText | string | The text used for the sketch text. This is the equivalent of the text that would be entered into the "Text" command dialog. It can be a simple string or it can be an expression that combines text with parameter values. In the case of a simple string, no quotes are needed, but for an expression, text should be quoted using a single quote. |
| height | double | The height of the text in centimeters. |
| Name | Description |
| SketchTextInput.setAsAlongPath | Demonstrates the SketchTextInput.setAsAlongPath method. |
| SketchTextInput.setAsFitOnPath | Demoonstrates the SketchTextInput.setAsFitOnPath method. |
| SketchTextInput.setAsMultiLine | Demonstrates the SketchTextInput.setAsMultiLine method. |
| Sketch Text API Sample | Demonstrates creating sketch text by creating both mult-line text and text along a curve. |