The conditions to obtain permanent electromagnet if a current-carrying solenoid is used are-
1. The current through the solenoid should be direct current.
2. The magnetic material should be of high retentivity and should not lose it easily.
3. The rod inside is made of a magnetic material such as steel.
4. A soft iron core should be placed inside a solenoid.