# Namespace

**URL:** <https://forum.dynamobim.com/t/namespace/26173>\
**Category:** DesignScript\
**Created:** [September 20, 2018, 8:13am UTC](https://forum.dynamobim.com/t/namespace/26173 "2018-09-20T08:13:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [September 20, 2018, 8:13am UTC](https://forum.dynamobim.com/t/namespace/26173/1 "2018-09-20T08:13:42Z")

</div>

I saw this from @john_pierson

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

I saw that John later changed it into Categories.ProjectionLineWeight, but my question is

can i use this in designscript for every zerotouch node (calling a zerotouch node)  
has it anything to do with that (being zerotouch)  
and can i also use arguments to define inputs for the node this way?  
Is it documented?

Thnx,  
Marcel

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 8:41am UTC](https://forum.dynamobim.com/t/namespace/26173/2 "2018-09-20T08:41:38Z")

</div>

Hi @m.rijsmus ,  
yes this has to do with it being Zero Touch. You can call any zero touch node in DesignScript except for those with UI (dropdown nodes for example). Also yes, you can define the inputs in DesignScript.  
You only need to specify the namespace if there is ambiguity (a class with the same name in different namespaces).

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

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [September 20, 2018, 8:56am UTC](https://forum.dynamobim.com/t/namespace/26173/3 "2018-09-20T08:56:38Z")

</div>

Thank you @Mostafa_El_Ayoubi

on the sideline  
for calling nodes in DesignScript, would the method -PackageName-,-Node-,(Arg1,Arg2) be the better way to go?  
Replacing Rhythm.Category for Categories as @john_pierson did, would possibly give new Namespace collisions?

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 9:49am UTC](https://forum.dynamobim.com/t/namespace/26173/4 "2018-09-20T09:49:54Z")

</div>

I think the change from category to categories was probably a way to avoid namespace ambiguity. John is a very nice and thoughtful guy! 🙂 I guess putting the name of the package is probably a good idea, that way you know where it comes from. But for some reason it doesn’t work with all packages… My guess is the namespace doesn’t always match the package name (I’d like to be corrected if i’m wrong here :D)

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

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [September 20, 2018, 9:56am UTC](https://forum.dynamobim.com/t/namespace/26173/5 "2018-09-20T09:56:09Z")

</div>

Let’s wait for John to wake up 🙂  
In the meantime i tried some codeblocks too and i saw the same thing happening.  
Is this functionality of calling nodes Dynamo 2.0 stuff? or does it work in Dynamo 1.x aswell?

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 9:57am UTC](https://forum.dynamobim.com/t/namespace/26173/6 "2018-09-20T09:57:12Z")

</div>

I tried both version because I was curious about that too. Both seem to behave the same.

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [September 20, 2018, 10:01am UTC](https://forum.dynamobim.com/t/namespace/26173/7 "2018-09-20T10:01:56Z")

</div>

Hey,

Thanks for the insight 🙂 Would you mind talking me through what I’m seeing here? I don’t quite get the logic of where RevitElements has come from, and why Rhythm doesn’t work…

Cheers,

Mark

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

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 10:08am UTC](https://forum.dynamobim.com/t/namespace/26173/8 "2018-09-20T10:08:41Z")

</div>

Hi @Mark.Ackerley,  
You should try updating your Rhythm package it’s a year old! 😃

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [September 20, 2018, 10:12am UTC](https://forum.dynamobim.com/t/namespace/26173/9 "2018-09-20T10:12:38Z")

</div>

Edit, changed to unresolved as this is getting interesting 🙂

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [September 20, 2018, 10:13am UTC](https://forum.dynamobim.com/t/namespace/26173/10 "2018-09-20T10:13:47Z")

</div>

I know I know, but I get scared of updates… What if everything breaks?! 😃

2.1 has my new packages in it… Do you think the change is from the updated package rather than new Dynamo?

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

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 10:14am UTC](https://forum.dynamobim.com/t/namespace/26173/11 "2018-09-20T10:14:20Z")

</div>

Yep pretty sure about it!  
I understand the fear of package update … But if you keep up you only have small adjustments. The longer you wait the scarier!  
This is from 1.3 :

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

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [September 20, 2018, 10:24am UTC](https://forum.dynamobim.com/t/namespace/26173/12 "2018-09-20T10:24:47Z")

</div>

Sorry, to chime in, but…

It seems to me that the naming in designscript is powered by the class, and namespace used in the c# coding.

e.g.

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

(I know the Canary package is not replaceing values, it is my own package and attempt to understand and learn C#, so bear with me as it is solely representational atm).

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/778f8c745fbadf4ef2dda804a3ee65f893fdbec1.png)

That said the changes to the naming in node to code seems to be powered by the naming standard used in the c# coding. And if there are several different packages using e.g. “List” as the static class then you need to specify which to use.

If the developer named the static class e.g. “AndenPrivateClass” as seen below there would be no need to add the package name as there is no conflict/problem identifying what we’re dealing with.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5ca2d0e22e1f4b3d88a9e7d545eb890123a20b76.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1d7d72482d64ff6ba52c129978aa6f74c7afd92f.png)

I know it is possible for the authors to control this naming even further but I have not reached that part of my C# knowledge/training as of yet 🙂

And lastly excuse my crude coding, have only been dealing with C# for a few hours so far and going from Python it is a lot more _strict_

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 10:31am UTC](https://forum.dynamobim.com/t/namespace/26173/13 "2018-09-20T10:31:32Z")

</div>

thanks @Jonathan.Olesen !  
that perfectly illustrates everything nice job

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [September 20, 2018, 10:58am UTC](https://forum.dynamobim.com/t/namespace/26173/14 "2018-09-20T10:58:08Z")

</div>

So, how do i work with this knowledge.  
How can i call (zerotouch) nodes in DesignScript?  
Is a generic description -on how to do it- even posible?  
What are the rules?

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [September 20, 2018, 11:18am UTC](https://forum.dynamobim.com/t/namespace/26173/15 "2018-09-20T11:18:17Z")

</div>

Most times it can be expressed as “most safe” to include as much of the information as possible, on the of-chance that another package in the future will contain the same naming.

Node to code will give you a viable solution atm. But you can add e.g. packagename if this is what the author have used as the namespace. Unfortunately, as there are no “standard” as how people are coding the nodes there is no real “rule” to follow, sorry. 😕  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/2/320c91d00b24541598844233fa04cba03ce84417.png)

Below an example using the same node as your original post.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/435bd782611fd79ae8fbd79bb8db257033b7c322.png)

But my bet would be that 90% of the developers out there will follow this logic… (Unfortunately if they do not include migration files when changing layers/nodenames there is little to do but write it out again).

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 11:25am UTC](https://forum.dynamobim.com/t/namespace/26173/16 "2018-09-20T11:25:59Z")

</div>

I’d be careful with that though because package name isn’t necessarilly the same as namespace as @Jonathan.Olesen says . Here’s an example :  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/ea66038cf1fc6feed8408cc1e4de572fa476ba8b.png)

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [September 20, 2018, 11:32am UTC](https://forum.dynamobim.com/t/namespace/26173/17 "2018-09-20T11:32:08Z")

</div>

Unfortunately I cannot install DynamoMEP to test… (Or it cannot load the .dll) (Dynamo 2.1.0)

But, are you not missing DynamoMEP.Revit. **Elements**.CustomRoom.ByPoint(pts)  
?

I’m sure you’re right, and I appreciate the cautionous note, this comment is purely for my own understanding, and arguments sake 🙂

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [September 20, 2018, 11:35am UTC](https://forum.dynamobim.com/t/namespace/26173/18 "2018-09-20T11:35:01Z")

</div>

nope: (i’m on 2.0.1 here)

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

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [September 20, 2018, 11:37am UTC](https://forum.dynamobim.com/t/namespace/26173/19 "2018-09-20T11:37:14Z")

</div>

Oh, well, there you go, the exception that proves the rule 😅

---

<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:** [September 20, 2018, 12:43pm UTC](https://forum.dynamobim.com/t/namespace/26173/20 "2018-09-20T12:43:46Z")

</div>

I often go with whatever Node2Code generates, which typically will give you the simplest method to call the function. My renaming was actually due to the conflict causing crashes when using Node2Code.

> <https://github.com/DynamoDS/Dynamo/issues/8981>

In regards to how this is established, taking a look at the XML documentation from Rhythm and Dynamo MEP, you can clearly see that DynamoMEP is using the same convention as OOTB Dynamo. while Rhythm starts with Rhythm.

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

[Next page](https://forum.dynamobim.com/t/namespace/26173.md?page=2)
