public static void DrawArea(Manifold.Interop.Drawing p_Drawing, Manifold.Interop.Geom p_objGeomArea) { try { Manifold.Interop.Table objTable = (Manifold.Interop.Table)p_Drawing.OwnedTable; StringBuilder sbSQL = new StringBuilder(); sbSQL.Append("INSERT INTO [" + objTable.Name + "] ([Geom (I)]) VALUES (AssignCoordSys(CGeom(CGeomWKB(\"" + p_objGeomArea.ToTextWKT() + "\")),CoordSys(\"" + objTable.Name + "\" as COMPONENT)));"); Manifold.Interop.Query qryQuery = p_Drawing.Document.NewQuery("Temp_AddLine", false); qryQuery.Text = sbSQL.ToString(); //Commit query qryQuery.RunEx(false); //Remove the query p_Drawing.Document.ComponentSet.Remove(qryQuery); } catch (Exception objEx) { throw; } }