CAD参数绘制mcdbsolid对象(com接口)
Posted lihao2014
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CAD参数绘制mcdbsolid对象(com接口)相关的知识,希望对你有一定的参考价值。
C#中实现代码说明:
private void DrawSolid()
//绘McDbSolid对象
axMxDrawX1.AddLinetype("MLineType1", "");
axMxDrawX1.LineType = "MLineType1";
axMxDrawX1.DrawCADColor = 255;
axMxDrawX1.DrawSolid(0, 50, 30, 50, 30, 40, 0, 40);
axMxDrawX1.AddLinetype("MLineType2", "");
axMxDrawX1.LineType = "MLineType2";
axMxDrawX1.DrawCADColor = 65280;
axMxDrawX1.DrawSolid(50, 60, 30, 60, 30, 80, 50, 80);
axMxDrawX1.AddLinetype("MLineType3", "");
axMxDrawX1.LineType = "MLineType3";
axMxDrawX1.DrawCADColor = 65535;
axMxDrawX1.DrawSolid(90, 20, 35, 20, 35, 40, 90, 40);
axMxDrawX1.AddLinetype("MLineType4", "");
axMxDrawX1.LineType = "MLineType4";
axMxDrawX1.DrawCADColor = 16711680;
axMxDrawX1.DrawSolid(150, 90, 100, 90, 100, 40, 150, 40);
效果展示:
用户可以通过点击绘mcdbsolid对象按钮,在CAD控件视区显示在C#中设置好的 mcdbsolid对象 。如下图所示:
以上是关于CAD参数绘制mcdbsolid对象(com接口)的主要内容,如果未能解决你的问题,请参考以下文章