[MSCE C#]TextBlockProperties的AnnotationScale为什么设置无效?

如下代码中第2个创建的文字AnnotationScale设置为2,但比例没变,请问是为什么?

public static void CreateTextElement(DgnModel dgnModel)
{
    double uor = dgnModel.GetModelInfo().UorPerMeter;
    DgnTextStyle dgnTextStyle = DgnTextStyle.GetSettings(dgnModel.GetDgnFile());
    TextBlockProperties textBlockProperties = new TextBlockProperties(dgnTextStyle, dgnModel);
    ParagraphProperties paragraphProperties = new ParagraphProperties(dgnTextStyle, dgnModel);
    RunProperties runProperties = new RunProperties(dgnTextStyle, dgnModel);

    TextBlock textBlock0 = new TextBlock(textBlockProperties, paragraphProperties, runProperties, dgnModel);
    textBlock0.AppendText("图形软件");
    TextHandlerBase textHandlerBase0 = TextHandlerBase.CreateElement(null, textBlock0);
    textHandlerBase0.AddToModel();

    textBlockProperties.AnnotationScale = 2;
    TextBlock textBlock1 = new TextBlock(textBlockProperties, paragraphProperties, runProperties, dgnModel);
    textBlock1.AppendText("图形软件");
    TextHandlerBase textHandlerBase1 = TextHandlerBase.CreateElement(null, textBlock1);
    DTransform3d transform = DTransform3d.FromTranslation(new DPoint3d(3, 0, 0) * uor);
    textHandlerBase1.ApplyTransform(new TransformInfo(transform));
    textHandlerBase1.AddToModel();
}

Parents Reply Children
No Data