Conformations of macromolecules in condensed phases