A lawyer for Harvey Weinstein said on Tuesday that the woman prosecutors say Mr. Weinstein raped at a Manhattan hotel in 2013 had a decade-long romantic relationship with him both before and after the alleged attack.

The lawyer, Benjamin Brafman, made the statements outside Manhattan Criminal Court after a closed-door hearing in the chambers of the judge overseeing a grand jury that is investigating rape and sexual abuse allegations against Mr. Weinstein, the once-powerful movie producer who has been accused of sexual misconduct and harassment by more than 80 women.

Mr. Weinstein was arrested on Friday on a criminal complaint charging him with forcing one woman, an aspiring actress, to give him oral sex during a meeting at his TriBeCa office in 2004 and of raping a second woman at the DoubleTree by Hilton Metropolitan Hotel in 2013.

Having had a long-term consensual relationship with a woman is not a defense against rape. Husbands and domestic partners, for instance, can be charged with rape if they use force or threats to compel a partner to have sex.