【MSCE C#】引线标注

请问下老师有 c# 引线标注的示例吗?

Parents
  •  DgnFile dgnFile = Session.Instance.GetActiveDgnFile();
                DgnModel dgnModel = Session.Instance.GetActiveDgnModel();
                TextBlockProperties txtBlockProp = new TextBlockProperties(dgnModel);
                txtBlockProp.IsViewIndependent = false;
                ParagraphProperties paraProp = new ParagraphProperties(dgnModel);
                DgnTextStyle txtStyle = DgnTextStyle.GetSettings(dgnFile);
    
                RunProperties runProp = new RunProperties(txtStyle, dgnModel);
                TextBlock txtBlock = new TextBlock(txtBlockProp, paraProp, runProp, dgnModel);
                txtBlock.AppendText("This is a textBlock Element");
                DimensionStyle dimStyle = new DimensionStyle("Untitled", dgnFile);
                DPoint3d[] ptArr = new DPoint3d[3];
                ptArr[0] = DPoint3d.Zero;
                ptArr[1] = new DPoint3d(10000, 10000, 0); 
                NoteCellHeaderElement noteEle = new NoteCellHeaderElement(out Element leaderEle, txtBlock, dimStyle, dgnModel, ptArr);
                noteEle.AddToModel(out leaderEle, dgnModel);

Reply
  •  DgnFile dgnFile = Session.Instance.GetActiveDgnFile();
                DgnModel dgnModel = Session.Instance.GetActiveDgnModel();
                TextBlockProperties txtBlockProp = new TextBlockProperties(dgnModel);
                txtBlockProp.IsViewIndependent = false;
                ParagraphProperties paraProp = new ParagraphProperties(dgnModel);
                DgnTextStyle txtStyle = DgnTextStyle.GetSettings(dgnFile);
    
                RunProperties runProp = new RunProperties(txtStyle, dgnModel);
                TextBlock txtBlock = new TextBlock(txtBlockProp, paraProp, runProp, dgnModel);
                txtBlock.AppendText("This is a textBlock Element");
                DimensionStyle dimStyle = new DimensionStyle("Untitled", dgnFile);
                DPoint3d[] ptArr = new DPoint3d[3];
                ptArr[0] = DPoint3d.Zero;
                ptArr[1] = new DPoint3d(10000, 10000, 0); 
                NoteCellHeaderElement noteEle = new NoteCellHeaderElement(out Element leaderEle, txtBlock, dimStyle, dgnModel, ptArr);
                noteEle.AddToModel(out leaderEle, dgnModel);

Children