Article | 60002181 |
Type | Wish |
Product | Engine |
Version | 6027 |
Date Added | 4/29/2014 12:00:00 AM |
Fixed | (4/30/2014 12:00:00 AM) |
Submitted by | Soon Hui Ngu |
Summary
Is it possible to choose the text height of the text that is going to be added by cmdText ?
Solution
In version 6028 we added two more commands in the commandaction object like below
summary> Adds an vdMText to a specified point on the screen.
param name="TextString">The string of the vdMText or "USER"/null so the user writes the string to the commandline.
param name="RotationAngle">A double representing the MText's rotation angle in radians or "USER"/null so the user writes the string to the commandline.
param name="InsertionPoint">The insertion point as
param name="Height">The Height of the text or "USER"/null so the user picks this point to the screen or 0.0 so this is overpassed.
param name="maxlinelength">The maximum number of characters per line as integer. Set this to 0 for unlimited characters.
param name="maxlegth">The maximum number of characters as integer for the whole length of the mtext string value. Set this to 0 for unlimited characters.
returns>True if the command was succesfull.
remarks>The command ends with mouse right click or with ESC key which cancels the whole command.
remarks>Raizes the
public bool CmdMText(object TextString, object RotationAngle, object InsertionPoint, object Height, int maxlinelength, int maxlegth)
and also
summary> Adds a text to a specified point on the screen.
param name="TextString">The string of the text or "USER"/null so the user writes the string to the commandline/screen.
param name="InsertionPoint">The insertion point as
param name="Height">The Height of the text or "USER"/null so the user picks this point to the screen or 0.0 so this is overpassed.
param name="RotationAngle">The rotation of the text or "USER"/null so the user chooses the rotation of the text to the screen.
returns>True if the command was succesfull.
remarks>Raizes the
public bool CmdText(object TextString, object InsertionPoint, object Height, object RotationAngle)
Also our default Text and mText will prompt the user to enter the desired height using these two new methods.