<?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: BUG: update now throws exception setting isFullWidth on TableCommandInput object. in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11734328#M4525</link>
    <description>&lt;P&gt;Looks like this issue has now been fixed in the most recent update&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.0.15299&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 21:20:32 GMT</pubDate>
    <dc:creator>SendItCNC</dc:creator>
    <dc:date>2023-02-06T21:20:32Z</dc:date>
    <item>
      <title>BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725404#M4519</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After the latest update (&lt;/SPAN&gt;&lt;SPAN&gt;2.0.15291 x86_64 on MacOS) I get now get an exception when setting &lt;STRONG&gt;isFullWidth = True&lt;/STRONG&gt; on a &lt;STRONG&gt;TableCommandInput&lt;/STRONG&gt; object. &lt;EM&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;RuntimeError: 2 : InternalValidationError : control"&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked previously. Breaks our app. Anybody else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, -Dave&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 19:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725404#M4519</guid>
      <dc:creator>SendItCNC</dc:creator>
      <dc:date>2023-02-02T19:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725480#M4520</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8084301"&gt;@SendItCNC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yep! Noticed yesterday same issue reported to the team will let you know if I got some updates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:04:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725480#M4520</guid>
      <dc:creator>boopathi.sivakumar</dc:creator>
      <dc:date>2023-02-02T20:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725531#M4521</link>
      <description>&lt;P&gt;A user reported the same issue for one of my addin on Windows (&lt;A href="https://apps.autodesk.com/FUSION/fr/Detail/Index?id=6110768094548413359&amp;amp;appLang=en&amp;amp;os=Win64" target="_blank" rel="noopener"&gt;Tube Bending Data Exchanger&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;I hope the team will find and fix this bug soon.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:22:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725531#M4521</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2023-02-02T20:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11728496#M4522</link>
      <description>&lt;P&gt;New version of Fusion today, which unfortunately does not address this bug. So I guess its time to upload new version of our app, modified with a workaround to address this issue...&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11728496#M4522</guid>
      <dc:creator>SendItCNC</dc:creator>
      <dc:date>2023-02-03T20:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11728601#M4523</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":worried_face:"&gt;😟&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11728601#M4523</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2023-02-03T20:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11730732#M4524</link>
      <description>&lt;P&gt;Reported by users of ParametricText add-in as well: &lt;A href="https://github.com/thomasa88/ParametricText/issues/47" target="_blank" rel="noopener"&gt;https://github.com/thomasa88/ParametricText/issues/47&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that full width is now enabled by default, or the possibility to show the name has been removed, as the name specified in addTableCommandInput() does not show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fusion versions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;2.0.15291 x86_64&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;2.0.15293&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a reproduction using a modified version of the Command Inputs Sample script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;c:\Users\Thomas\AppData\Roaming\Autodesk\Autodesk Fusion 360\API\Scripts\Command API Inputs sample
Failed:
Traceback (most recent call last):
  File "C:/Users/Thomas/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Scripts/Command API Inputs sample/Command API Inputs sample.py", line 46, in notify
    tableInput.isFullWidth = True
  File "C:\Users/Thomas/AppData/Local/Autodesk/webdeploy/production/b266364513c09873dd62d7f39897939da3664358/Api/Python/packages\adsk\core.py", line 6144, in _set_isFullWidth
    return _core.CommandInput__set_isFullWidth(self, value)
RuntimeError: 2 : InternalValidationError : control&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#Author-Autodesk Inc.
#Description-Demo command input examples
import adsk.core, adsk.fusion, traceback

_app = None
_ui  = None
_rowNumber = 0

# Global set of event handlers to keep them referenced for the duration of the command
_handlers = []


# Event handler that reacts to when the command is destroyed. This terminates the script.            
class MyCommandDestroyHandler(adsk.core.CommandEventHandler):
    def __init__(self):
        super().__init__()
    def notify(self, args):
        try:
            # When the command is done, terminate the script
            # This will release all globals which will remove all event handlers
            adsk.terminate()
        except:
            _ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))


# Event handler that reacts when the command definitio is executed which
# results in the command being created and this event being fired.
class MyCommandCreatedHandler(adsk.core.CommandCreatedEventHandler):
    def __init__(self):
        super().__init__()
    def notify(self, args):
        try:
            # Get the command that was created.
            cmd = adsk.core.Command.cast(args.command)

            # Connect to the command destroyed event.
            onDestroy = MyCommandDestroyHandler()
            cmd.destroy.add(onDestroy)
            _handlers.append(onDestroy)

            # Get the CommandInputs collection associated with the command.
            inputs = cmd.commandInputs
           
            # Create table input
            tableInput = inputs.addTableCommandInput('table', 'Table Name', 3, '1:1:1')
            tableInput.isFullWidth = True
            
        except:
            _ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
            print('Failed:\n{}'.format(traceback.format_exc()))


def run(context):
    try:
        global _app, _ui
        _app = adsk.core.Application.get()
        _ui = _app.userInterface

        # Get the existing command definition or create it if it doesn't already exist.
        cmdDef = _ui.commandDefinitions.itemById('cmdInputsSample')
        if not cmdDef:
            cmdDef = _ui.commandDefinitions.addButtonDefinition('cmdInputsSample', 'Command Inputs Sample', 'Sample to demonstrate various command inputs.')

        # Connect to the command created event.
        onCommandCreated = MyCommandCreatedHandler()
        cmdDef.commandCreated.add(onCommandCreated)
        _handlers.append(onCommandCreated)

        # Execute the command definition.
        cmdDef.execute()

        # Prevent this module from being terminated when the script returns, because we are waiting for event handlers to fire.
        adsk.autoTerminate(False)
    except:
        if _ui:
            _ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: getter is also broken:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Failed:
Traceback (most recent call last):
  File "C:/Users/Thomas/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Scripts/Command API Inputs sample/Command API Inputs sample.py", line 46, in notify
    _ui.messageBox(str(tableInput.isFullWidth))
  File "C:\Users/Thomas/AppData/Local/Autodesk/webdeploy/production/b266364513c09873dd62d7f39897939da3664358/Api/Python/packages\adsk\core.py", line 6135, in _get_isFullWidth
    return _core.CommandInput__get_isFullWidth(self)
RuntimeError: 2 : InternalValidationError : control&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My workaround:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Fusion 2.0.15291 breaks isFullWidth. Exception: RuntimeError: 2 : InternalValidationError : control
    # Bug: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11725404
    try:
        table_input.isFullWidth = True
    except RuntimeError:
        pass&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 05 Feb 2023 06:19:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11730732#M4524</guid>
      <dc:creator>thomasa88</dc:creator>
      <dc:date>2023-02-05T06:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11734328#M4525</link>
      <description>&lt;P&gt;Looks like this issue has now been fixed in the most recent update&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.0.15299&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 21:20:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11734328#M4525</guid>
      <dc:creator>SendItCNC</dc:creator>
      <dc:date>2023-02-06T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: update now throws exception setting isFullWidth on TableCommandInput object.</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11735180#M4526</link>
      <description>&lt;P&gt;Great news! Thanks for the quick fix.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 05:57:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/bug-update-now-throws-exception-setting-isfullwidth-on/m-p/11735180#M4526</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2023-02-07T05:57:27Z</dc:date>
    </item>
  </channel>
</rss>

