# Syntex Error, can you see it?

**URL:** <https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634>\
**Category:** DesignScript\
**Created:** [December 22, 2021, 9:08am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634 "2021-12-22T09:08:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [December 22, 2021, 9:08am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/1 "2021-12-22T09:08:37Z")

</div>

Hello,

I can not isolate Elements. Either there no ones? or it is a syntex-error regarding _DesignScript_!

 ![2021-12-22_10h06_44](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/20baca227d6f885c6a8ee083f8b2fb63d6eabd41.png)

is it looking for a list?

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [December 22, 2021, 10:15am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/2 "2021-12-22T10:15:41Z")

</div>

Hi @Draxl_Andreas Which node are you trying to write in Designscript?

The error states: I cannot find a function called “View.IsolateElementsTemporary” in the namespace “Revit.Elements.Views”.

When I look in the Dynamo Library (I am using Revit 2021 and Dynamo 2.6.1, but I don’t see this function either?

![000221](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/0696d8648e6e231d86d219efa52996da5e9685d6.png)

Note: you cannot use functions from the Revit API directly in designscript, you’ll need to use a Python node.

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [December 22, 2021, 10:19am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/3 "2021-12-22T10:19:19Z")

</div>

![2021-12-22_11h16_17](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/1/015e8339dcdb68e31ae4fc9c4bffc7f5ed1a7b42.png)

 ![2021-12-22_11h18_08](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9c00077699a524193e5309cb0b5341fa3dfba568.png)

I think i have a package missing, but which one?

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [December 22, 2021, 10:21am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/4 "2021-12-22T10:21:39Z")

</div>

Ah you are trying to use a custom node.

From which package is this node?

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [December 22, 2021, 10:24am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/5 "2021-12-22T10:24:22Z")

</div>

![2021-12-22_11h23_35](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/4/249267d2864889c553d45ba5f8703fa5c00192b3.png)  
**Archi-lab** works  
Why can i not call it via design-script?  
**Clockwork** is also running!  
 ![2021-12-22_11h27_09](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/37237ef11ffb7ed47e2983bd275df24e6f22c547.png)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [December 22, 2021, 10:36am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/6 "2021-12-22T10:36:00Z")

</div>

You can call custom nodes in design script. But you need to refer to the right node in the right namespace.

For DynaMEP it is the one below

 ![000222](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/b/3bcae8479f274233a37a68fd3b56a657d483b1f0.png)

How to find this? There are 2 ways:  
First method:

1. Search for the node you want to use in the Dynamo Library  
 ![000223](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b710c99db6bc815f3bf4dbd2811d10d770becd9e.png)
2. Click the Class below it. e.g. “Element”
3. Look where the node is placed  
 ![000224](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/2/420281955dab388ae4e4b3e74d5fb36880c0f93a.png)

Second method:

1. Place the node and select it
2. Right click NOT on the node, but beside the node in the clear
3. Click “NodeToCode”, this will also show the namespace for Designscript  
 ![000226](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/54c2ea6f94aebf903f8d2f5897e70bf14561851f.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [December 22, 2021, 10:40am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/7 "2021-12-22T10:40:45Z")

</div>

Can i not use it as a “one liner” like in a bad action.movie?

```auto
RevitModel.Element.IsolateElementsTemporary(Document.ActiveView(Document.Current), elements);

```

it still does not work

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [December 22, 2021, 10:44am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/8 "2021-12-22T10:44:39Z")

</div>

Yes you can do it in one line, but i would never advise this, mainly because the intire line is not visible in one code block

 ![000228](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1a887b0e394ae8a84a37b3abd016d3fc0d50e991.png)

```
isolatedElement = RevitModel.Element.IsolateElementsTemporary( elementsToIsolate, Document.ActiveView(Document.Current));
```

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [December 22, 2021, 10:52am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/9 "2021-12-22T10:52:17Z")

</div>

For any reason it hidding all? what could be the cause for that?  
it is selecting elements but the revit-view is emty?

 ![2021-12-22_11h51_26](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/3/b38e8634b8ce2684b9939c40c83aefce893e8213.png)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [December 22, 2021, 10:58am UTC](https://forum.dynamobim.com/t/syntex-error-can-you-see-it/71634/10 "2021-12-22T10:58:13Z")

</div>

You now use “Isolate elements temporarely”, so it isolates the elements you provide. If you want to Hide the Elements, you need to use another function.
