Perhaps you meant it as a compliment, but that's an expression with a lot of negative baggage, and it would be best not to use it as a compliment.
This Google search returns many results that show a controversial stir surrounding Barbie. Many are downright resentful of the toy; there's even an entire Master's thesis on it. Besides being labeled as brainless bimbo, Barbie has been tied to anorexia, low self-esteem, and poor self-image. In short, many women are offended by the existence of an "ideal standard" that they should aspire toward, especially since that standard is both superficial and unrealistic. Such negative views on the toy may not be universal (after all, the doll remains a commercial success), but the controversy is strong enough that the term probably shouldn't be used as a compliment.
Also, the group Aqua released a song called Barbie Girl in the late 90's; here's an excerpt of the lyrics:
I'm a Barbie girl, in the Barbie world
Life in plastic, it's fantastic!
You can brush my hair, undress me everywhere
Imagination, life is your creation
I'm a blond bimbo girl, in the fantasy world
Dress me up, make it tight, I'm your dolly
You're my doll, rock'n'roll, feel the glamour in pink,
Kiss me here, touch me there, hanky panky...
All told, it's not too hard to understand why anyone familiar with the song could easily be offended by the comparison.