Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65932825
progress.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jun 7, 04:32
Size
614 B
Mime Type
text/x-python
Expires
Sun, Jun 9, 04:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18147858
Attached To
R8831 BIMxBEM
progress.py
View Options
try
:
import
pyCaller
except
ImportError
:
pass
class
Progress
:
def
__init__
(
self
):
try
:
pyCaller
self
.
is_active
=
True
except
NameError
:
self
.
is_active
=
False
def
set
(
self
,
pourcentage
:
int
,
step_id
:
str
,
message
:
str
):
"""Set progression during IFC import
Pourcentage: is x as in x/100.
step_id: step name which can be interpretable as an id for translation
message: is a free string message"""
if
self
.
is_active
:
pyCaller
.
SetProgress
(
pourcentage
,
step_id
,
message
)
progress
=
Progress
()
Event Timeline
Log In to Comment