# Pulling a Model from revit server for PDF printing

**URL:** <https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345>\
**Category:** Revit\
**Created:** [April 26, 2017, 7:07pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345 "2017-04-26T19:07:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![micphillips](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@micphillips](https://forum.dynamobim.com/u/micphillips)\
**Post date:** [April 26, 2017, 7:07pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/1 "2017-04-26T19:07:16Z")

</div>

Hello, I’m a new Dynamo user trying to figure out how to pull a model from Revit server in order to perform a PDF printing process.

I have a graph that is able to open a project in the background and print pre-defined sets from the model. It recognizes all sets in the model, any print settings that may be saved, and various input settings such as the file location, and whether to combine the pdf’s in one file (which I cannot seem to get to work either. it keeps overwriting the original pdf file.).

This graph works great. I’ve testing it using various different settings and it works great for any local file, however we only work on files located on the Revit server. I managed to find the file path of the model on revit server, but entering this path as a string input, as apposed to browsing to it’s locationa nd selecting it, does not work. It comes back with null on the watch node. I’ll attach a screenshot for everybodies reference.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/c/1c2c2501e6f00674d5622f567f1ec55668aca44a.jpg)

---

<div class="post-metadata">

**Author:** ![micphillips](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@micphillips](https://forum.dynamobim.com/u/micphillips)\
**Post date:** [April 27, 2017, 3:14pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/2 "2017-04-27T15:14:22Z")

</div>

Bump!

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [April 27, 2017, 5:25pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/3 "2017-04-27T17:25:23Z")

</div>

Here are some resources. _I will see if I can investigate too, but can;t make any promises._

> **[Accessing a Revit Server Central Model Path](http://thebuildingcoder.typepad.com/blog/2014/08/accessing-a-revit-server-central-model-path.html)**
>
> I am still enjoying my summer break, and back to work temporarily for just a couple of days in between. For today, I present the following summary of a recent discussion on accessing a Revit server central model path including some useful new hints...

> **[Copy a Model from a Revit Server](http://thebuildingcoder.typepad.com/blog/2011/12/copy-a-model-from-a-revit-server.html)**
>
> Yesterday evening we had dinner together with developer partners at Heaven 23 again, the same place we visited last year, with its unique reflection-accessible cloud. Today we are holding a DevLab here in the Autodesk office in Gothenburg in Sweden,...

---

<div class="post-metadata">

**Author:** ![micphillips](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@micphillips](https://forum.dynamobim.com/u/micphillips)\
**Post date:** [April 28, 2017, 12:56pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/4 "2017-04-28T12:56:23Z")

</div>

Thank you for the information John. I did find these articles in my searches for a solution, however the text is rather difficult to understand. I do have the RSN:// file path for the file I’m trying to access, and it does pull the file “name” but not the actual file itself.

---

<div class="post-metadata">

**Author:** ![zhukoven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zhukoven/32/70962_2.png) [@zhukoven](https://forum.dynamobim.com/u/zhukoven)\
**Post date:** [April 28, 2017, 2:03pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/5 "2017-04-28T14:03:17Z")

</div>

@micphillips, you may try to use the RevitServerTool as a workaround. Create \*.bat scripts that will copy a bunch of models from your Revit Server to the specified destination folder. Then use your Dynamo graph to interact with these local copies.

---

<div class="post-metadata">

**Author:** ![micphillips](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@micphillips](https://forum.dynamobim.com/u/micphillips)\
**Post date:** [April 28, 2017, 3:40pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/6 "2017-04-28T15:40:08Z")

</div>

@zhukoven I’m not exactly sure what you’re saying. I’m pretty new to programming, so creating scripts myself at this time is pretty far fetched.

---

<div class="post-metadata">

**Author:** ![zhukoven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zhukoven/32/70962_2.png) [@zhukoven](https://forum.dynamobim.com/u/zhukoven)\
**Post date:** [April 28, 2017, 4:33pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/7 "2017-04-28T16:33:07Z")

</div>

Well, this is not actually programming at all. All you need to do - is make a new txt file in Notepad, fill in the model address (Revit server host name, model name, Revit server accelerator, destination folder) as described here:

> **[Revit Server Model Creation Command-Line Utility | Revit Products | Autodesk...](https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Revit-Server/files/GUID-77F62A96-8A61-4539-9664-0DD0AB08B6ED-htm.html)**
>
> You can use the Revit Server model creation command-line utility (RevitServerTool.exe) to automate the creation of local models to facilitate server-based worksharing. You can place new local models directly onto team members' computers or into...

Then you save this text file with “.bat” extension on your Revit server machine and close. Launching these .bat files from the Revit server (connect to your Revit server machine via rdp, and double click the .bat file), opens windows console and starts the process of copying models.

---

<div class="post-metadata">

**Author:** ![4bimfercesp](https://avatars.discourse-cdn.com/v4/letter/4/b782af/32.png) [@4bimfercesp](https://forum.dynamobim.com/u/4bimfercesp)\
**Post date:** [April 29, 2017, 2:48am UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/8 "2017-04-29T02:48:51Z")

</div>

Hi.

@zhukoven You are spot on. You can also place the \*.bat or i will recommend to use \*.cmd on any location (local or network) as long as you use UNC path on all your network location (instead of mapped drives). And as per @zhukoven on post no. 5 once you have the local copies are made you can then use you graphs to create the pdf. Note. This is an alternative solution.

---

<div class="post-metadata">

**Author:** ![JustinStirling](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/justinstirling/32/79001_2.png) [@JustinStirling](https://forum.dynamobim.com/u/JustinStirling)\
**Post date:** [December 9, 2019, 8:13pm UTC](https://forum.dynamobim.com/t/pulling-a-model-from-revit-server-for-pdf-printing/11345/9 "2019-12-09T20:13:24Z")

</div>

@micphillips, did you ever happen to resolve this issue?
