1. An anchoring device for use within a body cavity during a surgical procedure, the anchoring device comprising: an external assembly having a first magnetic component; an internal assembly having a second magnetic component, the internal assembly being sized for placement inside the body cavity; an electrical source supplying an electrical current, the electrical source being connected with one of the first magnetic component and the second magnetic component, the electrical current producing a magnetic field about the connected magnetic component, the magnetic field providing an attraction force to draw together the internal assembly and the external assembly, the attraction force providing a reaction force from a wall of the body cavity against the internal assembly a controller operably connected to the electrical source; and a force module disposed within the internal assembly, the force module configured to determine a magnitude of the reaction force, the force module being in operable communication with the controller, the controller providing an electrical resistance to control the electrical current in response to the magnitude determined by the force module.