<?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: python script pipe creation in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665652#M19255</link>
    <description>&lt;P&gt;As you found, there is API access to the setting to toggle whether the design history is captured or not. &amp;nbsp;Actually it's a toggle and also a conversion because if you have a design with the full design history and then change this setting, all of the existing design history is lost.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I'm not sure you need this for the case you described. &amp;nbsp;Whether you're capturing the design history or not, when the feature fails and nothing is created so there's nothing to remove to re-try it.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2016 17:16:05 GMT</pubDate>
    <dc:creator>ekinsb</dc:creator>
    <dc:date>2016-11-03T17:16:05Z</dc:date>
    <item>
      <title>python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6614016#M19245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using this command to draw splines between 3 points, but I now would like to add&amp;nbsp;pipes along those&amp;nbsp;lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sketch.sketchCurves.sketchFittedSplines.add(points)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to find any examples for drawing pipes]. Can you point me to any documentation for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 05:59:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6614016#M19245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T05:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6614113#M19246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the spline to create a Path (Path.create), and create a sweep feature along the path. Take the SweepFeature API sample for example: &lt;A href="http://fusion360.autodesk.com/learning/learning.html?guid=GUID-8261B011-EAAA-49F9-A5A4-48DC0BFC1548" target="_blank"&gt;http://fusion360.autodesk.com/learning/learning.html?guid=GUID-8261B011-EAAA-49F9-A5A4-48DC0BFC1548&lt;/A&gt;. Also you can take the "Pipe" script sample on "Scripts and Add-ins" dialog for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 07:09:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6614113#M19246</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-10-11T07:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6651641#M19247</link>
      <description>&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already marked this topic&amp;nbsp;as resolved, but I have another more detailed question now that I've had a chance to make some sweeps&amp;nbsp;from scripts. Let me know if you think I should create a new thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1st&amp;nbsp;problem)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached an example python script which illustrates the issue I'm having with sweeps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Overall my goal is to create a closed-path sweep&amp;nbsp;consisting of&amp;nbsp;multiple merged&amp;nbsp;splines, then dragging a profile over that single closed-path spline to create a pipe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried a method of creating a sweep for each spline, but ran into the same issue as I recall. I suspected merging all splines into one path might simplify sweep computations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached script contains two "face" datasets and two methods of merging the splines. For one set of face and method, I am able to generate the desired model, but it takes forever to compute and as I said, doesn't work for the other dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Overall my goal is a pipe like this,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="good_one_face.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/286726iA166FF4A5FF1E01A/image-size/large?v=v2&amp;amp;px=999" role="button" title="good_one_face.png" alt="good_one_face.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using this 'one face' dataset of (4) splines,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splines_one_face.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/286727i0EA7B0424D57781C/image-size/large?v=v2&amp;amp;px=999" role="button" title="splines_one_face.png" alt="splines_one_face.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'2nd face' dataset: (5) splines&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splines_2nd_face.png" style="width: 578px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/286729iD5981366A88A7676/image-size/large?v=v2&amp;amp;px=999" role="button" title="splines_2nd_face.png" alt="splines_2nd_face.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;showing single spline and profile, but this fails to compute given the following error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="one_face_closed_path1_sketch.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/286725i4A5ADD0ED7920490/image-size/large?v=v2&amp;amp;px=999" role="button" title="one_face_closed_path1_sketch.png" alt="one_face_closed_path1_sketch.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="one_face_closed_path1.png" style="width: 654px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/286728i1B24CC233A912B30/image-size/large?v=v2&amp;amp;px=999" role="button" title="one_face_closed_path1.png" alt="one_face_closed_path1.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd problem)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another related problem concerns the profile orientation to the spline. I would like to make the profile normal to the spline at all locations, but it seems I can only select one of the 3 F360 sketch planes for orienting that profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a screen cast showing a profile that is very far from&amp;nbsp;normal to the spline path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this something I should be concerned with? And if so, how I do make the profile always normal to the path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 21:22:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6651641#M19247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-27T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6651647#M19248</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/6411c2b3-0ad9-4437-abce-47f45af55f78" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" style="display: inline;"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Oct 2016 21:23:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6651647#M19248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-27T21:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6652484#M19249</link>
      <description>&lt;P&gt;Hi Sean,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem was&amp;nbsp;that the profile you made&amp;nbsp;was not perpendicular to the close path. To make&amp;nbsp;the profile &lt;SPAN&gt;perpendicular to the close path&lt;/SPAN&gt;,&amp;nbsp;create a construction plane along the path, create the sketch on the&amp;nbsp;&lt;SPAN&gt;construction plane, then create sketch circle on the sketch. I updated your script as below. It works.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#Author-seanharre@gmail.com
