# How to export multiple 2d views at once

**URL:** <https://forums.sketchup.com/t/how-to-export-multiple-2d-views-at-once/114756>\
**Category:** Developers\
**Created:** [January 29, 2020, 10:01am UTC](https://forums.sketchup.com/t/how-to-export-multiple-2d-views-at-once/114756 "2020-01-29T10:01:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [January 30, 2020, 12:05am UTC](https://forums.sketchup.com/t/how-to-export-multiple-2d-views-at-once/114756/4 "2020-01-30T00:05:27Z")

</div>

(_Moving to Ruby API subcategory._)

> [@axelmendes](#):
>
> I found this code:

Please post using code delimiter **lines** per: [[How to] Post correctly formatted and colorized code on the forum?](https://forums.sketchup.com/t/how-to-colourize-code-on-the-forum-wiki/46189)

**FYI** , There is an error in your code …

```ruby
:filename => "#@path/#{name}.png",

```

For string interpolation, you need to use `#{ ... }` to delimit the eval expression, so correct is:

```ruby
:filename => "#{@path}/#{name}.png",

```

* * *

It is also a good thing to post a link to where the code came from.

* * *

We’ve covered this is other threads. I’ll see if I can search them up …

Here is one example I wrote …

- [[Code] Example: Saving Iso views to PNG image files](https://forums.sketchup.com/t/code-example-saving-iso-views-to-png-image-files/56762)

---

_[View the full topic](https://forums.sketchup.com/t/how-to-export-multiple-2d-views-at-once/114756)._
