# Scale Artboard and its items through API?

**URL:** https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350
**Category:** UXP Plugin API
**Tags:** api
**Created:** [October 21, 2019, 8:15am UTC](https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350 "2019-10-21T08:15:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bisketashwin](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bisketashwin](https://forums.creativeclouddeveloper.com/u/bisketashwin)
#### Post date: [October 21, 2019, 8:15am UTC](https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350/1 "2019-10-21T08:15:47Z")

</div>

**I want to resize Artboard and its items with responsive resize off.**

I have created art boards smaller that required size. And have designed screens now i have to resize all art boards to new size.

**Manually this is how i do it.**  
Step 1: Resize the Artbaord to target size  
Step 2: Select all items in the art board and scale it to fit art bard is the same proportion (visual approximation) leading to inconsistencies

**API Approaches I don’t know how do either of the ways**  
Approach 1: Group all items of Artboard and scale them with same ratio as Artboard scale  
Approach 2: If there is a way to set width of child items

What is the API to achieve either approach?

---

<div class="post-metadata">

### Author: ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)
#### Post date: [October 21, 2019, 11:12am UTC](https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350/2 "2019-10-21T11:12:20Z")

</div>

See [Disabling Responsive Resize by code](http://forums.creativeclouddeveloper.com/t/disabling-responsive-resize-by-code/625). This is a long-requested API enhancement. (And a trivial one, you’d think. 😉 Just let us turn off that bool!)

---

<div class="post-metadata">

### Author: ![bisketashwin](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bisketashwin](https://forums.creativeclouddeveloper.com/u/bisketashwin)
#### Post date: [October 21, 2019, 12:02pm UTC](https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350/3 "2019-10-21T12:02:29Z")

</div>

What about Seting items in artboard selected so that it can be scaled?

Thanks for update.

---

<div class="post-metadata">

### Author: ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)
#### Post date: [October 21, 2019, 12:39pm UTC](https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350/4 "2019-10-21T12:39:55Z")

</div>

You can group objects then scale them at once but if Responsive Resize is ON you could probably get unexpected results.

---

<div class="post-metadata">

### Author: ![peterflynn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/peterflynn/32/56_2.png) [@peterflynn](https://forums.creativeclouddeveloper.com/u/peterflynn)
#### Post date: [October 22, 2019, 12:49am UTC](https://forums.creativeclouddeveloper.com/t/scale-artboard-and-its-items-through-api/1350/5 "2019-10-22T00:49:16Z")

</div>

Users can enable Responsive Resize on an artboard, and if it’s enabled then that resize engine _will_ be used if your plugin calls `resize()` too.

Unfortunately there’s no way to programmatically enable Responsive Resize, or to make `resize()` behave that way when it’s not enabled.

For resizing an artboard with _simple_ content, you could just resize the artboard in one step, then position and resize each immediate child of the artboard in turn – essentially implementing your own heuristics for how to re-layout the artboard’s content to adjust to a different size. If the children are groups, you could do the same thing recursively for the content inside each group.

But I agree that having direct access to the Responsive Resize settings would usually be an easier approach! Please upvote the link above from @cpryland to help raise the priority of that request.