#Description-sweep pipe

import adsk.core, adsk.fusion, traceback

def newpt(x,y,z):
    global points
    point = adsk.core.Point3D.create(x,y,z)
    points.add(point)
    return point

def add_splines_to_plot(points):
    global sketchxy
    if points:
        spline = sketchxy.sketchCurves.sketchFittedSplines.add(points)
        all_spline.append(spline)

def main():
    ui = None
    try:
        global app,ui,sketchxy,rootComp,points,all_spline
        app = adsk.core.Application.get()
        ui  = app.userInterface
        #design = app.activeProduct
        doc = app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)
        product = app.activeProduct
        design = adsk.fusion.Design.cast(product)

        # Get the root component of the active design.
        rootComp = design.rootComponent
        
        # Create a new sketch on the xy plane.
        sketchxy = rootComp.sketches.add(rootComp.xYConstructionPlane)
        
        # Create an object collection for the points.
        points = adsk.core.ObjectCollection.create()
        all_spline = []
        
        # "one face"
        # fails 'CLOSED_PATH #1', works with 'CLOSED_PATH #2'
        newpt(-3.0 , -2.00116 , 0.516875)
        newpt(-2.9010937500000002 , -2.0006500000000003 , 0.12921875)
        newpt(-2.604375 , -1.99912 , 0.0)
        add_splines_to_plot(points)
        points.clear()
        newpt(-2.604375 , -1.99912 , 0.0)
        newpt(-2.3076125000000003 , -1.99759 , 0.090481375)
        newpt(-2.208575 , -1.99708 , 0.3619255)
        add_splines_to_plot(points)
        points.clear()
        newpt(-2.208575 , -1.99708 , 0.3619255)
        newpt(-2.30739375 , -1.99759 , 0.672107)
        newpt(-2.6042 , -1.99912 , 0.8788005)
        add_splines_to_plot(points)
        points.clear()
        newpt(-2.6042 , -1.99912 , 0.8788005)
        newpt(-2.90105 , -2.0006500000000003 , 0.8657938749999999)
        newpt(-3.0 , -2.00116 , 0.516875)
        add_splines_to_plot(points)
        points.clear()


        # "2nd face"
        # fails even with 'CLOSED_PATH #2', giving distorted splines
