Reverse the current, change winding density, and compare a current-driven electromagnet with a permanently magnetized body.
Positive current follows the winding and produces a field toward +X by the right-hand rule.
The coil is disconnected: I = 0 A. This field is caused by permanent magnetization, not by current or turn density.