Complete the code to enable annotative property for a text object.
textObj.Annotative = [1];Setting Annotative to true enables the object to scale automatically in multi-scale drawings.
Complete the code to add a scale to an annotative object.
textObj.AddScale([1]);The scale name must be a string like "1:50" to add it properly.
Fix the error in the code to check if an object is annotative.
if (obj.[1]) { // do something }
The correct property name is Annotative with capital A and no prefix.
Fill both blanks to create an annotative text object and add a scale.
var textObj = new DBText(); textObj.[1] = true; textObj.[2]("1:100");
First, set Annotative to true, then call AddScale with the scale name.
Fill all three blanks to create an annotative MText object, set its content, and add a scale.
var mtextObj = new MText(); mtextObj.[1] = true; mtextObj.[2] = "Multi-scale annotation"; mtextObj.[3]("1:200");
Set Annotative to true, assign text to Text, then add scale with AddScale.
