Project > 4D
TimeLiner Export
Exports every TimeLiner task to a styled Excel workbook: outline numbers and indented names, planned and actual dates, durations, type, progress, status, attachments and user columns.
Status
Untested Never executed inside Navisworks. Passed the headless checks only.
Related asks to confirm
No quote is on record yet. These threads look related, but a person still has to open and read them.
Installs with
TimeLiner Export sits in a stack, so installing it also installs:
Events it listens to
None. It runs only when you click it.
Files
Paths are relative to the Playground.extension folder.
Project.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/bundle.yamlProject.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/icon.dark.pngProject.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/icon.pngProject.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/icon.small.dark.pngProject.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/icon.small.pngProject.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/script.py
Install
- Only this tool. In Navisworks, click pyNavis > Playground, search for TimeLiner Export, tick it and click Install.
- The whole extension. Download
Playground.extension.zip, unzip it, put thePlayground.extensionfolder in%APPDATA%\pyNavis\extensions\, and click pyNavis > Reload. TimeLiner Export is on the Project tab, 4D panel.
You need pyNavis 1.3.0 or later.
Tried it? Tell us whether it worked or not. That report is what moves a tool up the status ladder.
ReportSource
The tool's own files, word for word as published in pynavis/Playground. Paths are relative to the Playground.extension folder.
script.py
The script that runs on a click.
Project.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/script.py View on GitHub# -*- coding: utf-8 -*-
"""Exports every TimeLiner task to a styled Excel workbook with outline, dates, status and attachments."""
from pynavis import toast
from namo import fourd_common, progress, reports, ui
TITLE = 'TimeLiner Export'
def run():
if ui.is_runner():
result = reports.run('timeliner_export', {}, interactive=False)
toast.show(result['level'], result['message'], result['detail'])
return
doc = fourd_common.active_doc()
path = fourd_common.ask_save(doc, 'TimeLiner tasks', 'xlsx', 'Export TimeLiner tasks')
if path is None:
return
config = fourd_common.report_config(reports.default_config('timeliner_export'), path)
result = progress.run(TITLE, lambda report: reports.run('timeliner_export', config, doc=doc,
interactive=True, progress=report))
if result is progress.CANCELLED or result.get('cancelled'):
return
toast.show(result['level'], result['message'], result['detail'])
if result['level'] == 'success' and result['paths']:
fourd_common.open_file(result['paths'][0])
run()
Library modules this tool uses
From the shared namo library, which installs with every tool. Each name opens the module on GitHub.
namo.fourd_commonHelpers the 4D, Quantities and Field tools share: scopes, default files, text.namo.progressGlue between pyNavis' cancellable progress window and Playground's progress callbacks.namo.reportsThe registry of automation-ready reports, and the helpers every report shares.namo.uiWPF building blocks for Playground tools, themed from the pyNavis design system.
bundle.yaml
The bundle contract: the keys pyNavis reads for this tool.
Project.tab/4D.panel/Schedule_Tools.stack/TimeLiner_Export.pushbutton/bundle.yaml View on GitHubtitle: TimeLiner Export
tooltip: Exports every TimeLiner task to a styled Excel workbook: outline numbers and indented names, planned and actual dates, durations, type, progress, status, attachments and user columns.
context: doc