A system whereby a magnetic tip attached to a surgical tool is detected, displayed and influenced positionally so as to allow diagnostic and therapeutic procedures to be performed rapidly, accurately, simply, and intuitively is described. The tools that can be so equipped include catheters, guidewires, and secondary tools such as lasers and balloons, in addition biopsy needles, endoscopy probes, and similar devices. The magnetic tip allows the position and orientation of the tip to be determined without the use of x-rays by analyzing a magnetic field. The magnetic tip further allows the tool tip to be pulled, pushed, turned, and forcefully held in the desired position by applying an appropriate magnetic field external to the patients body. A Virtual Tip serves as an operator control. Movement of the operator control produces corresponding movement of the magnetic tip inside the patients body. Additionally, the control provides tactile feedback to the operators hand in the appropriate axis or axes if the magnetic tip encounters an obstacle. The output of the control combined with the magnetic tip position and orientation feedback allows a servo system to control the external magnetic field by pulse width modulating the positioning electromagnet. Data concerning the dynamic position of a moving body part such as a beating heart offsets the servo systems response in such a way that the magnetic tip, and hence the secondary tool is caused to move in unison with the moving body part. The tip position and orientation information and the dynamic body part position information are also utilized to provide a display that allows three dimensional viewing of the magnetic tip position and orientation relative to the body part.