Recommend
19 
 Thumb up
 Hide
28 Posts
1 , 2  Next »   | 

BoardGameGeek» Forums » Gaming Related » Do It Yourself

Subject: Folding Box. rss

Your Tags: Add tags
Popular Tags: [View All]
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
I have been searching every where for a foldable box template. I have always known the template. Just never have found the template where you plug in the parameters and generate a box the size you want. I am sure what I have done could be more elegantly executed in inkscape ...

As a resolution I have created an openoffice/LibreOffice calc file that will generate the nandeck code to create the template.

A classic example of the box I am referring to is those that Lego use for their board games.

http://dl.dropbox.com/u/9080806/BoxNandeckBuild.ods

Just edit the parameters (all in centimeters)
* Internal Width - internal size of the box
* Internal Height - internal size if the box
* Box Depth - height of the box size
* Card Thickness - set this to 0 if using paper
* Lock Tag - from experience this should be between 1 and 2.

Copy the grey section and paste it into a nandeck file, and generate. Save to PDF and print.

You can use these instructions to fold the box.

http://www.lilystreasurebox.com/folding-instruction

Of course you can simply make a telescopic box with this template as well, just make two boxes, one that fits inside the other.

Here is an example template ... Cut along the solid lines and score and fold along the dotted.

http://dl.dropbox.com/u/9080806/BoxTemplate.PDF

Postscript template created by Gadi Oron
Folding box template with changeable dimensions
11 
 Thumb up
0.02
 tip
 Hide
  • [+] Dice rolls
Gadi Oron
Israel
Rehovot
flag msg tools
Avatar
mbmbmbmbmb
Hi,

Very nice work, and I tried it and it works just fine.
2 comments:
- What about a lid ?
- You seem to lack one line at the bottom of the box.

Many thanks for posting this! It will come in handy!
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
regex wrote:
Hi,

Very nice work, and I tried it and it works just fine.
2 comments:
- What about a lid ?
- You seem to lack one line at the bottom of the box.

Many thanks for posting this! It will come in handy!


To make a lid I would recommend making:

Lid Internal Width = Base Internal width + (3 x card thickness) + 0.2
Lid Internal Height = Base Internal Height + (3 x card thickness) + 0.2

As for the missing line? I noticed when I previewed the PDF a line at the bottom appeared to be missing, however on printing it was all ok.
3 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Beto Francischinelli
Brazil
Itu
São Paulo
flag msg tools
Avatar
mbmbmbmbmb
this is great! thank you!
I never played with nandeck, maybe now it's time

Except I can't open the .ods file
I know, shame on me!

Can you at least provide the code you used for your example template?
I just wanted to make the lid for it.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Taylor Bradley
United States
Bethany
OK
flag msg tools
badge
Avatar
mbmbmbmbmb
this is great, I have been looking for some easy boxes for my cosmic encounter cards
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
erf_beto wrote:
this is great! thank you!
I never played with nandeck, maybe now it's time

Except I can't open the .ods file
I know, shame on me!

Can you at least provide the code you used for your example template?
I just wanted to make the lid for it.


The reason why I do the calculations out of nandeck is because it can not perform long arithmetic calculations well. The code generated is just the required values, no formulas.

