# I have a question about pattern\_fill\_scale

**URL:** <https://forums.sketchup.com/t/i-have-a-question-about-pattern-fill-scale/198925>\
**Category:** Ruby API\
**Tags:** layout\
**Created:** [May 19, 2022, 2:08am UTC](https://forums.sketchup.com/t/i-have-a-question-about-pattern-fill-scale/198925 "2022-05-19T02:08:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javalitterboy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/javalitterboy/32/170896_2.png) [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Post date:** [May 19, 2022, 2:08am UTC](https://forums.sketchup.com/t/i-have-a-question-about-pattern-fill-scale/198925/1 "2022-05-19T02:08:40Z")

</div>

@tt_su please help me.  
I have an image.  
I want to use it to fill the face (5mm \* 5mm) in the Layout.  
How should I calculate the `pattern_fill_scale` ?  
I can set the width and height in Sketchup, but I don’t know what to do in Layout.

```ruby
# in Sketchup
material.texture.size = [5.mm,5.mm]

# in Layout
# ??????

```

---

<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:** [May 19, 2022, 8:21pm UTC](https://forums.sketchup.com/t/i-have-a-question-about-pattern-fill-scale/198925/2 "2022-05-19T20:21:29Z")

</div>

It’s a scale **factor**. So start with **`1.0`** (which is 100%) and see how it looks.

Then adjust to suit your taste.

* * *

Now you are talking about a face that is less than 2/10ths of an inch square. Why would anyone need to see a pattern fill on such a small face. Why would a LayOut viewport need to zomm into such a small place ? SketchUp and LayOut are meant to design buildings.

---

<div class="post-metadata">

**Author:** ![javalitterboy](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/javalitterboy/32/170896_2.png) [@javalitterboy](https://forums.sketchup.com/u/javalitterboy)\
**Post date:** [May 20, 2022, 8:23am UTC](https://forums.sketchup.com/t/i-have-a-question-about-pattern-fill-scale/198925/3 "2022-05-20T08:23:09Z")

</div>

> [@DanRathbun](#):
>
> It’s a scale **factor**. So start with **`1.0`** (which is 100%) and see how it looks.

Yes, I know this.  
I have designed the hatch pattern in Sketchup.  
Now, I need to fill in the Layout.

**For example**  
I have a picture of 100px \* 100px.  
Make it into material (width:600mm height:600mm).  
When my drawing scale is 1:20, this picture should correspond to the drawing size (width:30mm height: 30mm), but the scale **factor** is not equal to (30.mm / 100).  
And how should I calculate the scale **factor**.
