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);
}