CARDS=1
BORDER=NONE
PAGE=21,29.7,PORTRAIT,HV
DPI=300
MARGINS=0,0,0,0
GAP=0,0
CARDSIZE=20,27.5
; Cut Lines
[X1]=7.25
[Y1]=0
[X2]=12.75
[Y2]=0
LINE=1,7.25,0,12.75,0,#000000,0.02,
[X1]=12.75
[Y1]=0
[X2]=13.75
[Y2]=1
LINE=1,12.75,0,13.75,1,#000000,0.02,
[X1]=13.75
[Y1]=1
[X2]=13.75
[Y2]=3.6
LINE=1,13.75,1,13.75,3.6,#000000,0.02,
[X1]=13.75
[Y1]=3.6
[X2]=15.95
[Y2]=4.05
LINE=1,13.75,3.6,15.95,4.05,#000000,0.02,
[X1]=15.95
[Y1]=4.05
[X2]=16.4
[Y2]=6.25
LINE=1,15.95,4.05,16.4,6.25,#000000,0.02,
[X1]=16.4
[Y1]=6.25
[X2]=19
[Y2]=6.25
LINE=1,16.4,6.25,19,6.25,#000000,0.02,
[X1]=19
[Y1]=6.25
[X2]=20
[Y2]=7.25
LINE=1,19,6.25,20,7.25,#000000,0.02,
[X1]=20
[Y1]=7.25
[X2]=20
[Y2]=20.25
LINE=1,20,7.25,20,20.25,#000000,0.02,
[X1]=20
[Y1]=20.25
[X2]=19
[Y2]=21.25
LINE=1,20,20.25,19,21.25,#000000,0.02,
[X1]=19
[Y1]=21.25
[X2]=16.4
[Y2]=21.25
LINE=1,19,21.25,16.4,21.25,#000000,0.02,
[X1]=16.4
[Y1]=21.25
[X2]=15.95
[Y2]=23.45
LINE=1,16.4,21.25,15.95,23.45,#000000,0.02,
[X1]=15.95
[Y1]=23.45
[X2]=13.75
[Y2]=23.9
LINE=1,15.95,23.45,13.75,23.9,#000000,0.02,
[X1]=13.75
[Y1]=23.9
[X2]=13.75
[Y2]=26.5
LINE=1,13.75,23.9,13.75,26.5,#000000,0.02,
[X1]=13.75
[Y1]=26.5
[X2]=12.75
[Y2]=27.5
LINE=1,13.75,26.5,12.75,27.5,#000000,0.02,
[X1]=12.75
[Y1]=27.5
[X2]=7.25
[Y2]=27.5
LINE=1,12.75,27.5,7.25,27.5,#000000,0.02,
[X1]=7.25
[Y1]=27.5
[X2]=6.25
[Y2]=26.5
LINE=1,7.25,27.5,6.25,26.5,#000000,0.02,
[X1]=6.25
[Y1]=26.5
[X2]=6.25
[Y2]=23.9
LINE=1,6.25,26.5,6.25,23.9,#000000,0.02,
[X1]=6.25
[Y1]=23.9
[X2]=4.05
[Y2]=23.45
LINE=1,6.25,23.9,4.05,23.45,#000000,0.02,
[X1]=4.05
[Y1]=23.45
[X2]=3.6
[Y2]=21.25
LINE=1,4.05,23.45,3.6,21.25,#000000,0.02,
[X1]=3.6
[Y1]=21.25
[X2]=1
[Y2]=21.25
LINE=1,3.6,21.25,1,21.25,#000000,0.02,
[X1]=1
[Y1]=21.25
[X2]=0
[Y2]=20.25
LINE=1,1,21.25,0,20.25,#000000,0.02,
[X1]=0
[Y1]=20.25
[X2]=0
[Y2]=7.25
LINE=1,0,20.25,0,7.25,#000000,0.02,
[X1]=0
[Y1]=7.25
[X2]=1
[Y2]=6.25
LINE=1,0,7.25,1,6.25,#000000,0.02,
[X1]=1
[Y1]=6.25
[X2]=3.6
[Y2]=6.25
LINE=1,1,6.25,3.6,6.25,#000000,0.02,
[X1]=3.6
[Y1]=6.25
[X2]=4.05
[Y2]=4.05
LINE=1,3.6,6.25,4.05,4.05,#000000,0.02,
[X1]=4.05
[Y1]=4.05
[X2]=6.25
[Y2]=3.6
LINE=1,4.05,4.05,6.25,3.6,#000000,0.02,
[X1]=6.25
[Y1]=3.6
[X2]=6.25
[Y2]=1
LINE=1,6.25,3.6,6.25,1,#000000,0.02,
[X1]=6.25
[Y1]=1
[X2]=7.25
[Y2]=0
LINE=1,6.25,1,7.25,0,#000000,0.02,
RECTANGLE=1,6.1,6.1,0.15,0.15,#000000,EMPTY,0.02
RECTANGLE=1,13.75,6.1,0.15,0.15,#000000,EMPTY,0.02
RECTANGLE=1,6.1,21.25,0.15,0.15,#000000,EMPTY,0.02
RECTANGLE=1,13.75,21.25,0.15,0.15,#000000,EMPTY,0.02
; Fold Lines
[X1]=6.25
[Y1]=1
[X2]=13.75
[Y2]=1
LINE=1,6.25,1,13.75,1,#888888,0.02,DSSD
[X1]=6.25
[Y1]=3.5
[X2]=13.75
[Y2]=3.5
LINE=1,6.25,3.5,13.75,3.5,#888888,0.02,DSSD
[X1]=6.25
[Y1]=3.6
[X2]=13.75
[Y2]=3.6
LINE=1,6.25,3.6,13.75,3.6,#888888,0.02,DSSD
[X1]=6.25
[Y1]=6.1
[X2]=13.75
[Y2]=6.1
LINE=1,6.25,6.1,13.75,6.1,#888888,0.02,DSSD
[X1]=6.25
[Y1]=3.6
[X2]=6.25
[Y2]=6.1
LINE=1,6.25,3.6,6.25,6.1,#888888,0.02,DSSD
[X1]=13.75
[Y1]=3.6
[X2]=13.75
[Y2]=6.1
LINE=1,13.75,3.6,13.75,6.1,#888888,0.02,DSSD
[X1]=6.25
[Y1]=26.5
[X2]=13.75
[Y2]=26.5
LINE=1,6.25,26.5,13.75,26.5,#888888,0.02,DSSD
[X1]=6.25
[Y1]=24
[X2]=13.75
[Y2]=24
LINE=1,6.25,24,13.75,24,#888888,0.02,DSSD
[X1]=6.25
[Y1]=23.9
[X2]=13.75
[Y2]=23.9
LINE=1,6.25,23.9,13.75,23.9,#888888,0.02,DSSD
[X1]=6.25
[Y1]=21.4
[X2]=13.75
[Y2]=21.4
LINE=1,6.25,21.4,13.75,21.4,#888888,0.02,DSSD
[X1]=6.25
[Y1]=21.4
[X2]=6.25
[Y2]=23.9
LINE=1,6.25,21.4,6.25,23.9,#888888,0.02,DSSD
[X1]=13.75
[Y1]=21.4
[X2]=13.75
[Y2]=23.9
LINE=1,13.75,21.4,13.75,23.9,#888888,0.02,DSSD
[X1]=1
[Y1]=6.25
[X2]=1
[Y2]=21.25
LINE=1,1,6.25,1,21.25,#888888,0.02,DSSD
[X1]=3.5
[Y1]=6.25
[X2]=3.5
[Y2]=21.25
LINE=1,3.5,6.25,3.5,21.25,#888888,0.02,DSSD
[X1]=3.6
[Y1]=6.25
[X2]=3.6
[Y2]=21.25
LINE=1,3.6,6.25,3.6,21.25,#888888,0.02,DSSD
[X1]=6.1
[Y1]=6.25
[X2]=6.1
[Y2]=21.25
LINE=1,6.1,6.25,6.1,21.25,#888888,0.02,DSSD
[X1]=6.25
[Y1]=6.1
[X2]=6.25
[Y2]=6.1
LINE=1,6.25,6.1,6.25,6.1,#888888,0.02,DSSD
[X1]=6.25
[Y1]=21.4
[X2]=6.25
[Y2]=23.9
LINE=1,6.25,21.4,6.25,23.9,#888888,0.02,DSSD
[X1]=3.6
[Y1]=6.25
[X2]=6.1
[Y2]=6.25
LINE=1,3.6,6.25,6.1,6.25,#888888,0.02,DSSD
[X1]=3.6
[Y1]=21.25
[X2]=6.1
[Y2]=21.25
LINE=1,3.6,21.25,6.1,21.25,#888888,0.02,DSSD
[X1]=19
[Y1]=6.25
[X2]=19
[Y2]=21.25
LINE=1,19,6.25,19,21.25,#888888,0.02,DSSD
[X1]=16.5
[Y1]=6.25
[X2]=16.5
[Y2]=21.25
LINE=1,16.5,6.25,16.5,21.25,#888888,0.02,DSSD
[X1]=16.4
[Y1]=6.25
[X2]=16.4
[Y2]=21.25
LINE=1,16.4,6.25,16.4,21.25,#888888,0.02,DSSD
[X1]=13.9
[Y1]=6.25
[X2]=13.9
[Y2]=21.25
LINE=1,13.9,6.25,13.9,21.25,#888888,0.02,DSSD
[X1]=13.9
[Y1]=6.25
[X2]=16.4
[Y2]=6.25
LINE=1,13.9,6.25,16.4,6.25,#888888,0.02,DSSD
[X1]=13.9
[Y1]=21.25
[X2]=16.4
[Y2]=21.25
LINE=1,13.9,21.25,16.4,21.25,#888888,0.02,DSSD
[X1]=4.05
[Y1]=4.05
[X2]=6.1
[Y2]=6.1
LINE=1,4.05,4.05,6.1,6.1,#888888,0.02,DSSD
[X1]=15.95
[Y1]=4.05
[X2]=13.9
[Y2]=6.1
LINE=1,15.95,4.05,13.9,6.1,#888888,0.02,DSSD
[X1]=15.95
[Y1]=23.45
[X2]=13.9
[Y2]=21.4
LINE=1,15.95,23.45,13.9,21.4,#888888,0.02,DSSD
[X1]=4.05
[Y1]=23.45
[X2]=6.1
[Y2]=21.4
LINE=1,4.05,23.45,6.1,21.4,#888888,0.02,DSSD
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jan Tuijp
Netherlands
Volendam
Noord-Holland
flag msg tools
badge
Avatar
mbmbmbmbmb

