Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
3f75c3f9
Commit
3f75c3f9
authored
Oct 23, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to use simarrange when no path has been defined
parent
0301ad79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
stlplater.py
printrun/stlplater.py
+10
-7
No files found.
printrun/stlplater.py
View file @
3f75c3f9
...
@@ -266,7 +266,7 @@ class StlPlaterPanel(PlaterPanel):
...
@@ -266,7 +266,7 @@ class StlPlaterPanel(PlaterPanel):
self
.
menusizer
.
Add
(
cutpanel
,
pos
=
(
nrows
+
1
,
0
),
span
=
(
1
,
2
),
flag
=
wx
.
EXPAND
)
self
.
menusizer
.
Add
(
cutpanel
,
pos
=
(
nrows
+
1
,
0
),
span
=
(
1
,
2
),
flag
=
wx
.
EXPAND
)
else
:
else
:
viewer
=
showstl
(
self
,
(
580
,
580
),
(
0
,
0
))
viewer
=
showstl
(
self
,
(
580
,
580
),
(
0
,
0
))
self
.
simarrange_path
=
simarrange_path
if
simarrange_path
else
"./simarrange/sa"
self
.
simarrange_path
=
simarrange_path
self
.
set_viewer
(
viewer
)
self
.
set_viewer
(
viewer
)
def
start_cutting_tool
(
self
,
event
,
axis
,
direction
):
def
start_cutting_tool
(
self
,
event
,
axis
,
direction
):
...
@@ -475,12 +475,15 @@ class StlPlaterPanel(PlaterPanel):
...
@@ -475,12 +475,15 @@ class StlPlaterPanel(PlaterPanel):
logging
.
info
(
_
(
"Wrote plate to
%
s"
)
%
name
)
logging
.
info
(
_
(
"Wrote plate to
%
s"
)
%
name
)
def
autoplate
(
self
,
event
=
None
):
def
autoplate
(
self
,
event
=
None
):
try
:
if
self
.
simarrange_path
:
self
.
autoplate_simarrange
()
try
:
except
Exception
,
e
:
self
.
autoplate_simarrange
()
logging
.
warning
(
_
(
"Failed to use simarrange for plating, "
except
Exception
,
e
:
"falling back to the standard method. "
logging
.
warning
(
_
(
"Failed to use simarrange for plating, "
"The error was: "
)
+
e
)
"falling back to the standard method. "
"The error was: "
)
+
e
)
super
(
StlPlater
,
self
)
.
autoplate
()
else
:
super
(
StlPlater
,
self
)
.
autoplate
()
super
(
StlPlater
,
self
)
.
autoplate
()
def
autoplate_simarrange
(
self
):
def
autoplate_simarrange
(
self
):
...
...
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