Inserts sketch text.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertSketchText( _
ByVal Ptx As System.Double, _
ByVal Pty As System.Double, _
ByVal Ptz As System.Double, _
ByVal Text As System.String, _
ByVal Alignment As System.Integer, _
ByVal FlipDirection As System.Integer, _
ByVal HorizontalMirror As System.Integer, _
ByVal WidthFactor As System.Integer, _
ByVal SpaceBetweenChars As System.Integer _
) As System.Object |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim Ptx As System.Double
Dim Pty As System.Double
Dim Ptz As System.Double
Dim Text As System.String
Dim Alignment As System.Integer
Dim FlipDirection As System.Integer
Dim HorizontalMirror As System.Integer
Dim WidthFactor As System.Integer
Dim SpaceBetweenChars As System.Integer
Dim value As System.Object
value = instance.InsertSketchText(Ptx, Pty, Ptz, Text, Alignment, FlipDirection, HorizontalMirror, WidthFactor, SpaceBetweenChars) |
Parameters
- Ptx
- X coordinate of starting point of text block
- Pty
- Y coordinate of starting point of text block
- Ptz
- Z coordinate of starting point of text block
- Text
Text to insert (see Remarks)
- Alignment
-
0 = Left
-
1 = Center
-
2 = Right
-
3 = Fully justified
(see Remarks)
- FlipDirection
1 to flip text vertically about the selected entity, 0 to not (see Remarks)
- HorizontalMirror
1 to flip text horizontally, 0 to not
- WidthFactor
6 <= Percentage by which to evenly widen each character in the text block < = 1667
- SpaceBetweenChars
1 <= Percentage of space between each character in the text block <= 10000; valid only if Alignment != 3
Return Value
Sketch text
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus FCS, Revision Number 10.0