CAD drawings are filled with indispensable objects, in the mechanical design industry, it is often necessary to cut parts to show internal details, and these are taken to represent the cross section will be filled; in the engineering design industry, some of the special materials or terrain, will be represented by filled.
Implemented in C # code description:
void DrawPathToHatch Private () { axMxDrawX1.PathMoveTo (0, 30); // path at points axMxDrawX1.PathLineTo (100, 50); // path at points axMxDrawX1.PathLineTo (100, 30); // path the point at axMxDrawX1.PathLineTo (0, 30); axMxDrawX1.AddLinetype ( "MLineType1", ""); axMxDrawX1.LineType = "MLineType1"; axMxDrawX1.DrawCADColor = 255; axMxDrawX1.DrawPathToHatch (. 1); // - -------------------------------------------------- ------------------------------------------- axMxDrawX1.PathMoveTo (30, 70 ); // path at points axMxDrawX1.PathLineTo (200, 70); at one point // path axMxDrawX1.PathLineTo (200, 120); about // path points axMxDrawX1.PathLineTo (30, 70); axMxDrawX1.AddLinetype ( "MLineType2", ""); axMxDrawX1.LineType = "MLineType2"; axMxDrawX1.DrawCADColor = 65280; axMxDrawX1.DrawPathToHatch (. 1); // ------ -------------------------------------------------- --------------------------------------- axMxDrawX1.PathMoveTo (110, 30); // paths at points axMxDrawX1.PathLineTo (150, 60); // path at points axMxDrawX1.PathLineTo (150, 30); // path at points axMxDrawX1.PathLineTo (110, 30); axMxDrawX1.AddLinetype ( "MLineType3", ""); axMxDrawX1.LineType = "MLineType3"; axMxDrawX1.DrawCADColor = 65535; axMxDrawX1.DrawPathToHatch (. 1); // ----------------------------------------- -------------------------------------------------- ---- axMxDrawX1.PathMoveTo (200 is, 30); // path at points axMxDrawX1.PathLineTo (300, 30); // path at points axMxDrawX1.PathLineTo (300, 60); // path about points axMxDrawX1.PathLineTo (200 is, 30); axMxDrawX1.AddLinetype ( "MLineType4", ""); axMxDrawX1.LineType = "MLineType4"; // set the color axMxDrawX1.DrawCADColor = 16.71168 million; // the closed path axMxDrawX1.DrawPathToHatch ( 1); }