<aside> ℹ️ Preflight Checks - Checks Folder
</aside>
from pyrevit.preflightimport PreflightTestCase
defcheckModel(doc, output):
# your tests and its outputs with a very basic thing as an example
title = doc.Title
output.print_md('# data I want to display to the end user')
output.print_md('Title of the document opened is **{}**'.format(title))
classModelChecker(PreflightTestCase):
"""
Description of what it does
"""
name = "title listed in the preflight checks ui"
author = "your name"
defsetUp(self, doc, output):
passdefstartTest(self, doc, output):
timer = coreutils.Timer()
checkModel(doc, output)
endtime = timer.get_time()
endtime_hms = str(datetime.timedelta(seconds=endtime))
endtime_hms_claim = "Transaction took " + endtime_hms
print(endtime_hms_claim)
deftearDown(self, doc, output):
passdefdoCleanups(self, doc, output):
pass
<aside> ℹ️ If you want to improve the model checker check itself. Feel free to make a PR against the develop branch.
</aside>