<?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: Efficient ways to change text in a design, repeatedly in Fusion Design, Validate &amp; Document Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9971200#M124319</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for trying this out.&lt;BR /&gt;I think this may be related to constraints on the text box itself. Try to play around a little bit with different constraints. Hope that you will figure it out. I don't know if I fully understand your problem so if nothing will help out please send the screen-cast to check the problem:)&lt;BR /&gt;Cheers&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Dec 2020 16:03:36 GMT</pubDate>
    <dc:creator>l_kesiunas</dc:creator>
    <dc:date>2020-12-31T16:03:36Z</dc:date>
    <item>
      <title>Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9153823#M124314</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question i'm trying to answer is a tad complex so bear with me.&amp;nbsp; Essentially, I create a lot of designs for 3D printing where each customer may give me different text for the design.&amp;nbsp; As it stands I have a saved file before exploding the text.&amp;nbsp; I open that file, type in the new text, explode it, and extrude it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now I wish to get much more complex.&amp;nbsp; I want to make designs that reference text and build a back plate around it, for example.&amp;nbsp; Is it possible to do this with fusion 360?&amp;nbsp; Can I "go back" in a design and edit exploded text for new designs?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For comparison I've seen this done in openscad where you can type text to generate a design since it is script based.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any input?&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 23:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9153823#M124314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-18T23:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9155918#M124315</link>
      <description>&lt;P&gt;You can change the text, but not if you explode it.&amp;nbsp; Once extruded, you can project the bodies to another sketch and the projected geometry will update as long as you don't change the number of characters.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 20:36:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9155918#M124315</guid>
      <dc:creator>etfrench</dc:creator>
      <dc:date>2019-11-19T20:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9208092#M124316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’ve came accross the same idea as yours that I wanted to achieve. After few days of reading, tinkering and “learning” how python works I’ve found really cool solution that I want to share with you guys. It lets me to change the text in the design in just two clicks and save that as an stl automatically – ready for 3D printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, let’s start from the credits which goes to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;ekinsb and rwillardphil&lt;/STRONG&gt; from this forum had a discussion and did some Fusion API coding that I‘ve mixed together. (&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/script-to-select-sketchtext-and-have-a-dialog-box-pop-up-to/td-p/6065937" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/script-to-select-sketchtext-and-have-a-dialog-box-pop-up-to/td-p/6065937&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;Once again &lt;STRONG&gt;ekinsb&lt;/STRONG&gt; made another awesome answer with the code on this forum thread that I‘ve mixed in (&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/script-api-to-change-parameter-and-then-export-as-stl/td-p/7038013" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/script-api-to-change-parameter-and-then-export-as-stl/td-p/7038013&lt;/A&gt;)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to get started, first you need to create anew script (code below):&lt;/P&gt;&lt;PRE&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
        
        # Get the sketch named "ChangeText"
        sk = rootComp.sketches.itemByName('ChangeText')
        
        # Get the first sketch text.
        skText = sk.sketchTexts.item(0)

        #Prompts the user for the new Text   
        (returnValue, cancelled) = ui.inputBox('What text?', 'New text:', )
        
        # Grab the sketch and first text entity 
        sk = rootComp.sketches.itemByName('ChangeText') 
        skText = sk.sketchTexts.item(0)

        # Change the text.
        skText.text = returnValue

        # Write in the path to the folder where you want to save STL‘s
        folder = 'C:/Users/Desktop/etc...'
        
        # Construct the output filename. Name will be the same as you‘ve changed    the text into.
        filename = folder + skText.text + '.stl'

        # Save the file as STL.
        exportMgr = adsk.fusion.ExportManager.cast(design.exportManager)
        stlOptions = exportMgr.createSTLExportOptions(rootComp)
        stlOptions.meshRefinement = adsk.fusion.MeshRefinementSettings.MeshRefinementMedium
        stlOptions.filename = filename
        exportMgr.execute(stlOptions)

    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create design and add new sketch where the text that you want to change will be.&lt;/P&gt;&lt;P&gt;IMPORTANT: name that sketch „ChangeText“ so that script could grab it and work on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next thing that was very important for me was to find a solution to align text so that when you change it it still stays aligned. It is done by a little trick as Fusion doesn‘t have much text options. It is really simple when you find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I‘ve made a screencast how everything works and how to align text so it stays „parametric“. Attached below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that when you choose coincident constraint for the text you should hold SHIFT+find center of the line and click it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that will help as it helped me a lot &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy 3D printing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Maybe someone could help me to add some code so that if you change the text into the same one that is already in the STL export folder, it automatically makes file name "filename+2"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 96.875%;"&gt;&lt;IFRAME width="640" height="620" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/b621c973-5f20-4384-a366-5ed1b8976d26" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Dec 2019 21:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9208092#M124316</guid>
      <dc:creator>l_kesiunas</dc:creator>
      <dc:date>2019-12-17T21:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9970610#M124317</link>
      <description>&lt;P&gt;Good day to you!&lt;/P&gt;&lt;P&gt;I came across this and found it to be an amazing little script for my purpose.&lt;/P&gt;&lt;P&gt;I got it to work by following your instructions, however after I input the text on the dialogue box, the newly written text comes out with a lot of space in between letters. Any idea how to fix this? thank you&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 07:18:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9970610#M124317</guid>
      <dc:creator>vicente.villegas1204</dc:creator>
      <dc:date>2020-12-31T07:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9970744#M124318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check out the new text function on the path.&lt;BR /&gt;Use a simple line as the path and play with the options (lenght of path included). It is also possible to change the spacing afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;günther&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 09:47:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9970744#M124318</guid>
      <dc:creator>g-andresen</dc:creator>
      <dc:date>2020-12-31T09:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9971200#M124319</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for trying this out.&lt;BR /&gt;I think this may be related to constraints on the text box itself. Try to play around a little bit with different constraints. Hope that you will figure it out. I don't know if I fully understand your problem so if nothing will help out please send the screen-cast to check the problem:)&lt;BR /&gt;Cheers&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Dec 2020 16:03:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9971200#M124319</guid>
      <dc:creator>l_kesiunas</dc:creator>
      <dc:date>2020-12-31T16:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9971887#M124320</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a real nice script! Thank you&lt;/P&gt;&lt;P&gt;I've tried different types of constraints and the issue seems to be the same. Will attach photos&lt;/P&gt;&lt;P&gt;I wrote "Test" manually, then booted up the script and wrote "HI" It came out the way it did on the second photo&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/861464i92608A08A20E0139/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TEST2.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/861465i324CA154B496B4E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TEST2.png" alt="TEST2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 03:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9971887#M124320</guid>
      <dc:creator>vicente.villegas1204</dc:creator>
      <dc:date>2021-01-01T03:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9972475#M124321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to reproduce your described problem but couldn't figure out how to solve it though.&lt;BR /&gt;As I'm not that great at programming maybe someone could help us?:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the script command which changes the text interferes with some kind of values of different lengths of texts. Are there any other commands to change text (different than:&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;skText&amp;nbsp;=&amp;nbsp;sk.sketchTexts.item(&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;)&amp;nbsp; &amp;nbsp;)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 17:34:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/9972475#M124321</guid>
      <dc:creator>l_kesiunas</dc:creator>
      <dc:date>2021-01-01T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/10002200#M124322</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was having the spacing issue and was able to solve the problem by choosing the "Text on Path" option to create the text, then selecting the "Fit to path" checkbox.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 19:13:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/10002200#M124322</guid>
      <dc:creator>lancejordanmills</dc:creator>
      <dc:date>2021-01-14T19:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/10002208#M124323</link>
      <description>Thank you very much, I will give it a try!!:)&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2021 19:15:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/10002208#M124323</guid>
      <dc:creator>l_kesiunas</dc:creator>
      <dc:date>2021-01-14T19:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient ways to change text in a design, repeatedly</title>
      <link>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/12474953#M124324</link>
      <description>&lt;P&gt;I've been trying to incorporate the file name in the export stl&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Construct the output filename. Name will be the same as you‘ve changed the text into.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;filename&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;folder&lt;/SPAN&gt; &lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;skText&lt;/SPAN&gt;&lt;SPAN&gt;.text &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;'.stl'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've tried changing this line to;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;filename&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;folder&lt;/SPAN&gt;&amp;nbsp;+ filename&amp;nbsp;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;skText&lt;/SPAN&gt;&lt;SPAN&gt;.text &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;'.stl'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;filename = folder&amp;nbsp;+ rootComp + skText.text + '.stl'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and a couple other variants, but I always get an error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Jan 2024 19:11:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-design-validate-document/efficient-ways-to-change-text-in-a-design-repeatedly/m-p/12474953#M124324</guid>
      <dc:creator>David_Ewen</dc:creator>
      <dc:date>2024-01-03T19:11:24Z</dc:date>
    </item>
  </channel>
</rss>

