set_dimension_type function

Set the dimension type