<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot select .shx fonts on SketchText object in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9835579#M15741</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1639694"&gt;@goyals&lt;/a&gt; , I played around a bit in the attached video.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was almost fooled that switching to/from SHX works, but as you can see later in the video, when I switch font in the GUI, Weidner.SHX has a completely different appearance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.0.9305&lt;BR /&gt;Active Plan: Fusion 360, Personal&lt;BR /&gt;Windows 10 (18363)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit. Looks like one has to press the download button on this attachment. Also, I think the error "invalid font name" might be the API reading the SHX font without the ".shx" suffix and feeding it back to Fusion - for every call that changes the font.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 18:40:21 GMT</pubDate>
    <dc:creator>thomasa88</dc:creator>
    <dc:date>2020-10-30T18:40:21Z</dc:date>
    <item>
      <title>Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8177980#M15722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try setting fontName on a SketchText object to any of the .shx font names ('Iso', 'Romans' etc), I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="font-error.png" style="width: 389px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/531148i357C4DA212A64A05/image-size/large?v=v2&amp;amp;px=999" role="button" title="font-error.png" alt="font-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not happen if I set the font to a system font like 'Arial'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I get fontName on a SketchText object that has had its font set to an .shx font via the GUI (EDIT TEXT) then the correct font name is returned without the extension (i.e. if 'Iso.shx' is selected, fontName returns 'Iso').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried setting fontName to 'Iso' with and without the .shx extension - It makes no difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 22:39:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8177980#M15722</guid>
      <dc:creator>matt_bucknall</dc:creator>
      <dc:date>2018-08-04T22:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8181085#M15723</link>
      <description>&lt;P&gt;I'm pretty sure this is a bug - Is this the right place to report bugs?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 22:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8181085#M15723</guid>
      <dc:creator>matt_bucknall</dc:creator>
      <dc:date>2018-08-06T22:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8182216#M15724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3960092"&gt;@matt_bucknall&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reporting this. &amp;nbsp;UP-39610 is created in our internal system to track this. &amp;nbsp;Your feedback is really crucial to help us in making Fusion great&amp;nbsp;product.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Shyam Goyal&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:27:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8182216#M15724</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2018-08-07T12:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8192881#M15725</link>
      <description>&lt;P&gt;Okay - Doesn't look like there is public access bug tracking available - How will I know when the issue is fixed?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 00:05:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8192881#M15725</guid>
      <dc:creator>matt_bucknall</dc:creator>
      <dc:date>2018-08-11T00:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8193877#M15726</link>
      <description>&lt;P&gt;Issue is already fixed on our side but it will be available for public in next release. I will update you through this thread once the fix is available.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 07:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8193877#M15726</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2018-08-12T07:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8225584#M15727</link>
      <description>&lt;P&gt;No sign of this being fixed in the August&amp;nbsp;22nd update. Likely to be in the next one?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Aug 2018 20:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8225584#M15727</guid>
      <dc:creator>matt_bucknall</dc:creator>
      <dc:date>2018-08-26T20:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8225942#M15728</link>
      <description>&lt;P&gt;Yes, the fix did not make it to August release. It will be part of next release.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 03:41:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8225942#M15728</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2018-08-27T03:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8297724#M15729</link>
      <description>&lt;P&gt;Looks to be sorted now - Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 19:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/8297724#M15729</guid>
      <dc:creator>matt_bucknall</dc:creator>
      <dc:date>2018-09-27T19:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9606551#M15730</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having issues trying to set the sketchText input for a textbox using a shx font. I can change the following text with Arial font without any errors:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;textBoxInput = 'sample'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;textBox1.text&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;textBoxInput&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, I run into the runtime error 3: invalid input font name when changing to shx.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Can you please help?&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Attached error message.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 28 Jun 2020 21:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9606551#M15730</guid>
      <dc:creator>JadeNJoy</dc:creator>
      <dc:date>2020-06-28T21:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9771509#M15731</link>
      <description>&lt;P&gt;I can confirm the behavior seen by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7623415"&gt;@JadeNJoy&lt;/a&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fusion v 2.0.9006.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to append ".shx" in the script does not fix it:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;try:
	sketch_text.text = evaluate_text(text)