Pity. Excel 2010 can't open the file (well, it can, but the formula's are broken).

2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Txarli Txan
msg tools
mbmbmbmb

Easy file converter with Google Docs:
- upload file to your account in Google Docs
- then download file changing the options of file format.
3 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jan Tuijp
Netherlands
Volendam
Noord-Holland
flag msg tools
badge
Avatar
mbmbmbmbmb

That... actually works!

Thanks!

2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Gadi Oron
Israel
Rehovot
flag msg tools
Avatar
mbmbmbmbmb
Hi everyone

nannDeck is a great tool, but it produces only bitmaps, which are difficult to work with.

So I sat down with Paul's code and moved it into pure Postscript.

Until it gets approved in the file section, you can copy-paste it from the message.

Postscript is easily importable into many vector graphics SW and you can also convert it to PDF (look for ps2pdf).

You can alter dimensions in the header of the file - everything else follows Paul's calculations

Comments are welcomed

EDIT: Removed code
5 
 Thumb up
0.05
 tip
 Hide
  • [+] Dice rolls
Jan Tuijp
Netherlands
Volendam
Noord-Holland
flag msg tools
badge
Avatar
mbmbmbmbmb

regex wrote:
nannDeck is a great tool, but it produces only bitmaps, which are difficult to work with.