#        newpt( -3.0 , -2.19475 , 1.1643249999999998 )
#        newpt( -3.0 , -2.4164 , 1.26222 )
#        newpt( -3.0 , -2.6941699999999997 , 1.2947549999999999 )
#        add_splines_to_plot(points)
#        points.clear()
#        newpt( -3.0 , -2.6941699999999997 , 1.2947549999999999 )
#        newpt( -3.0 , -2.9235425 , 1.13282 )
#        newpt( -3.0 , -3.0 , 0.647305 )
#        add_splines_to_plot(points)
#        points.clear()
#        newpt( -3.0 , -3.0 , 0.647305 )
#        newpt( -3.0 , -2.875145 , 0.16182625 )
#        newpt( -3.0 , -2.5005800000000002 , 0.0 )
#        add_splines_to_plot(points)
#        points.clear()
#        newpt( -3.0 , -2.5005800000000002 , 0.0 )
#        newpt( -3.0 , -2.1260149999999998 , 0.12921875 )
#        newpt( -3.0 , -2.00116 , 0.516875 )
#        add_splines_to_plot(points)
#        points.clear()
#        newpt( -3.0 , -2.00116 , 0.516875 )
#        newpt( -3.0 , -2.0495574999999997 , 0.9371749999999999 )
#        newpt( -3.0 , -2.19475 , 1.1643249999999998 )
#        add_splines_to_plot(points)
#        points.clear()

        
        do_pipe = 1
        if do_pipe == 1:
            splines = adsk.core.ObjectCollection.create()
            spline_prev = None
            first_spline = None
            for spline in all_spline:
                splines.add(spline)
                if not first_spline:
                    first_spline = spline
                if spline_prev:
                    spline_prev.endSketchPoint.merge(spline.startSketchPoint)
                    pass
                spline_prev = spline
        
            if not splines:
                all_spline.clear()
                return
            
            #
            # CHANGING THIS COMMENT = WORKS
            #
            #  -&amp;gt; CLOSED_PATH #1:
            #       does not work, F360 gives error
            spline_prev.endSketchPoint.merge(first_spline.startSketchPoint)
            #  -&amp;gt; CLOSED_PATH #2:
            #       works for some reason, but takes a long time and spins CPU fan
            #spline_prev.startSketchPoint.merge(first_spline.endSketchPoint)


            # Create a path for the sweep path and guide rail
            path = rootComp.features.createPath(splines)
            #guide = rootComp.features.createPath(line)

            
            # Create sketch for the profile to sweep
            &lt;EM&gt;&lt;STRONG&gt;planes = rootComp.constructionPlanes
            planeInput = planes.createInput()
            planeInput.setByDistanceOnPath(first_spline, adsk.core.ValueInput.createByReal(0))
            plane = planes.add(planeInput)
            
            sketches = rootComp.sketches
            sketch = sketches.add(plane)
            
            center = plane.geometry.origin
            center = sketch.modelToSketchSpace(center)
            sketch.sketchCurves.sketchCircles.addByCenterRadius(center, 0.1)
            prof = sketch.profiles[0]&lt;/STRONG&gt;&lt;/EM&gt;
            
            # Create a sweep input
            sweeps = rootComp.features.sweepFeatures
            sweepInput = sweeps.createInput(prof, path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
            #sweepInput.guideRail = guide
            #sweepInput.profileScaling = adsk.fusion.SweepProfileScalingOptions.SweepProfileScaleOption
            
            # Create the sweep.
            sweep = sweeps.add(sweepInput)
    
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
main()
&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jack&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 06:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6652484#M19249</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-10-28T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6661993#M19250</link>
      <description>&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help! I am now drawing pipes on many&amp;nbsp;splines, and can now start generating a&amp;nbsp;voronoi mesh!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as I'm starting to add more splines&amp;nbsp;I'm noticing the time it takes to create each spline is increasing. Even a&amp;nbsp;simple mesh of 187 splines, the time to generate the last spline is approaching 90seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="increasing_spline_creation_time.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/288478iD73C696542F2E49B/image-size/large?v=v2&amp;amp;px=999" role="button" title="increasing_spline_creation_time.png" alt="increasing_spline_creation_time.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand as I add more splines and pipes, F360 has to keep checking a larger space for collisions, etc. But this seems like a possible bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to generate meshes with maybe thousands of spline/pipe combos, so it could take weeks to generate...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached an example script and the output logfile it generated showing delta creation time seconds. If I run this script and set 'do_pipe=0' (so it &amp;nbsp;generates only the splines and no pipes), it completes in a few seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm my findings? And&amp;nbsp;is there any optimization to speed this up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 11:20:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6661993#M19250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T11:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6662741#M19251</link>
      <description>&lt;P&gt;I added the highlighted line below to your code and now the construction of your entire model takes about 2 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        doc = app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)
        product = app.activeProduct
        design = adsk.fusion.Design.cast(product)
        &lt;FONT color="#FF0000"&gt;design.designType = adsk.fusion.DesignTypes.DirectDesignType&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This changes the model so it's no longer capturing the parametric history. It does seem strange to me that there's such a big difference and we should do some&amp;nbsp;investigation into this. &amp;nbsp;But in your case I don't think you would care about having a parametric model in the end so this should solve your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 15:41:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6662741#M19251</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-11-02T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6662859#M19252</link>
      <description>&lt;P&gt;Thanks Brian, that was it! And yes, I don't care about the history, I just want the final STL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;btw, this forum has been extremely helpful, and the responses are very prompt. Thanks Autodesk for a great product!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6662859#M19252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T16:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6664075#M19253</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found one problem case in my script where I would like to have history enabled. I may create a sweep that fails, so removing that sweep so I can try another is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me how I can re-enable the history in a script, ie, so I can programmatically toggle state and revert errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 05:47:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6664075#M19253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T05:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665308#M19254</link>
      <description>&lt;P&gt;Ok, I found my answer on &lt;A href="http://adndevblog.typepad.com/manufacturing/" target="_self"&gt;this page&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;def toogleCaptureHistory(isEnabled):
     app = adsk.core.Application.get()
     des = adsk.fusion.Design.cast(app.activeProduct)
     
     if isEnabled:
         des.designType = adsk.fusion.DesignTypes.ParametricDesignType 
     else:
         des.designType = adsk.fusion.DesignTypes.DirectDesignType
    &lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2016 15:31:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665308#M19254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T15:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665652#M19255</link>
      <description>&lt;P&gt;As you found, there is API access to the setting to toggle whether the design history is captured or not. &amp;nbsp;Actually it's a toggle and also a conversion because if you have a design with the full design history and then change this setting, all of the existing design history is lost.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I'm not sure you need this for the case you described. &amp;nbsp;Whether you're capturing the design history or not, when the feature fails and nothing is created so there's nothing to remove to re-try it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665652#M19255</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-11-03T17:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665873#M19256</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to describe the issue I'm trying to resolve using history and deleteMe() a little more. Mainly for the benefit of others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my script, I first create a spline, then make a sketchCircle to sweep along that spline. The issue&amp;nbsp;I'm now seeing is the sweep may fail if the spline circumference is too small for the sketchCircle diameter I have set - if the sweep will intersect with itself because of the large diameter that was set for that circle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have put the sweep in a try/except block, so if it fails then I can remove the first circle, and add a smaller one and try to sweep again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a picture showing the problem. The larger sketch circle caused the sweep inside the try/except to fail, so the script sets the circle size smaller and tries again. So you can see both larger and smaller circles because I haven't yet deleted the first larger one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="need_to_remove_sketch_curve.png" style="width: 502px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/289045iF1FBD687CEBD1592/image-size/large?v=v2&amp;amp;px=999" role="button" title="need_to_remove_sketch_curve.png" alt="need_to_remove_sketch_curve.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for speed issues as we discovered before, I keep parametric history off, and&amp;nbsp;toggle it back on when&amp;nbsp;I go to draw the circle and attempt to sweep. If that's successful, the history is turned off again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's not successful, then I have the history available to remove the circle and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least that what I'm striving for. It's my next todo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 18:22:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665873#M19256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T18:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665889#M19257</link>
      <description>&lt;P&gt;I understand what you're trying to do. &amp;nbsp;I was just saying that you don't need the history turned on to be able to do that. &amp;nbsp;If the sweep fails you can still change the size of the circle and try the sweep again and you're in direct modeling mode.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 18:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6665889#M19257</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-11-03T18:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6666108#M19258</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That would be easier if I don't need history. But I'm not seeing how to modify the circle geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see&amp;nbsp;a radius property on the SketchCircle object, so tried this but it's not correct...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me how do I modify the diameter of existing SketchCircle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        center = plane.geometry.origin
        center = sketch.modelToSketchSpace(center)
        circle1 = sketch.sketchCurves.sketchCircles.addByCenterRadius(center, pipe_thickness)
        prof = sketch.profiles[0]
        
        # Create a sweep input
        sweeps = rootComp.features.sweepFeatures
        sweepInput = sweeps.createInput(prof, path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
        
        try:
            # Create the sweep.
            sweep = sweeps.add(sweepInput)
        except:
            circle1.radius(pipe_thickness/2)
            sweepInput = sweeps.createInput(prof, path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2016 19:43:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6666108#M19258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T19:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6666249#M19259</link>
      <description>&lt;P&gt;radius is a property of the SketchCircle object so you set the value using this syntax:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;circle1.radius = pipe_thickness/2&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2016 20:35:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6666249#M19259</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-11-03T20:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: python script pipe creation</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6666356#M19260</link>
      <description>&lt;P&gt;Thank you! much appreciated! All working for me now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 21:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/python-script-pipe-creation/m-p/6666356#M19260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T21:24:54Z</dc:date>
    </item>
  </channel>
</rss>

