---
title: "Production Equipment Model | Traverse Production Model via Script"
id: "traverse-production-model-via-script-3-0"
project: "Knowledge Base"
url: "https://docs.sepasoft.com/articles/knowledge-base/traverse-production-model-via-script-3-0"
updated: 2026-07-23T18:08:48Z
---

# Production Equipment Model \| Traverse Production Model via Script

### Viewing Production Equipment Hierarchy via Script

When dealing with a complex and deep Production Model, it can be useful to quickly collect its scope

#### Details

* In the Designer, open Tools→ Script Console
* copy/paste the code below
* replace &lt;your Enterprise Name&gt; with the name of your Enterprise

### 
![](/resources/Storage/knowledge-base/traverse-production-model-via-script-3-0/image2022-12-28_10-39-16.png)
#### Scripting

```python
def print_equipment_hierarchy(root_name):
  	def print_equipment_hierarchy_helper(equipment_item):
      		print equipment_item.getEquipmentPath()
      		children = equipment_item.getChildCollection().getList()
      		for child in children:
          		print_equipment_hierarchy_helper(child.getMESObject())
 
   	root = system.mes.loadMESObjectByEquipmentPath(root_name)
     
   	print_equipment_hierarchy_helper(root)
     
print_equipment_hierarchy('<your Enterprise Name>')
# example print_equipment_hierarchy('Nuts Unlimited')
```
