You can easily print emojis to the output window using the :emoji-shorthand:
convention. To see all the shorthand options, launch the Emoji tool under pyRevit slideout.
Use the codes printed on the output for each emoji. For example the code below prints 👌
print(':OK_hand:')
Emojis are a feature of the output window so they are supported from any language or script that prints to the output window
Console.WriteLine(":OK_hand:");
The link maker from the output object, can be used to create clickable links on the output window. See documentation here.
from pyrevit import script
output = script.get_output()
# assuming element is an instance of DB.Element
print(output.linkify(element.Id))
The table maker from the output object, can be used to create tables on the output window. See documentation here.
from pyrevit import script
output = script.get_output()
data = [['结构', '结构', '结构结构', 80],
['结构', '结构', '结构', 45],
['row3', 'data', 'data', 45],
['结构结构', 'data', '结构', 45]]
# formats contains formatting strings for each column
# last_line_style contains css styling code for the last line
output.print_table(table_data=data,
title="Example Table",
columns=["Row Name", "Column 1", "Column 2", "Percentage"],
formats=['', '', '', '{}%'],
last_line_style='color:red;')