except RuntimeError as e:
	print(e)
	if '3 : invalid input font name' in str(e):
		print("FONT OLD:", sketch_text.fontName)
		sketch_text.fontName = sketch_text.fontName + '.shx'
		print("FONT NEW:", sketch_text.fontName)
		sketch_text.text = evaluate_text(text)
					
					
3 : invalid input font name
FONT OLD: Weidner
FONT NEW: Weidner&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a workaround though! Set the fontName to a true type font temporarily.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;old_font = sketch_text.fontName + '.shx'
sketch_text.fontName = 'Arial'
sketch_text.text = evaluate_text(text)
sketch_text.fontName = old_font&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 06:08:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9771509#M15731</guid>
      <dc:creator>thomasa88</dc:creator>
      <dc:date>2020-09-28T06:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9819934#M15732</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1639694"&gt;@goyals&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7468050"&gt;@thomasa88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the same work around to make changes to .shx fonts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-family: inherit;"&gt;currentFontName&amp;nbsp;=&amp;nbsp;textBox1.fontName&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;textBox1.fontName&amp;nbsp;=&amp;nbsp;'Arial'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;textBox1.text&amp;nbsp;=&amp;nbsp;'change here'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;textBox1.fontName&amp;nbsp;=&amp;nbsp;currentFontName&amp;nbsp;+'.shx'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This still works fine on old style textboxes (from old templates I have) but doesn't work anymore on new style textboxes (probably since this week's update as of 19 Oct 2020).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have "RunTimeError 3: Invalid input font name" on &lt;EM&gt;textBox1.fontName&amp;nbsp;=&amp;nbsp;'Arial'&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Has there been a change in the way to change fontName? I looked in the reference manual but I havent seen changes and the new Sketch Text API Sample doesnt address it.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Oct 2020 08:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9819934#M15732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-23T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9821847#M15733</link>
      <description>&lt;P&gt;Ping &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/422657"&gt;@anandjoshi&lt;/a&gt;&amp;nbsp; , developer of new font feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm the issue seen by @Anonymous . Also, what has not been mentioned earlier is that&lt;STRONG&gt; changing the .text property fails if the font is an SHX font, with "3 : invalid input font name"&lt;/STRONG&gt;&amp;nbsp; (the switch to Arial workaround above "solved" this, but that is now broken as well.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my observations:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the GUI to create a text with "Arial" as font.&lt;/LI&gt;&lt;LI&gt;Set font as "Weidner.shx" using API (sketch_text.fontName = "Weidner.shx")&lt;/LI&gt;&lt;LI&gt;Font is still rendered as Arial.&lt;/LI&gt;&lt;LI&gt;Open the text edit dialog in the GUI. The font shows as "Weidner.shx" in the dropdown.&lt;/LI&gt;&lt;LI&gt;Press OK. The font is now re-rendered.&lt;/LI&gt;&lt;LI&gt;Try to change font to "Arial" using API:&lt;OL&gt;&lt;LI&gt;File "/ParametricText/ParametricText.py", line 561, in set_sketch_text&lt;BR /&gt;sketch_text.fontName = 'Arial'&lt;BR /&gt;File "/packages\adsk\fusion.py", line 58933, in _set_fontName&lt;BR /&gt;return _fusion.SketchText__set_fontName(self, value)&lt;BR /&gt;RuntimeError: 3 : invalid input font name&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Try to change .text -&amp;gt; RuntimeError: 3 : invalid input font name&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the GUI to create a text with "Arial Black" as font.&lt;/LI&gt;&lt;LI&gt;Set font as "Arial" using API (sketch_text.fontName = "Arial")&lt;/LI&gt;&lt;LI&gt;Font rendering is correctly updated to Arial.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This essentially breaks my add-in for SHX fonts (again).&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 06:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9821847#M15733</guid>
      <dc:creator>thomasa88</dc:creator>
      <dc:date>2020-10-24T06:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9824470#M15734</link>
      <description>&lt;P&gt;Hello &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/422657" target="_blank"&gt;@anandjoshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you advise re the mentioned issues or suggest an alternative way of updating textboxes with shx fonts?&amp;nbsp; This is crucial to my business operations to update templates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Antoine&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 13:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9824470#M15734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-26T13:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9825117#M15735</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share a sample script, that we can use in our investigation and validation.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 16:54:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9825117#M15735</guid>
      <dc:creator>suraj.rawat2A43P</dc:creator>
      <dc:date>2020-10-26T16:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9825625#M15736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7304622"&gt;@suraj.rawat2A43P&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1639694"&gt;@goyals&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below script used to work fine until last week. It is still possible to amend text when not in shx font. However, the problem is now changing the fontname itself doesnt work. In order to amend the text for textboxes with a shx font, the workaround was to first change the font to smth like Arial, then update the text and finally set the font back to a shx font.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import adsk.core, adsk.fusion, adsk.cam, traceback

