# Assign Same Variable to multiple Sketches or Bodies

**URL:** <https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720>\
**Category:** Modeling Questions\
**Created:** [July 14, 2025, 3:04am UTC](https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720 "2025-07-14T03:04:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alight24](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@alight24](https://discourse.shapr3d.com/u/alight24)\
**Post date:** [July 14, 2025, 3:04am UTC](https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720/1 "2025-07-14T03:04:24Z")

</div>

Hi there, wondering if there is a way to assign the same variable to multiple items at the same time. It’s very time consuming to draw items and then manually attach it to a variable.

Thanks!

---

<div class="post-metadata">

**Author:** ![Xdrakosha](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/xdrakosha/32/24881_2.png) [@Xdrakosha](https://discourse.shapr3d.com/u/Xdrakosha)\
**Post date:** [July 14, 2025, 6:30am UTC](https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720/2 "2025-07-14T06:30:37Z")

</div>

It’s not possible to assign a variable to multiple items in a single step.  
But you can assign it to each one individually during creation.  
That won’t take any longer than setting the measurements manually.

---

<div class="post-metadata">

**Author:** ![alight24](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@alight24](https://discourse.shapr3d.com/u/alight24)\
**Post date:** [July 14, 2025, 6:59am UTC](https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720/3 "2025-07-14T06:59:02Z")

</div>

Is there a way to link sketches or bodies that are equal so that when an adjustment is made to know the others are also adjusted? I guess I could get this done by assigning the first one to a variable and then copying it.

---

<div class="post-metadata">

**Author:** ![Xdrakosha](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.shapr3d.com/xdrakosha/32/24881_2.png) [@Xdrakosha](https://discourse.shapr3d.com/u/Xdrakosha)\
**Post date:** [July 14, 2025, 7:02am UTC](https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720/4 "2025-07-14T07:02:11Z")

</div>

> [@alight24](#):
>
> Is there a way to link sketches or bodies that are equal so that when an adjustment is made to know the others are also adjusted?

There are several methods you can use for that, such as symmetry or equal constraints, mirroring, or assigning the same variable to multiple elements.

It would be better if you described your task more specifically — or even better, drew it — and I’ll show you how to set up such constraints using your example.

---

<div class="post-metadata">

**Author:** ![julie856batson](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@julie856batson](https://discourse.shapr3d.com/u/julie856batson)\
**Post date:** [July 14, 2025, 9:37am UTC](https://discourse.shapr3d.com/t/assign-same-variable-to-multiple-sketches-or-bodies/38720/5 "2025-07-14T09:37:03Z")

</div>

> [@alight24](#):
>
> Hi there, wondering if there is a way to assign the same variable to multiple items at the same time. It’s very time consuming to draw items and then manually attach it to a variable.

Hello @alight24,  
Yes, you can assign the same variable to multiple items using batch selection or scripting, depending on your software. In Python, for example, use `x = y = z = value` to assign the same value to multiple variables. For UI tools, look for group assignment or property linking features to speed up the process.

Best Regards,  
Julie Batson
