forked from danawoodman/Google-Sketchup-Cutlister-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCutlister.rb
55 lines (52 loc) · 2.34 KB
/
Cutlister.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#-----------------------------------------------------------------------------
#
# Copyright 2010 Dana Woodman, Phoenix Woodworks. All Rights Reserved.
#
# Permission to use, copy, modify, and distribute this software for
# any purpose and without fee is hereby granted, provided the above
# copyright notice appear in all copies.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#-----------------------------------------------------------------------------
#
# Name : Cutlister
# Based On : Cutlister by Steve Racz & Dave Richards
# Type : Tool
# Author : Dana Woodman
# Email : <[email protected]>
# Website : https://github.com/danawoodman/Google-Sketchup-Cutlister-Plugin
# Blog :
#
# Maintenance : Please report all bugs or strange behavior to <[email protected]>
#
# Version : 1.0
#
# Menu Items : Plugins -> Cutlist Model
#
# Toolbar : Cutlist Material - Includes one large and one small icon.
#
# Context-Menu: Cutlist Selection
#
# Description : Automates the creating of cut lists for your woodworking project.
# : A cut list is a table of parts used to make up a piece of
# : cabinetry or furniture (such as a door, wall end, back or finished end).
#
# To Install : Place the Cutlister.rb Ruby script and the
# : `Cutlister` directory in the SketchUp Plugins folder.
#-----------------------------------------------------------------------------
require 'sketchup.rb'
require 'extensions.rb'
# Toggle whether debugging is on or off ("true" means on, "false" means off).
CUTLISTER_VERSION = '1.0'
$cutlister_debug = false
CUTLISTER_BASE_PATH = File.dirname(__FILE__)
# Register plugin as an extension.
cutlister_extension = SketchupExtension.new "Cutlister", File.join(CUTLISTER_BASE_PATH, "Cutlister/main.rb")
cutlister_extension.version = CUTLISTER_VERSION
cutlister_extension.creator = 'Dana Woodman'
cutlister_extension.copyright = '2010-2011'
cutlister_extension.description = "Automates the creating of cut lists for your woodworking project. A cut list is a table of parts used to make up a piece of cabinetry or furniture (such as a door, wall end, back or finished end)."
Sketchup.register_extension cutlister_extension, true