# Fold Flat Chair

**URL:** https://forums.maslowcnc.com/t/fold-flat-chair/3912
**Category:** Maslow Community
**Created:** [May 15, 2018, 1:07am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912 "2018-05-15T01:07:04Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![GardenRobot](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gardenrobot/32/8571_2.png) [@GardenRobot](https://forums.maslowcnc.com/u/GardenRobot)
#### Post date: [May 15, 2018, 1:07am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/1 "2018-05-15T01:07:04Z")

</div>

* * *
This is a companion discussion topic for the original entry at [http://maslowcommunitygarden.org/Fold-Flat-Chair.html](http://maslowcommunitygarden.org/Fold-Flat-Chair.html)

---

<div class="post-metadata">

### Author: ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)
#### Post date: [May 15, 2018, 1:09am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/2 "2018-05-15T01:09:47Z")

</div>

I was inspired by this post here:

> [@Folding chair from Leo Salom](https://forums.maslowcnc.com/t/folding-chair-from-leo-salom/1814):
>
> Hi guys! I just stumbled upon this: Do you think we could do it on the Maslow? I waiting for the February shipment, so I’m not going to be able to give it a try myself until mid March.

I did my own design using hinges rather than the pins shown in that post which makes the chair easier to build. This is my first take on the chair, I’ll do another version soon and update the files.

 ![front](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/5/53c0d943e49bbe7e0ac5ad20c17112737d05c318.jpg)

---

<div class="post-metadata">

### Author: ![theRatchet](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/theratchet/32/3046_2.png) [@theRatchet](https://forums.maslowcnc.com/u/theRatchet)
#### Post date: [May 15, 2018, 4:19am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/3 "2018-05-15T04:19:45Z")

</div>

very cool. how does it sit?

---

<div class="post-metadata">

### Author: ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)
#### Post date: [May 15, 2018, 3:31pm UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/4 "2018-05-15T15:31:29Z")

</div>

It’s pretty good. It has a little bit of flex to it when I sit down which was disconcerting at first, but then I got used to it. Very usable as a folding chair, I probably wouldn’t recommend this design as an every day chair for a dinner table

---

<div class="post-metadata">

### Author: ![ChuckC](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/chuckc/32/5964_2.png) [@ChuckC](https://forums.maslowcnc.com/u/ChuckC)
#### Post date: [June 1, 2018, 2:19am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/5 "2018-06-01T02:19:26Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/8/808b42c29debc207192f6ad74751eafef6d94f4a.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/9/96027dc77fbe57c29816ad651fc7f682ad96feea.jpeg)

Bar thanks for sharing your design files! John and I needed something larger to test on new setup and this chair was very fun to make tonight 🙂

---

<div class="post-metadata">

### Author: ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)
#### Post date: [June 1, 2018, 3:21am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/6 "2018-06-01T03:21:31Z")

</div>

Woah!! That is mind blowing. It is so cool to see something I drew up a couple weeks back showing up in the real world. It took my brain a second to catch up to the idea that you weren’t actually holding my chair (like my physical copy of the chair)

Great work!

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 12:43am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/7 "2018-08-02T00:43:36Z")

</div>

I was going to cut one of these, but when I open either the Folding Chair.nc or Folding Chair Version 2.nc it appears to begin about 10 feet to the right and 8 feet above the work area. Am I doing something wrong? Is there a way to move them around on the maslow screen so it is on the work area?

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 4:44am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/8 "2018-08-02T04:44:33Z")

</div>

If anyone else has this problem I created a [script](https://github.com/waltmoorhouse/gcode_mover) that will allow you move the object around in GCode space.

---

<div class="post-metadata">

### Author: ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)
#### Post date: [August 2, 2018, 5:05am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/9 "2018-08-02T05:05:33Z")

</div>

That’s an interesting script. Would you consider a version that centers the file on 0,0? Sort of the same thing as above, but calculated from the X and Y extreme values…

---

<div class="post-metadata">

### Author: ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)
#### Post date: [August 2, 2018, 5:52am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/10 "2018-08-02T05:52:14Z")

</div>

I bumped my nose on a couple issues with the script -

Not totally down with python command-line use, I couldn’t get to first base until I eliminated the commas after the input and output filenames as shown in the README.md.

```auto
python gcode_mover.py [/path/to/infile.gcode /path/to/outfile.gcode X-coordinates(float) Y-coordinates(float) Z-coordinates(float)

```

Issuing the command with only spaces between the parameters made it work, but an error stopped me:

```auto
File "gcode_mover.py", line 61, in <module>
    print "BRIDGEKEEPER: " + bk_phrases[random.randomint(0, len(bk_phrases))]
AttributeError: 'module' object has no attribute 'randomint'

```

Should this be randint instead of randomint? Making that change gets me to the next issue:

```auto
File "gcode_mover.py", line 118, in <module>
    outputFile.write('Z'+str(float(linePart[1:]) + z_amount))
TypeError: unsupported operand type(s) for +: 'float' and 'str'

```

Since x\_amount, y\_amount and z\_amount are strings, the addition inside the str() call works if I convert them to floats:

```auto
                            outputFile.write('X'+str(float(linePart[1:]) + float(x_amount)))
                        elif linePart.startswith('Y'):
                            outputFile.write('Y'+str(float(linePart[1:]) + float(y_amount)))
                        elif linePart.startswith('Z'):
                            outputFile.write('Z'+str(float(linePart[1:]) + float(z_amount)))

```

With those changes, the script does a nifty job of relocating a file on the workarea. Thanks for posting it!

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 5:53am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/11 "2018-08-02T05:53:49Z")

</div>

Yeah, I might get some time to add that.

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 5:55am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/12 "2018-08-02T05:55:02Z")

