Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
freecad_x3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
freecad_x3d
Commits
4edcdbba
Commit
4edcdbba
authored
Dec 14, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic corerctions
parent
acf51c4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
x3d_step_assy.py
x3d_step_assy.py
+2
-7
No files found.
x3d_step_assy.py
View file @
4edcdbba
...
...
@@ -1297,7 +1297,7 @@ class X3dStepAssyDialog(QtGui.QWidget):
if
path
:
return
path
if
mode
==
"assy"
:
return
"Active document"
return
"Active
FreeCAD
document"
elif
mode
==
"log"
:
return
"none"
# stdout"
else
:
...
...
@@ -1660,10 +1660,7 @@ class X3dStepAssyDialog(QtGui.QWidget):
return
FreeCAD
.
Console
.
PrintMessage
(
"Getting BOM..."
)
self
.
preRun
()
offsets
=
list_parts_offsets
()
bom
=
getBOM
()
# sys.stdout.close()
# sys.stdout = sys.__stdout__
try
:
if
self
.
assembly_path
:
aname
,
_
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
assembly_path
))
...
...
@@ -1677,7 +1674,7 @@ class X3dStepAssyDialog(QtGui.QWidget):
self
.
bom_btn
.
setToolTip
(
"Generate Bill of Materials (parts list)"
)
txt
=
"Bill of Materials for
%
s
\n\n
"
%
(
aname
)
for
i
,
m
in
enumerate
(
bom
):
txt
+=
"
%3
d
\t
%
s
\t
%
d
\n
"
%
(
i
,
m
[
0
],
int
(
m
[
1
]))
txt
+=
"
%3
d
\t
%
s
\t
%
d
\n
"
%
(
i
+
1
,
m
[
0
],
int
(
m
[
1
]))
txt_edit
=
X3dStepAssyDialog
.
TextViewerWindow
(
txt
,
"Bill of Materials for
%
s"
%
(
aname
),(
400
,
10
,
300
,
500
),
False
,
False
,
self
.
x3d_root_path
)
txt_edit
.
show
()
...
...
@@ -1688,8 +1685,6 @@ class X3dStepAssyDialog(QtGui.QWidget):
FreeCAD
.
Console
.
PrintMessage
(
"Starting parts offsets calculation..."
)
self
.
preRun
()
offsets
=
list_parts_offsets
()
# sys.stdout.close()
# sys.stdout = sys.__stdout__
txt
=
(
"Parts volume centers distance from the coordinate origin. "
"Keeping this distance reasonably small (not larger than the object size) "
...
...
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