<?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: Can't get sketchText.eplode() method to return curves in Python in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673233#M21874</link>
    <description>&lt;P&gt;Hi Brian - well it's nice to know I'm not completely mad!&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to approach it another way in the meantime. Using asCurve() to get a list of curves.&lt;/P&gt;&lt;P&gt;Ive tried adding them to my new sketch using include() - but however I approach it, it throws an exception.&lt;/P&gt;&lt;P&gt;I can't find any example sof how I should be using it - are there any that you know of?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whilst stalled on that I am trying the 'very long hand' process of reading through the list of curves and re-creating them in the new sketch using .sketchFittedSpline.add() - but this is incredibley slow (minutes per sketch - for ony ~200 curves). There must be an easier way of copying a curve from one sketch to another - I feel like there are a few pages missing from my manual. Are there any good references on this stuff - the api reference has examples for everything apart from the methods I wish to use &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian B&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2025 17:55:27 GMT</pubDate>
    <dc:creator>design_oneBETU4</dc:creator>
    <dc:date>2025-06-09T17:55:27Z</dc:date>
    <item>
      <title>Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13671798#M21862</link>
      <description>&lt;P&gt;I'm trying to use the python api to explode text objects.&lt;/P&gt;&lt;P&gt;I can access the sketch, and sketchText objects fine, but when I try to explode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt; &lt;SPAN&gt;txt&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;new_sketch&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sketchTexts&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;curves&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;txt&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;explode&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get no curves ('curves' list is empty - len is 0 in debugger)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Am I being stupid here?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 08 Jun 2025 19:43:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13671798#M21862</guid>
      <dc:creator>design_oneBETU4</dc:creator>
      <dc:date>2025-06-08T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13672119#M21863</link>
      <description>&lt;P&gt;I'm unable to reproduce this. I get back a list of the curves. You didn't mention this, but there is one weird behavior of your code. The content of the SketchTexts collection is changing as it iterates over the sketch texts. This is because when you explore the text, it's no longer text so that the collection count will go down by one. One way to handle this is to create a list of the collection's contents and then iterate over the list. Its size won't change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what you want to do with the curves, but another way to get the curves that make up the text, without disturbing the text, is to use the asCurves method.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 05:26:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13672119#M21863</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2025-06-09T05:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13672290#M21864</link>
      <description>&lt;P&gt;Hi Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the 'reducing collection' is part of the problem - however there is still an issue of 'not actually exploding'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating my sketch by copying text items from another sketch (so as I can export text as a DXF without destrying the original sketch)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I explode the original sketch programatically - it works - curves are created&lt;/P&gt;&lt;P&gt;If I copy the text items to the new sketch and explode - no curves are returned&lt;/P&gt;&lt;P&gt;If I copy the text items to a new sketch, open it - edit it - close it - and then explode programatically - it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems that I am 'not doing something important' having once copied the text items to the new sketch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Minimal example of it not working - attached&lt;/P&gt;&lt;P&gt;Requires one sketch with one text item to run&lt;/P&gt;&lt;P&gt;Should create a new sketch with the item copied across (comment out the 'explode' loop at the end to see that it has created the new sketch with a text item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or insight gratefully accepted!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian B&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 07:19:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13672290#M21864</guid>
      <dc:creator>design_oneBETU4</dc:creator>
      <dc:date>2025-06-09T07:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673190#M21872</link>
      <description>&lt;P&gt;I can confirm there is a problem. It's strange because if I explode the text using the API, after your script has run, it works as expected, but doing it in your script doesn't work.&lt;/P&gt;&lt;P&gt;The behavior I'm seeing is that after the explode, the text is completely gone, so it makes sense that the list is empty since there aren't any curves to return. I'll make sure a bug is logged and let you know if I find any workaround.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 17:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673190#M21872</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2025-06-09T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673230#M21873</link>
      <description>&lt;P&gt;I found a workaround. It seems like when the API copies the text into the new sketch, it's not in a finished state. Performing any edit operation on the sketch gets it into a good state. If you add the following line to just before you do the explode, it will work. Any change to the text fixes the problem, and this change seems the least likely to change anything.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="general"&gt;txt.isHorizontalFlip =&amp;nbsp;txt.isHorizontalFlip&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jun 2025 17:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673230#M21873</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2025-06-09T17:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673233#M21874</link>
      <description>&lt;P&gt;Hi Brian - well it's nice to know I'm not completely mad!&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to approach it another way in the meantime. Using asCurve() to get a list of curves.&lt;/P&gt;&lt;P&gt;Ive tried adding them to my new sketch using include() - but however I approach it, it throws an exception.&lt;/P&gt;&lt;P&gt;I can't find any example sof how I should be using it - are there any that you know of?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whilst stalled on that I am trying the 'very long hand' process of reading through the list of curves and re-creating them in the new sketch using .sketchFittedSpline.add() - but this is incredibley slow (minutes per sketch - for ony ~200 curves). There must be an easier way of copying a curve from one sketch to another - I feel like there are a few pages missing from my manual. Are there any good references on this stuff - the api reference has examples for everything apart from the methods I wish to use &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian B&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 17:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673233#M21874</guid>
      <dc:creator>design_oneBETU4</dc:creator>
      <dc:date>2025-06-09T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get sketchText.eplode() method to return curves in Python</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673290#M21875</link>
      <description>&lt;P&gt;Indeed - that works around it!&lt;BR /&gt;Seems that explode doesn't then delete the SketchText - but I can handle that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian B.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 18:38:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/can-t-get-sketchtext-eplode-method-to-return-curves-in-python/m-p/13673290#M21875</guid>
      <dc:creator>design_oneBETU4</dc:creator>
      <dc:date>2025-06-09T18:38:03Z</dc:date>
    </item>
  </channel>
</rss>

