.. _objects_wtgareas: WTG Areas Object Service ======================== The ObjWtgAreasService is giving access to WTG area objects. To make a new wtg object, you can use the ObjectService. Then getting the properties of the wtg with the ``ObjWtgAreasService.GetWtgAreasObject``. These properties can be manipulated and then send back to windPRO with ``ObjWtgAreasService.SetWtgAreasObject``. Multiple areas can be added within one wtg area object. To make a new area you must use special objects that can be accessed via ``windproapi.get_factory('WindproService')``. Make a new WTG area with ``factory.TApiObjWtgArea()`` and append points using ``factory.TApiGP()`` to it. These points are the border of the single WTG area. You can also define a WTG area as an exclusion zone by setting ``wtg_area.ExclusionArea=True``. .. literalinclude:: ../../../python/examples/fromDocs/objects/wtgareas_object.py