Add dimension in Range in ax 2012

This is a code to add filter for dimension in axapta 2012.
Add dimension in Range in ax 2012,code to add filter of dimension in axapta,Run-time dimension ranges,Add Dimensions array as range in axapta