CAD参数绘制批注(com接口)

C#中实现代码说明:


private void DrawComment()
{
    MxDrawComment com = new MxDrawComment();
 
    MxDrawPoint pt = new MxDrawPoint();
    pt.x = 200;
    pt.y = 200;
    com.basePoint = pt;
 
    pt.x = 300;
    pt.y = 300;
 
    com.Position = pt;
    com.Text = "Test";
 
    MxDrawPoints pts = new MxDrawPoints();
    pts.Add(-100, -100, 0);
    pts.Add(100, 100, 0);
 
    com.Bounding = pts;
 
    com.ArrowType = 2;
 
    com.BoundingBoxType = 5;
 
    com.Bounding = pts;
 
    com.ShapRadius = 50;
 
    com.TextHeight = 100;
 
    axMxDrawX1.DrawEntity(com);
 
    axMxDrawX1.ZoomAll();
}

posted on 2019-06-20 16:23  梦想CAD控件  阅读(138)  评论(0)    收藏  举报

导航