# Repath Multiple CAD Links

**URL:** <https://forum.dynamobim.com/t/repath-multiple-cad-links/71939>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [January 3, 2022, 11:44pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939 "2022-01-03T23:44:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamnims](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@adamnims](https://forum.dynamobim.com/u/adamnims)\
**Post date:** [January 3, 2022, 11:44pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/1 "2022-01-03T23:44:51Z")

</div>

Hello!

New to Dynamo and I am attempting to relink approximately 30 CAD links (I know, I know…) in Revit. I have attempted the following screenshot based on some other tutorials, but it does not seem to actually change the paths. Can someone please point me in the right direction?

 ![Annotation 2022-01-03 164350](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f6345e1dd1c57bbfc310b72f12f3a894276d6a36.jpeg)

Thank you!  
Adam

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 3, 2022, 11:55pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/2 "2022-01-03T23:55:47Z")

</div>

Hello and welcome…you could try something here…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f6c0e7b340f7c4da31cbb475e6e88c9d4c92eafc.jpeg)

---

<div class="post-metadata">

**Author:** ![adamnims](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@adamnims](https://forum.dynamobim.com/u/adamnims)\
**Post date:** [January 4, 2022, 6:08pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/3 "2022-01-04T18:08:14Z")

</div>

Thank you for the quick response and the warm welcome! For some reason I cannot find the “FileSystem.GetDirectoryContents” node. Is it a part of the core? or do I need to download another package?

I should note that I am using Revit 2019 for this project - does that matter?

Thanks again,  
Adam

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [January 4, 2022, 7:00pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/4 "2022-01-04T19:00:14Z")

</div>

@adamnims :  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/4/0429427ce25c46778d7c7b5547275e8223836d94.png)

---

<div class="post-metadata">

**Author:** ![adamnims](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@adamnims](https://forum.dynamobim.com/u/adamnims)\
**Post date:** [January 4, 2022, 7:21pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/5 "2022-01-04T19:21:35Z")

</div>

That doesn’t pop up for me…

![Annotation 2022-01-04 121952](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/8/1815a9394c2e3df181c0c01bf0ca0432aa172512.jpeg)

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [January 4, 2022, 7:42pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/6 "2022-01-04T19:42:43Z")

</div>

@adamnims make sure you are using Dynamo 2.0 and above.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 5, 2022, 6:14am UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/7 "2022-01-05T06:14:04Z")

</div>

Hi Adam yes…i use the new node for directory, but it should work for you with the old one to…just use importinstance as i show…and it should work 😉

---

<div class="post-metadata">

**Author:** ![adamnims](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@adamnims](https://forum.dynamobim.com/u/adamnims)\
**Post date:** [January 5, 2022, 5:53pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/8 "2022-01-05T17:53:43Z")

</div>

Thank you all so much! @sovitek, your solution worked great! So good to know that there are friendly folks out there willing to help.

Cheers,  
Adam

---

<div class="post-metadata">

**Author:** ![adamnims](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@adamnims](https://forum.dynamobim.com/u/adamnims)\
**Post date:** [January 5, 2022, 7:13pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/9 "2022-01-05T19:13:23Z")

</div>

Upon further reflection, it appears that the script took ALL of the CAD links in that folder and linked/ overwrote them into the revit model rather than simply repathing the existing ones… Please see before/after image below (before=left after=right):

 ![Links Comparison](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/3/9383e98b9b1692c79f178483d2510d9a2879b638.jpeg)

Any thoughts?

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [January 5, 2022, 10:14pm UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/10 "2022-01-05T22:14:36Z")

</div>

Hi,

You have to match your list of imported DWGs with your list of filepaths. The custom node doesn’t do it for you. Use the name of existing DWGs to make this match.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 6, 2022, 5:30am UTC](https://forum.dynamobim.com/t/repath-multiple-cad-links/71939/11 "2022-01-06T05:30:45Z")

</div>

try something here…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/0/600b47293e838a809300ff7541fd60dc1491d2c9.jpeg)
