# Edit Formula Value in Project Environment for Multiple Families at Once

**URL:** <https://forum.dynamobim.com/t/edit-formula-value-in-project-environment-for-multiple-families-at-once/16216>\
**Category:** Revit\
**Created:** [November 3, 2017, 4:25pm UTC](https://forum.dynamobim.com/t/edit-formula-value-in-project-environment-for-multiple-families-at-once/16216 "2017-11-03T16:25:17Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![fawzimasri7137](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fawzimasri7137](https://forum.dynamobim.com/u/fawzimasri7137)\
**Post date:** [December 16, 2020, 5:52pm UTC](https://forum.dynamobim.com/t/edit-formula-value-in-project-environment-for-multiple-families-at-once/16216/12 "2020-12-16T17:52:42Z")

</div>

you did not say what the error was, so i tested and got this new error to me:“… expected Document got Document”.

so i looked it up and maybe the solution is in this:

> [@Python Error: Expected Document, Got Document](https://forum.dynamobim.com/t/python-error-expected-document-got-document/15570/2):
>
> UnwrapElement maybe?

namely : doc = DocumentManager.Instance.CurrentDBDocument

hope that’s it

---

_[View the full topic](https://forum.dynamobim.com/t/edit-formula-value-in-project-environment-for-multiple-families-at-once/16216)._
