CAD drawing parameters radial dimensions (com interface)

The main use of Function:

_DMxDrawX::DrawDimRadial

Draw a radius dimensions. Details are as follows:

parameter Explanation

DOUBLE dCenterX

X is the midpoint value of the curve labeled

DOUBLE dCenterY

Curve midpoint Y value is marked

DOUBLE dChordPointX

X value on the point graph is marked

DOUBLE dChordPointY

Point Y value on the graph is marked

DOUBLE dLeaderLength

Input arrows length

Implemented in C # code description:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

private void DrawDimRadial()

{

    axMxDrawX1.AddDimStyle("MyDimStyle""41,0.18,141,0.09,40,200""77,1,271,3""""");

    axMxDrawX1.DimStyle = "MyDimStyle";

    //把颜色改回黑白色

    axMxDrawX1.DrawCADColorIndex = 0;

    //把线型改成实线

    axMxDrawX1.LineType = "";

    //设置线宽 4

    axMxDrawX1.LineWidth = 0;

    //绘制一个半径标注

    //参数一为被标注的曲线的中点X值 ,参数二为被标注的曲线的中点Y值

    //参数三为被标注的曲线上的点X值,参数四为被标注的曲线上的点Y值

    //参数五为输入箭头长度

    axMxDrawX1.DrawDimRadial(50, 660, 50, 650, 0);

    //把所有的实体都放到当前显示视区

    axMxDrawX1.ZoomAll();

    //更新视区显示

    axMxDrawX1.UpdateDisplay();

}

Show results:

Draw radius dimensions by clicking on a button, trigger DrawDimRadial () event, CAD controls the viewport display to set a good radius dimensions in C #. As shown below:

c#drawdim2.png

Guess you like

Origin blog.csdn.net/u013725001/article/details/93469249