public void InsertAnd() { Point3d insPt; if (Lab2.Selector.Point("\nPunto de inserción", out insPt)) { String dllPath = System.Reflection.Assembly.GetAssembly(typeof(Commands)).Location; String dir = dllPath.Substring(0, dllPath.LastIndexOf('\\')); string file = Path.Combine(dir, "Bloques", "AND.dwg"); BlockManager blkMan; blkMan = new BlockManager(file); try { blkMan.Load("AND"); ObjectId refId = blkMan.Insert(insPt); blkMan.CreateBBox(refId); //Dibujar las cajas DBMan.DrawGeometry(blkMan.Box.Geometry, true); DBMan.DrawGeometry(blkMan.BoxInputA.Geometry, true); DBMan.DrawGeometry(blkMan.BoxInputB.Geometry, true); DBMan.DrawGeometry(blkMan.BoxOutput.Geometry, true); } catch (System.Exception e) { Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; ed.WriteMessage("\n", e.Message); } } }