I'm not sure I understand? My version of NanDECK produces BMP, JPG, PNG and GIF and can also produce a complete pdf (images centered vertically and horizontally if you want, which is great for printing doublesided).

1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Gadi Oron
Israel
Rehovot
flag msg tools
Avatar
mbmbmbmbmb
Hi

Jan Tuijp wrote:

regex wrote:
nannDeck is a great tool, but it produces only bitmaps, which are difficult to work with.


I'm not sure I understand? My version of NanDECK produces BMP, JPG, PNG and GIF and can also produce a complete pdf (images centered vertically and horizontally if you want, which is great for printing doublesided).


Well, I used "bitmap" to designate the general coding of images as a raster image, i.e. a matrix of pixels - this includes all known formats like BMP, GIF, TIFF etc.

Raster images are great for photos, but not for linework. To list some drawbacks:
- Most of the format contain no scaling info - so is it a 1cm or 1km box?
- Compression algorithm makes linework ugly (look at a JPEG image for artifacts near text and lines)
- Most formats use RGB color-space, while printers use only CMYK. The conversion often introduces artifacts
- It is harder to rework them

PDF and Postscript are based on vector graphics where geometric entities are coded as such. Look at my code and you would see that I simply draw a line after another. They can also do raster image, but as special objects.

nanDeck only produces raster images. Even when you output a PDF, the PDF is just a container for a full page raster images.

