Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TabbedBoxMaker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
machinery
TabbedBoxMaker
Commits
1a3846ee
Commit
1a3846ee
authored
Jun 23, 2015
by
paulh-rnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for compatibility with Inkscape 0.91
Hooray!
parent
e7e29ab9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
boxmaker.py
boxmaker.py
+13
-10
No files found.
boxmaker.py
View file @
1a3846ee
...
@@ -10,6 +10,9 @@ Modified by Paul Hutchison: 19/12/2014:
...
@@ -10,6 +10,9 @@ Modified by Paul Hutchison: 19/12/2014:
- Ability to also generate evenly spaced dividers within the box
- Ability to also generate evenly spaced dividers within the box
including tabbed joints to box sides and slots to slot into each other
including tabbed joints to box sides and slots to slot into each other
Modified by Paul Hutchison: 23/06/2015:
- Updated for Inkscape's 0.91 breaking change (unittouu)
This program is ugly software: you can clean it up yourself and/or mock it
This program is ugly software: you can clean it up yourself and/or mock it
under the unpublished terms of common civility.
under the unpublished terms of common civility.
...
@@ -201,8 +204,8 @@ class BoxMaker(inkex.Effect):
...
@@ -201,8 +204,8 @@ class BoxMaker(inkex.Effect):
svg
=
self
.
document
.
getroot
()
svg
=
self
.
document
.
getroot
()
# Get the attributes:
# Get the attributes:
widthDoc
=
inkex
.
unittouu
(
svg
.
get
(
'width'
))
widthDoc
=
self
.
unittouu
(
svg
.
get
(
'width'
))
heightDoc
=
inkex
.
unittouu
(
svg
.
get
(
'height'
))
heightDoc
=
self
.
unittouu
(
svg
.
get
(
'height'
))
# Create a new layer.
# Create a new layer.
layer
=
inkex
.
etree
.
SubElement
(
svg
,
'g'
)
layer
=
inkex
.
etree
.
SubElement
(
svg
,
'g'
)
...
@@ -214,16 +217,16 @@ class BoxMaker(inkex.Effect):
...
@@ -214,16 +217,16 @@ class BoxMaker(inkex.Effect):
# Get script's option values.
# Get script's option values.
unit
=
self
.
options
.
unit
unit
=
self
.
options
.
unit
inside
=
self
.
options
.
inside
inside
=
self
.
options
.
inside
X
=
inkex
.
unittouu
(
str
(
self
.
options
.
length
)
+
unit
)
X
=
self
.
unittouu
(
str
(
self
.
options
.
length
)
+
unit
)
Y
=
inkex
.
unittouu
(
str
(
self
.
options
.
width
)
+
unit
)
Y
=
self
.
unittouu
(
str
(
self
.
options
.
width
)
+
unit
)
Z
=
inkex
.
unittouu
(
str
(
self
.
options
.
height
)
+
unit
)
Z
=
self
.
unittouu
(
str
(
self
.
options
.
height
)
+
unit
)
thickness
=
inkex
.
unittouu
(
str
(
self
.
options
.
thickness
)
+
unit
)
thickness
=
self
.
unittouu
(
str
(
self
.
options
.
thickness
)
+
unit
)
nomTab
=
inkex
.
unittouu
(
str
(
self
.
options
.
tab
)
+
unit
)
nomTab
=
self
.
unittouu
(
str
(
self
.
options
.
tab
)
+
unit
)
equalTabs
=
self
.
options
.
equal
equalTabs
=
self
.
options
.
equal
kerf
=
inkex
.
unittouu
(
str
(
self
.
options
.
kerf
)
+
unit
)
kerf
=
self
.
unittouu
(
str
(
self
.
options
.
kerf
)
+
unit
)
clearance
=
inkex
.
unittouu
(
str
(
self
.
options
.
clearance
)
+
unit
)
clearance
=
self
.
unittouu
(
str
(
self
.
options
.
clearance
)
+
unit
)
layout
=
self
.
options
.
style
layout
=
self
.
options
.
style
spacing
=
inkex
.
unittouu
(
str
(
self
.
options
.
spacing
)
+
unit
)
spacing
=
self
.
unittouu
(
str
(
self
.
options
.
spacing
)
+
unit
)
boxtype
=
self
.
options
.
boxtype
boxtype
=
self
.
options
.
boxtype
divx
=
self
.
options
.
div_l
divx
=
self
.
options
.
div_l
divy
=
self
.
options
.
div_w
divy
=
self
.
options
.
div_w
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment