Marium Varinauskas, 28, tried to strike the officer on the head with his penis when she was called out to his flat, but she got out of the way...
The court heard he had been drinking heavily and could not remember committing the offence at his home in Aberdeen.
They arrived to find the self-employed engineer sitting on the sofa wearing a pair of underpants.
Fiscal depute Elaine Lynch said: "The accused got to his feet and was standing over the police officer exposing his penis and thrusting it in her face, forcing her to take evasive action to avoid getting struck."
!"Evasive action"¡ ¡Este hombre no tiene un pene, tiene un sable!