It is a great SW, and I've used it many times, but when drawing linework it is much easier to do it in PS and get all the benefits of vector graphics.

Ciao
7 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jan Tuijp
Netherlands
Volendam
Noord-Holland
flag msg tools
badge
Avatar
mbmbmbmbmb

Very informative answer! Thank you.

2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
regex wrote:
Hi everyone

nannDeck is a great tool, but it produces only bitmaps, which are difficult to work with.

So I sat down with Paul's code and moved it into pure Postscript.

Until it gets approved in the file section, you can copy-paste it from the message.


When you get the file approved, send me the link and I will add it to the head post.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Gadi Oron
Israel
Rehovot
flag msg tools
Avatar
mbmbmbmbmb
Sure,

On the same occasion I will remove the code from the message.

A short question: why did you use the "[X1] = " lines throughout the code? It seems redundant to me.

Ciao

Relexx wrote:
regex wrote:
Hi everyone

nannDeck is a great tool, but it produces only bitmaps, which are difficult to work with.

So I sat down with Paul's code and moved it into pure Postscript.

Until it gets approved in the file section, you can copy-paste it from the message.


When you get the file approved, send me the link and I will add it to the head post.
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
It is a reference point in the spreadsheet, and I guess I was going to use X1, Y1, X2 and Y2 in my line points so I could copy and past the same line over and over again (which I didn't) ... blame it on evolving code.

so ... this
[X1]=4.05
[Y1]=4.05
[X2]=6.1
[Y2]=6.1
LINE=1,4.05,4.05,6.1,6.1,#888888,0.02,DSSD


should have been this ...
[X1]=4.05
[Y1]=4.05
[X2]=6.1
[Y2]=6.1
LINE=1,[X1],[Y1],[X2],[Y2],#888888,0.02,DSSD
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Gadi Oron
Israel
Rehovot
flag msg tools
Avatar
mbmbmbmbmb
That was my guess...

Anyway, the credit for the PS is 100% yours. I just copied the formulas.

Relexx wrote:
It is a reference point in the spreadsheet, and I guess I was going to use X1, Y1, X2 and Y2 in my line points so I could copy and past the same line over and over again (which I didn't) ... blame it on evolving code.

so ... this
[X1]=4.05
[Y1]=4.05
[X2]=6.1
[Y2]=6.1
LINE=1,4.05,4.05,6.1,6.1,#888888,0.02,DSSD


should have been this ...
[X1]=4.05
[Y1]=4.05
[X2]=6.1
[Y2]=6.1
LINE=1,[X1],[Y1],[X2],[Y2],#888888,0.02,DSSD
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Gadi Oron
Israel
Rehovot
flag msg tools
Avatar
mbmbmbmbmb
Ok, the PS version is approved:

Folding box template with changeable dimensions
2 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Taylor Bradley
United States
Bethany
OK
flag msg tools
badge
Avatar
mbmbmbmbmb
regex wrote:


What is the Lock Tag?
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
The lock tag is a tag that locks the folds in and holds the box it shape.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Taylor Bradley
United States
Bethany
OK
flag msg tools
badge
Avatar
mbmbmbmbmb
Relexx wrote:
The lock tag is a tag that locks the folds in and holds the box it shape.

Thanks!
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Te Waka
United Kingdom
flag msg tools
great work, thanks for posting!
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
egamar wrote:
The folding instructions are (now) at http://www.lilystreasurebox.com/folding-instruction

The original link didn't work for me.


Thanks I have updated the link at the top.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Ghislain LEVEQUE
France
flag msg tools
Avatar
mbmbmbmbmb
What paper/cardboard weight are you using to make such boxes ? Would 240gsm work ?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Paul Simmons
Australia
flag msg tools
designer
Avatar
mbmbmbmbmb
I have made small boxes with 80gsm and they hold fine, should be ok also. You may want to reinforce the base as it will only be one thickness where as the walls will be two. Just remember to set the card thickness if it is over about 1mm thick, otherwise the lock tab will distort the corners.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
1 , 2  Next »   | 
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.