The Text class contains method to manipulate a Text entity object.
The arrow_type method retrieves the current arrow type used for the leader
text.
Valid arrow types are 0 for none, 2 for dot, 3 for closed arrow, 4 for open
arrow.
Returns:
type = text.arrow_type=0
The arrow_type= method sets the arrow type used for leader text.
Valid arrow types are 0 for none, 2 for dot, 3 for closed arrow, 4 for open
arrow.
Arguments:
Returns:
arrow = text.arrow_type=type
The display_leader= method accepts true or false for whether to display the
leader.
Leader text that is not displayed is set to Hidden type.
Arguments:
Returns:
leader = text.display_leader=true
The display_leader? method returns the status of the leader.
Returns:
status = text.display_leader
The has_leader method is used to determine if the Text object has a leader.
Returns:
status = text.has_leader
The leader_type method retrieves the currently set leader type.
Arguments:
Returns:
leader = text.leader_type
The leader_type = method sets the leader type.
Valid leader types are 0 for none, 1 for View based, and 2 for Pushpin
Arguments:
Returns:
leader = text.leader_type=1
The line_weight method returns a line weight in number of pixels.
Defalt line weight is 1.
Returns:
weight = text.line_weight
The line_weight= method sets the line weight in pixels.
Default line weight is 1.
Arguments:
Returns:
newweight = text.line_weight = 4
The point method is used to get the point associated with the text.
Returns:
point3d = text.point
The point= method is used to set the point associated with the text.
Arguments:
Returns:
status = text.point = point3d
The set_text method is used to set the text within a Text object without recording an Undo operation.
Arguments:
Returns:
text = text.set_text "This is another text"
The text method is used to retrieve the string version of a Text object.
Returns:
textstring = text.text
The text= method is used to set the string version of a Text object.
Returns:
textstring = text.text= "text"
The vector method is used to get the vector associated with the text.
Returns:
vector = text.vector
The vector= method is used to set the vector associated with the text.
Arguments:
Returns:
vector = text.vector