0
点赞
收藏
分享

微信扫一扫

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

Android开发指南 2022-07-27 阅读 81


C#中实现代码说明:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

​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();​

​}​

效果展示:

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

举报

相关推荐

0 条评论