Complete the code to create a single-line text object at point (0,0,0).
text_obj = acad.model.AddText("Hello", [1], 2.5)
The AddText method requires a Point3d object to specify the insertion point for the text.
Complete the code to set the text height of the DTEXT object to 3.0.
text_obj.[1] = 3.0
The Height property controls the height of the single-line text.
Fix the error in the code to rotate the DTEXT object by 45 degrees (in radians).
text_obj.[1](0.7854)
The Rotate method is used to rotate the text object by a given angle in radians.
Fill both blanks to create a DTEXT object with text 'Data' at point (5,5,0) and set its color to red.
text_obj = acad.model.AddText([1], [2], 2.0) text_obj.Color = 1
The AddText method requires the text string and the insertion point as arguments.
Fill all three blanks to create a DTEXT object with text 'Report', set its height to 4.0, and rotate it by 90 degrees (in radians).
text_obj = acad.model.AddText([1], [2], 1.0) text_obj.[3] = 4.0 text_obj.Rotate(Point3d(0, 0, 0), 1.5708)
The AddText method needs the text string and insertion point. The Height property sets the text size.
