Skip to content

Instantly share code, notes, and snippets.

@johnpierson
Created August 19, 2022 16:26
Show Gist options
  • Save johnpierson/1ca90c7a23fba56ed2db68384e7e3170 to your computer and use it in GitHub Desktop.
Save johnpierson/1ca90c7a23fba56ed2db68384e7e3170 to your computer and use it in GitHub Desktop.
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('PresentationCore')
from System.Windows.Media import FontFamily
clr.AddReference('AdWindows')
from Autodesk.Windows import *
# Place your code below this line
ComponentManager.FontSettings.ComponentFontFamily = FontFamily("Comic Sans MS");
# Assign your output to the OUT variable.
OUT = "succesfully changed your ribbon to {0}".format(ComponentManager.FontSettings.ComponentFontFamily)
@DmitryDronovDre
Copy link

Need to design font with smiling text and set at at ribbon ))
Thx )))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment