# Sheet Revisions from Linked File - Error linkDoc

**URL:** <https://forum.dynamobim.com/t/sheet-revisions-from-linked-file-error-linkdoc/68753>\
**Category:** Revit\
**Tags:** python, developers\
**Created:** [September 30, 2021, 2:31pm UTC](https://forum.dynamobim.com/t/sheet-revisions-from-linked-file-error-linkdoc/68753 "2021-09-30T14:31:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruben.romero](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ruben.romero/32/115842_2.png) [@ruben.romero](https://forum.dynamobim.com/u/ruben.romero)\
**Post date:** [September 30, 2021, 2:31pm UTC](https://forum.dynamobim.com/t/sheet-revisions-from-linked-file-error-linkdoc/68753/1 "2021-09-30T14:31:17Z")

</div>

> [@Sheet Revisions from Linked File](https://forum.dynamobim.com/t/sheet-revisions-from-linked-file/34376/10):
>
> review

hello @SeanP I have tested the script, and I get null  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dc1c4749e5178748817b26b2eca2e35ab3d2d0e3.png)

If that seems like other question I will create a new post, but I created a custom node to set Long Lacing and it works,

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/9/d92e1b585d3e3ea47af56b1b1eb9d1464a71fdd0.png)

but I suppose I would have to create a dictionary and filter by the sheet that I want in each document because different sheets contain different revisions, that means group revisions by sheets or start the script getting all the sheets and later, all revisions on each sheet; which I only was able to achieve with one archilab node, but no idea of how to do it in python instead

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8a95daef4572cecf0d503e6b047c68f04bc9dea4.png)

it is very useful, although I use it because I got the intention to know the revision number on the sheet revision schedule (graphic schedule), although I get the sequence number, then I have to split the text to extract the sequence and get all revisions in the document and ask tell me wich one it is the revision that is living on the schedule sheet.

Basically I get a sequence number but I do not know what is the final result in the sheet or paper. If that could be extracted in same python all job done. I am not able to get Revision Number from the Revision Elements Parameters, although the rest of information is available on Parameters OOTB node.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07e6851cd0d18cfe1a6d0b024accad3645cc6405.png)

Many thanks for your support, very useful.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 30, 2021, 7:33pm UTC](https://forum.dynamobim.com/t/sheet-revisions-from-linked-file-error-linkdoc/68753/2 "2021-09-30T19:33:51Z")

</div>

The `linkDoc` error is just a minor naming mistake. The code first defines `link` but then calls `linkDoc` instead.
