---
title: "addNamespace"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736602/addNamespace"
format: markdown
---
# Description

Adds a selected or specified namespace.

All modules under the same parent can be considered in the namespace of that parent, using slashes ( / ) to separate each module's parent's name.

addNamespace operates on all selected modules unless you use the `-onMod` flag to specify the module on which to operate by name. If the module already contains a namespace, another is appended to it.

Note that you may specify the path in commands that require a module name, but you may not specify the path as a module name in the Name attribute.

You need to specify only what is required to uniquely identify the name.

## Functional area

Namespace

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `addNamespace namespace[-onMod string]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `namespace` | string | Yes | Specify the path of a namespace using slashes ( / ) or colons ( : ). The number of namespaces in a module name is not limited. |

### Flags

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | Specifies the module on which the command operates. |

## Return value

void

## Example

```plaintext
// Create a namespace called Bob 
addNamespace "Bob";
 
// Create a module name with multiple namespaces.
// Note Shogun doesn't separate the concept of module name vs. namespace. 
addNamespace "Bob:Solving:Root:Spine:Head";
```

# Additional information

## Related commands

- [getNamespace](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736535)
- [getNamespaces](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737946)
- [removeNamespace](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737568)
- [replaceNamespace](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738377)