CAD参数绘制二维码(com接口)

C#中实现代码说明:

1

2

3

4

5

6

7

8

9

10

11

12

13

private void DrawQrCode()

{

    MxDrawUiPrPoint getPoint = new MxDrawUiPrPoint();

    getPoint.message = "点取插入点:";

    if (getPoint.go() != MCAD_McUiPrStatus.mcOk)

        return;

    MxDrawQrCode qrCode = new MxDrawQrCode();

    qrCode.Center = getPoint.value();

    qrCode.Text = "www.mxdraw.com";

    qrCode.Scale = 20;

    qrCode.Rotation = 30 * 3.1415925 / 180.0;

    axMxDrawX1.DrawEntity(qrCode);

}

效果展示:

c#drawqcode.png

猜你喜欢

转载自blog.csdn.net/u013725001/article/details/93469505