You will need to use python script in Dynamo. The method is DatumPlane.SetDatumExtentType
Other Similar topics worth searching that can get you on the right track: