Changing unit type with variable

Hi,
I'm trying to change the system units with a variable. I retrieve data from an external XML file.

max want to get something like this:

units.SystemType = #Centimeters

but because I retrieve my data from an XML it gives me a string like this:

units.SystemType = "#Centimeters"

is there a way to convert this string into something I can use to change this value?

thanks!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
phantomx's picture

nevermind.. just found

nevermind.. just found out.

variable as name 
units.SystemType = variable

this did it!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.