case "G37":
{
PolyLine PL = new PolyLine(State.LastShapeID++);
foreach (var a in State.PolygonPoints)
{
PL.Add(a.X, a.Y);
}
PL.ClearanceMode = State.ClearanceMode; //Need Add This Line
PL.Close();
State.NewShapes.Add(PL);
State.PolygonPoints.Clear();
State.PolygonMode = false;
}
break;
case "G37":
{
PolyLine PL = new PolyLine(State.LastShapeID++);
foreach (var a in State.PolygonPoints)
{
PL.Add(a.X, a.Y);
}
PL.ClearanceMode = State.ClearanceMode; //Need Add This Line
PL.Close();
State.NewShapes.Add(PL);
State.PolygonPoints.Clear();