</div>

Ah, thanks for troubleshooting. I’m a Java coder most of the time, so not a lot of python experience. I never tested passing in all the arguments, I guess. I usually run it with no args and enter them at the prompts.

---

<div class="post-metadata">

### Author: ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)
#### Post date: [August 2, 2018, 6:00am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/13 "2018-08-02T06:00:56Z")

</div>

I was unable to get the prompt to accept ‘Folding Chair Version 2.nc’ with or without quotes or spaces escaped. What’s the incantation?

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 6:01am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/14 "2018-08-02T06:01:59Z")

</div>

Ok, I fixed the bugs and pushed to github, I also added another file that I call Sharpie Mode, that makes sure 0 is the lowest the Z axis will go. This is so you can put a sharpie in the collet and run it to see where it will cut. (I needed to know if my piece of scrap wood had enough room for the chair.)

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 6:03am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/15 "2018-08-02T06:03:08Z")

</div>

Oh, I removed the spaces from the filename, but on Mac/linux putting a \ before the space should work. I don’t know about on Windows.

---

<div class="post-metadata">

### Author: ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)
#### Post date: [August 2, 2018, 6:06am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/16 "2018-08-02T06:06:19Z")

</div>

> [@Walt\_Moorhouse](#):
>
> on Mac/linux putting a \ before the space should work

Unfortunately, the gate won’t budge for any of these after the prompt:  
Folding\ Chair\ Version\ 2.nc  
‘Folding Chair Version 2.nc’  
“Folding Chair Version 2.nc”

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 7:40am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/17 "2018-08-02T07:40:01Z")

</div>

Ok, I added that script to the repo. Had some time while waiting for a cut to run. 🙂

---

<div class="post-metadata">

### Author: ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)
#### Post date: [August 2, 2018, 8:01am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/18 "2018-08-02T08:01:44Z")

</div>

The centering script works well. I think that’s very useful. Would you consider putting these into the Community Garden?

From another angle, have you used the ‘click-hold’ menu that pops up in GC when you click and hold on the screen? It uses the XY coordinates of the click and offers to move the sled to that point or set the ‘Home’ to that point. With some modifications, the click could be used as parameters to do what your script does, to offset the file without moving ‘Home’.

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 8:25am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/19 "2018-08-02T08:25:42Z")

</div>

Yeah I will try to add them to garden tomorrow.

No I hadn’t see click-hold. I’ll try that out.

---

<div class="post-metadata">

### Author: ![Walt\_Moorhouse](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/walt_moorhouse/32/7512_2.png) [@Walt\_Moorhouse](https://forums.maslowcnc.com/u/Walt_Moorhouse)
#### Post date: [August 2, 2018, 8:26am UTC](https://forums.maslowcnc.com/t/fold-flat-chair/3912/20 "2018-08-02T08:26:14Z")

</div>

I got it cut.

 ![20180802_012406](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/4/43c3425fc916f8f0ff2632ccc4910c0ff7ac8733.jpg)

[Next page](https://forums.maslowcnc.com/t/fold-flat-chair/3912.md?page=2)
