I don't think unit aspect can be assigned programmatically. Try the following, in your browser open dev tools (f12 in chrome), go to network tab. Update your property or create a new one with the unit value, then see the request load in your Dev tools. It should contain the aspects in json.
Translate
Windchill Satisfaction Survey
Help shape the future of Windchill. Take our 5-minute survey and share your feedback.