<?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: Using User Parameter values in Sketch Text... in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274015#M12791</link>
    <description>&lt;P&gt;Wow! many thanks for the quick reply, the code does pretty much exactly what I needed...&lt;/P&gt;&lt;P&gt;All I need to do now is figure out how it works under the hood!&lt;/P&gt;&lt;P&gt;Guess its time to go brush up on my Python, its been a few years...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jan 2020 08:21:44 GMT</pubDate>
    <dc:creator>andyAWMXG</dc:creator>
    <dc:date>2020-01-25T08:21:44Z</dc:date>
    <item>
      <title>Using User Parameter values in in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9273489#M12788</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;First of all apologies if I'm in the wrong forum or this has been asked before, I've only been playing with F360 for a couple of months and am still learning, and I searched without finding anything relevant...&lt;/P&gt;&lt;P&gt;I'm currently using F360 to design and occasionally 3D print jigs to help me with my woodworking. I try and make the designs scaleable using the maths and functions available for use with parameters but can't figure out how to use the content of a parameter in sketch text.&lt;/P&gt;&lt;P&gt;For example I have a user parameter "30", named "radius" which is used as the radius of an arc. It would be really useful if the content of parameter could also be used as the content of text in a sketch. This could be extruded into the model and included in a print.&lt;/P&gt;&lt;P&gt;This way one user parameter change for "radius" would also be reflected in any text using "radius" with some sort of delimiter to indicate the content is from the user parameters.&lt;/P&gt;&lt;P&gt;Is something like this even possible?&lt;/P&gt;&lt;P&gt;Thanks for any help/advice, and apologies again if I've missed something relevant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 21:19:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9273489#M12788</guid>
      <dc:creator>andyAWMXG</dc:creator>
      <dc:date>2020-01-24T21:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using User Parameter values in in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9273848#M12789</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7102580"&gt;@andyAWMXG&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried it because I never tried it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Open the f3d file included in the attached file.&lt;BR /&gt;2) Execute Addin of attached file.&lt;BR /&gt;3) Correct the "radius" value of the user parameter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 664px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/721156iBBDBF3AD971A3CA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;4) When you press the OK button, the text of the "jigs_mark" sketch is changed and the shape is also corrected.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 03:03:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9273848#M12789</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-01-25T03:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using User Parameter values in in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9273960#M12790</link>
      <description>&lt;P&gt;Attachment file Addin works as it is, but there was a part that I forgot.&lt;/P&gt;
&lt;P&gt;Adding it may make things a bit lighter.&lt;/P&gt;
&lt;PRE&gt;class CommandHandler(adsk.core.ApplicationCommandEventHandler):
・・・
    def update_jigs_mark(self):
・・・
            # skt
            skt :adsk.fusion.Sketch = root.sketches.itemByName('jigs_mark')
            txt :adsk.fusion.SketchText = skt.sketchTexts.item(0)
            txt.text = '{:.1f}'.format(um.convert(prm.value, um.internalUnits, prm.unit))

            &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;_last_radius = prm.value&lt;/FONT&gt;&lt;/STRONG&gt;

        except:
            if _ui:
                _ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Jan 2020 06:43:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9273960#M12790</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-01-25T06:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using User Parameter values in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274015#M12791</link>
      <description>&lt;P&gt;Wow! many thanks for the quick reply, the code does pretty much exactly what I needed...&lt;/P&gt;&lt;P&gt;All I need to do now is figure out how it works under the hood!&lt;/P&gt;&lt;P&gt;Guess its time to go brush up on my Python, its been a few years...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 08:21:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274015#M12791</guid>
      <dc:creator>andyAWMXG</dc:creator>
      <dc:date>2020-01-25T08:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using User Parameter values in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274234#M12792</link>
      <description>&lt;P&gt;I wrote the code but didn't come up with such an idea.&lt;BR /&gt;It was a good experience for me too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, this one only adds a little function to this one.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/events-handlers-for-sketch-selections-and-userparameters/m-p/9269089#M9225" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/events-handlers-for-sketch-selections-and-userparameters/m-p/9269089#M9225&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Thanks also to &lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5874556" target="_blank"&gt;@william-c-anderson&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 13:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274234#M12792</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-01-25T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using User Parameter values in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274955#M12793</link>
      <description>&lt;P&gt;Dam! - this is so close...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The add in doing exactly what i asked for but I have one tiny problem (my fault - sorry!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The text being changed is actually cut into the underside of the model and when the new text is rendered (is that the right word?) it needs to be horizontally flipped, can this be done in the code as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for being a pain!&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 10:46:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9274955#M12793</guid>
      <dc:creator>andyAWMXG</dc:creator>
      <dc:date>2020-01-26T10:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using User Parameter values in Sketch Text...</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9275069#M12794</link>
      <description>&lt;P&gt;Probably the same problem here.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/why-the-text-is-mirrored-and-upside-down/td-p/9222796" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/why-the-text-is-mirrored-and-upside-down/td-p/9222796&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I haven't looked into it, but I think the orientation of the sketchtext will be affected by the vector of the sketch's support surface.&lt;BR /&gt;As far as you can see the help, I think that the sketchtext can only change the angle.&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-265d4bb3-2e68-4edf-bd57-bb4d4204beb0" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-265d4bb3-2e68-4edf-bd57-bb4d4204beb0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me, I think that only the text model is created on XYPlane and moved.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 14:04:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/using-user-parameter-values-in-in-sketch-text/m-p/9275069#M12794</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2020-01-26T14:04:54Z</dc:date>
    </item>
  </channel>
</rss>

