# Structure node id always shows 1 when printed

**URL:** <https://forum.itascainternational.com/t/structure-node-id-always-shows-1-when-printed/2195>\
**Category:** Uncategorized\
**Created:** [August 5, 2025, 10:22am UTC](https://forum.itascainternational.com/t/structure-node-id-always-shows-1-when-printed/2195 "2025-08-05T10:22:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yopiprabowo](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yopiprabowo](https://forum.itascainternational.com/u/yopiprabowo)\
**Post date:** [August 5, 2025, 10:22am UTC](https://forum.itascainternational.com/t/structure-node-id-always-shows-1-when-printed/2195/1 "2025-08-05T10:22:54Z")

</div>

Hi,

I was trying to get the node ids of the structural elements in 3DEC using the script below:

```auto
import itasca as it
import numpy as np

C3_loc = np.array([[0.71,-0.04,0.36],[1.29,-0.04,0.36],[0.14, -0.04, 0.6],[0.425, -0.04, 0.6],[1, -0.04, 0.6],[1.575, -0.04, 0.6],[1.86, -0.04, 0.6],[0.14, -0.04, 0.84],[0.71, -0.04, 0.84],[1.29, -0.04, 0.84],[1.86, -0.04, 0.84],[0.14,-0.04,1.35],[0.425,-0.04,1.35],[1,-0.04,1.35],[1.575,-0.04,1.35],[1.86,-0.04,1.35],[0.71,-0.04,1.48],[1.29,-0.04,1.48],[0.14,-0.04,1.8],[0.71,-0.04,1.8],[1.29,-0.04,1.8],[1.86,-0.04,1.8],[0.14,-0.04,2.1],[0.425,-0.04,2.1],[1,-0.04,2.1],[1.575,-0.04,2.1],[1.86,-0.04,2.1],[0.71,-0.04,2.2],[1.29,-0.04,2.2]])

C3_zonelock = np.array([[0.6325, 0.025, 0.36], #zero floor[1.36125, 0.025, 0.36],[0.09625, 0.025, 0.6],[0.42625, 0.025, 0.5],[1.00375, 0.025, 0.5],[1.58125, 0.025, 0.5],[1.9025, 0.025, 0.6],[0.0825, 0.025, 0.82], #first floor[0.6325, 0.025, 0.82],[1.36125, 0.025, 0.82],[1.9025, 0.025, 0.82],[0.0825, 0.025, 1.34], #first floor horizontal[0.4125, 0.025, 1.26],[1.00375, 0.025, 1.26],[1.55375, 0.025, 1.26],[1.91875, 0.025, 1.34],[0.78375, 0.025, 1.46], #second floor[1.1825, 0.025, 1.46],[0.09625, 0.025, 1.82],[0.64625, 0.025, 1.82],[1.36125, 0.025, 1.82],[1.9025, 0.025, 1.78],[0.09625, 0.025, 2.1], #second floor horizontal[0.39875, 0.025, 2.02],[1.03125, 0.025, 2.04],[1.5675, 0.025, 2.04],[1.9025, 0.025, 2.12],[0.64625, 0.025, 2.2],[1.38875, 0.025, 2.2]])

C3_tuples = [tuple(row) for row in C3_loc]
C3_zone_tuples = [tuple(row) for row in C3_zonelock]
assert(len(C3_tuples) == len(C3_zone_tuples))

# Associate the C3 anchors to the 3DEC zones

for i,c in enumerate(C3_tuples):
c3_anchor = it.structure.node.near(c)
c3_zone = it.block.zone.near(C3_zone_tuples[i])
print(c3_anchor.id())

```

When I print the anchor id, it only shows 1 for all of the structural nodes.

When I print the node object (i.e. “print(c3\_anchor)“), I get this:

\<itasca.structure.node.Node object at 0x000001EBC1565BB0, ID : 16\>  
\<itasca.structure.node.Node object at 0x000001EBCA7D8550, ID : 35\>  
\<itasca.structure.node.Node object at 0x000001EBCA7D8530, ID : 1\>

Is this a bug?

---

<div class="post-metadata">

**Author:** ![yopiprabowo](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yopiprabowo](https://forum.itascainternational.com/u/yopiprabowo)\
**Post date:** [August 5, 2025, 10:37am UTC](https://forum.itascainternational.com/t/structure-node-id-always-shows-1-when-printed/2195/2 "2025-08-05T10:37:02Z")

</div>

Nevermind!

I found out that it was the assigned ID. I should have extracted the component\_id instead!

Thanks!
