Dissolve in a solvent. Transfer solution to a tared sample-holding vial. Allow to evaporate. Insert small sample vial with viscous stuff into a larger flask and connect to vacuum to dry any residual solvents. Remove tared vial with pure, solvent free, viscous stuff. Weigh. Win.