<?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: Button for Sketch.ShowUnderConstrained in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071107#M3369</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13285703"&gt;@christopher_hermansson&lt;/a&gt;&amp;nbsp;-San.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I misunderstood again.&lt;/P&gt;
&lt;P&gt;The only way to add a button to the menu is to create an add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do not use that text command, but we have created an add-in that does something similar.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kantoku-code/Fusion360_SketchToolPlus" target="_blank" rel="noopener"&gt;https://github.com/kantoku-code/Fusion360_SketchToolPlus&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several commands, but the "SketchAnalysis" command does the same thing.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;However, they are all displayed in Japanese. If necessary, we will modify it so that it can be displayed in English as well.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 07:20:15 GMT</pubDate>
    <dc:creator>kandennti</dc:creator>
    <dc:date>2023-06-30T07:20:15Z</dc:date>
    <item>
      <title>Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12069833#M3365</link>
      <description>&lt;P&gt;Hi! I want&amp;nbsp;to make an add-in that places a button on the sketch toolbar that runs the command Sketch.ShowUnderConstrained when clicked.&amp;nbsp;I've been trying for several hours, with the help of Chat-GPT, with no real success. Is it even possible?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 17:14:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12069833#M3365</guid>
      <dc:creator>christopher_hermansson</dc:creator>
      <dc:date>2023-06-29T17:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12070480#M3366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13285703"&gt;@christopher_hermansson&lt;/a&gt;&amp;nbsp;-San.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following sample switches between Driving/Driven dimensions.&lt;BR /&gt;It should be performed in the edit state of the sketch.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Fusion360API Python script

import traceback
import adsk.core as core
import adsk.fusion as fusion

def run(context):
    ui: core.UserInterface = None
    try:
        app: core.Application = core.Application.get()
        ui = app.userInterface
        des: fusion.Design = app.activeProduct

        skt: fusion.Sketch = fusion.Sketch.cast(des.activeEditObject)
        if not skt: return

        dim : fusion.SketchDimension = None
        for dim in skt.sketchDimensions:
            dim.isDriving = not dim.isDriving

        ui.messageBox("Done")

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 742px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1235052iBB804A3EB324CDC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 23:23:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12070480#M3366</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2023-06-29T23:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12070662#M3367</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13285703"&gt;@christopher_hermansson&lt;/a&gt;&amp;nbsp;-San.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I made a mistake.&lt;/P&gt;
&lt;P&gt;In the following sample, you can toggle the "Show Constraints" on the screen.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# Fusion360API Python script

import traceback
import adsk.core as core
import adsk.fusion as fusion

def run(context):
    ui: core.UserInterface = None
    try:
        app: core.Application = core.Application.get()
        ui = app.userInterface
        des: fusion.Design = app.activeProduct

        skt: fusion.Sketch = fusion.Sketch.cast(des.activeEditObject)
        if not skt: return

        skt.areConstraintsShown = not skt.areConstraintsShown

        ui.messageBox("Done")

    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;However, the Sketch Palette check was not linked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 691px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1235094i479B001BAEB841A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Therefore, I modified it and used the text command.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;・・・
        # skt.areConstraintsShown = not skt.areConstraintsShown
        txtCmd = u'Commands.SetBool show_constraints {}'.format(
            0 if skt.areConstraintsShown else 1
        )
        app.executeTextCommand(txtCmd)
・・・&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 691px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1235096iB0E82F77BEF8868C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 01:58:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12070662#M3367</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2023-06-30T01:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071032#M3368</link>
      <description>&lt;P&gt;Thank you, but that wasn't really what I was asking about. There is a text command "Sketch.ShowUnderConstrained" that you can type into the text command prompt. I just want to add a button to the toolbar that executes that command.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:41:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071032#M3368</guid>
      <dc:creator>christopher_hermansson</dc:creator>
      <dc:date>2023-06-30T06:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071107#M3369</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13285703"&gt;@christopher_hermansson&lt;/a&gt;&amp;nbsp;-San.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I misunderstood again.&lt;/P&gt;
&lt;P&gt;The only way to add a button to the menu is to create an add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do not use that text command, but we have created an add-in that does something similar.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kantoku-code/Fusion360_SketchToolPlus" target="_blank" rel="noopener"&gt;https://github.com/kantoku-code/Fusion360_SketchToolPlus&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several commands, but the "SketchAnalysis" command does the same thing.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;However, they are all displayed in Japanese. If necessary, we will modify it so that it can be displayed in English as well.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 07:20:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071107#M3369</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2023-06-30T07:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071493#M3370</link>
      <description>Fantastic!</description>
      <pubDate>Fri, 30 Jun 2023 10:43:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12071493#M3370</guid>
      <dc:creator>christopher_hermansson</dc:creator>
      <dc:date>2023-06-30T10:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12080466#M3371</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13285703"&gt;@christopher_hermansson&lt;/a&gt;&amp;nbsp;-San.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The display has been modified to switch according to the language of preferences.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kantoku-code/Fusion360_SketchToolPlus" target="_blank" rel="noopener"&gt;https://github.com/kantoku-code/Fusion360_SketchToolPlus&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some words may not be appropriate due to the use of a translation site.&lt;BR /&gt;Please let me know and I will fix it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 09:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/12080466#M3371</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2023-07-05T09:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13669523#M21857</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;FONT&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13285703"&gt;@christopher_hermansson&lt;/a&gt;&amp;nbsp;wrote:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;There is a text command "Sketch.ShowUnderConstrained" that you can type into the text command prompt. I just want to add a button to the toolbar that executes that command.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;I think it's a shame that such an important command is not offered in the Sketcher. I had a lot of fun with the Sketcher from the beginning, but I was always afraid of finding a missing Constrain. It was just too much of a relief when I found the command "&lt;/FONT&gt;&lt;SPAN&gt;Sketch.ShowUnderConstrained"&lt;/SPAN&gt;&lt;FONT&gt; in the Forum.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Christoph&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13669523#M21857</guid>
      <dc:creator>Christoph_360</dc:creator>
      <dc:date>2025-06-06T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13669542#M21858</link>
      <description>&lt;P&gt;there is no ZIP file for download at&amp;nbsp;&lt;A href="https://github.com/kantoku-code/Fusion360_SketchToolPlus" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/kantoku-code/Fusion360_SketchToolPlus&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:49:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13669542#M21858</guid>
      <dc:creator>toffypops</dc:creator>
      <dc:date>2025-06-06T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13669572#M21859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12964053"&gt;@toffypops&lt;/a&gt;&amp;nbsp;-san.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Click on the green “Code” to display.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kandennti_0-1749215255437.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1541070i434666D916F2DF81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kandennti_0-1749215255437.png" alt="kandennti_0-1749215255437.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 13:11:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13669572#M21859</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2025-06-06T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Button for Sketch.ShowUnderConstrained</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13673486#M21877</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Kandennti-San&lt;/STRONG&gt; &lt;/EM&gt;: &lt;EM&gt;&lt;STRONG&gt;Chat-GPT&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; --&amp;gt; &lt;FONT size="7"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;:&lt;FONT size="7"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 21:54:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/button-for-sketch-showunderconstrained/m-p/13673486#M21877</guid>
      <dc:creator>MichaelT_123</dc:creator>
      <dc:date>2025-06-09T21:54:49Z</dc:date>
    </item>
  </channel>
</rss>

