# Easy to do it manually, but can it be done proramatically?

**URL:** <https://forum.dynamobim.com/t/easy-to-do-it-manually-but-can-it-be-done-proramatically/69799>\
**Category:** Revit\
**Tags:** python, units\
**Created:** [October 29, 2021, 2:53pm UTC](https://forum.dynamobim.com/t/easy-to-do-it-manually-but-can-it-be-done-proramatically/69799 "2021-10-29T14:53:38Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Cesar\_Tolentino](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cesar_tolentino/32/26477_2.png) [@Cesar\_Tolentino](https://forum.dynamobim.com/u/Cesar_Tolentino)\
**Post date:** [November 2, 2021, 1:19am UTC](https://forum.dynamobim.com/t/easy-to-do-it-manually-but-can-it-be-done-proramatically/69799/10 "2021-11-02T01:19:34Z")

</div>

Just to complete this thread… The similar solution was found here.

> [@Python script in Dynamo Graphs not working properly in Revit 2022 (Project Units)](https://forum.dynamobim.com/t/python-script-in-dynamo-graphs-not-working-properly-in-revit-2022-project-units/65297):
>
> Hi, I created a Dynamo graph that modify the project units (imperial or metric) and it doesn’t work anymore with Revit 2022. I saw that there was some modification to the API related to units in Revit 2022. I’m not programmer, I’m just someone that had interest in Dynamo so I don’t really know the terms in the industry. I know that DisplayUnitType was now replaced, but other than that, I don’t know how to make it work… Here’s the part of the graph that now fail. TransactionManager.Instance.En…

---

_[View the full topic](https://forum.dynamobim.com/t/easy-to-do-it-manually-but-can-it-be-done-proramatically/69799)._