def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui  = app.userInterface

        design = app.activeProduct
        rootComp = design.rootComponent
        sketches = rootComp.sketches

        textBox1Sketch = sketches.item(0)
        textBox1sketchTexts = textBox1Sketch.sketchTexts
        textBox1 = textBox1sketchTexts.item(0)

        try: 
            textBox1.text = "try this"
 
        except RuntimeError:
            #Special handling for SHX formats
            currentFontName = textBox1.fontName
            textBox1.fontName = 'Arial'
            textBox1.text = "try that"
            textBox1.fontName = currentFontName +'.shx'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 20:00:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9825625#M15736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-26T20:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834336#M15737</link>
      <description>&lt;P&gt;I am not able to see Arial.shx Shape font file in Fusion installed folder. Below is the list of shape font files present there. I tried your script with 'Weidner.shx' and it worked for me. May be you can try once on your side as well. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="goyals_0-1604049853090.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/838339iD9D70B155D6E3BC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="goyals_0-1604049853090.png" alt="goyals_0-1604049853090.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:25:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834336#M15737</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2020-10-30T09:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834365#M15738</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1639694"&gt;@goyals&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not trying to use Arial.shx. I was using Arial font as a work around to amend the text of a textbox which had the font set to shx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to change the fontName anymore using the code I provided. It used to work fine until the latest update. Are you able to change .fontName without getting the runTimeError 3?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the fact that we cannot update text from textboxes with shx fonts is a separate issue. I am able to change the values for others font types. This has been outstanding for a long time. Has this been logged?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:37:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834365#M15738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-30T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834434#M15739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes I am able to change the font name. Please take a look at attached video.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 10:11:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834434#M15739</guid>
      <dc:creator>goyals</dc:creator>
      <dc:date>2020-10-30T10:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834608#M15740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1639694"&gt;@goyals&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the below code, I have two outcomes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) if the initial font is not shx then the text will be updated. The change to shx will not update on the sketch although when opening the EDIT TEXT window manually it will show that it has been updated to shx. Only when you click OK on the EDIT TEXT window it will update the display on the sketch to the correct font.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) if the initial font is shx, then I run into runtimeerror 3 on&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;textBox1.fontName&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;"Arial"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;This behaviour was also observed by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7468050"&gt;@thomasa88&lt;/a&gt;&amp;nbsp; in this thread (message 12).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui = app.userInterface

        textBox1 = app.activeProduct.rootComponent.sketches[0].sketchTexts[0]

        currentFont = textBox1.fontName

        if currentFont != "Arial":
            textBox1.fontName = "Arial"
            textBox1.text = 'try this'
            textBox1.fontName = "Simplex.shx"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 11:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9834608#M15740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-30T11:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select .shx fonts on SketchText object</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9835579#M15741</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1639694"&gt;@goyals&lt;/a&gt; , I played around a bit in the attached video.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was almost fooled that switching to/from SHX works, but as you can see later in the video, when I switch font in the GUI, Weidner.SHX has a completely different appearance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.0.9305&lt;BR /&gt;Active Plan: Fusion 360, Personal&lt;BR /&gt;Windows 10 (18363)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit. Looks like one has to press the download button on this attachment. Also, I think the error "invalid font name" might be the API reading the SHX font without the ".shx" suffix and feeding it back to Fusion - for every call that changes the font.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 18:40:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-select-shx-fonts-on-sketchtext-object/m-p/9835579#M15741</guid>
      <dc:creator>thomasa88</dc:creator>
      <dc:date>2020-10-30T18:40:21Z</dc:date>
    </item>
  </channel>
</rss>

