<?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: Surface sweep function too restricted in Fusion Support Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10555244#M74657</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2782855"&gt;@HughesTooling&lt;/a&gt;&amp;nbsp;- I'm not sure.&amp;nbsp; Maybe a bit of built-in self protection?&amp;nbsp; (just kidding)&amp;nbsp; I do recall issues like this in the past, where sweep stops on a path like this.&amp;nbsp; I'm on vacation now, but I can check when I get back in the office.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 14:56:10 GMT</pubDate>
    <dc:creator>jeff_strater</dc:creator>
    <dc:date>2021-08-18T14:56:10Z</dc:date>
    <item>
      <title>Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10554260#M74654</link>
      <description>&lt;P&gt;For an electrical project I try to show a spool that runs along a torus-spool.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To draw such spools I use a surface sweep along a circled path. If the path is a circle it works fine even with 100 rotations:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adminTCYL2_4-1629278310872.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954145iAAE9C66DFC650B6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adminTCYL2_4-1629278310872.png" alt="adminTCYL2_4-1629278310872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I do a solid sweep along the edges of this sweep to geht the spool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adminTCYL2_5-1629278327175.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954146iBC7D10E215F88090/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adminTCYL2_5-1629278327175.png" alt="adminTCYL2_5-1629278327175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But if the path itself is a torus (very similar to a circle) I can not do 100 rotations, only 12. Why?&lt;/P&gt;&lt;P&gt;The next 2 images show that 12 rotations work...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adminTCYL2_6-1629278390535.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954148i873FDC02CAB71F81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adminTCYL2_6-1629278390535.png" alt="adminTCYL2_6-1629278390535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and more don't:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adminTCYL2_7-1629278466570.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954149i11F40427FC77809B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adminTCYL2_7-1629278466570.png" alt="adminTCYL2_7-1629278466570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But with 12 rotations I do not get a good electrical spool. It seems unpossible to draw 100 rotations because of restrictions in sweep feature in case of 3 dimensional curves. But why do these restrictions exist?&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adminTCYL2_9-1629278634744.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954153i03813FE85162B5A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adminTCYL2_9-1629278634744.png" alt="adminTCYL2_9-1629278634744.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attache the sketches:&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, 18 Aug 2021 09:34:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10554260#M74654</guid>
      <dc:creator>adminTCYL2</dc:creator>
      <dc:date>2021-08-18T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10554452#M74655</link>
      <description>&lt;P&gt;Part of the problem is the first spline is not as good a quality you get using the edge of a surface. If I recreate using the edge of a surface I can get 60 turns. Tip never use project include 3d geometry for something like this, the edge of a surface has more accuracy.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HughesTooling_0-1629282222649.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954192i4A1A3AA85A7FB6DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="HughesTooling_0-1629282222649.png" alt="HughesTooling_0-1629282222649.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next problem is solid sweep and pipe both fail to create a good body so I had to use a surface sweep, cap and the stitch to get a good body. File's attached.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HughesTooling_1-1629282491460.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954197iE06D0D9B05C74B7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="HughesTooling_1-1629282491460.png" alt="HughesTooling_1-1629282491460.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10554452#M74655</guid>
      <dc:creator>HughesTooling</dc:creator>
      <dc:date>2021-08-18T10:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10554465#M74656</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/226105"&gt;@jeff_strater&lt;/a&gt;&amp;nbsp;any idea why you can not create more than 60 turns on the sweep, too much data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also why Pipe and Sweep fail to create good body. File's attached with the Pipe body.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HughesTooling_0-1629282795113.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/954201iACEF2098A6AFC64F/image-size/large?v=v2&amp;amp;px=999" role="button" title="HughesTooling_0-1629282795113.png" alt="HughesTooling_0-1629282795113.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:34:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10554465#M74656</guid>
      <dc:creator>HughesTooling</dc:creator>
      <dc:date>2021-08-18T10:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10555244#M74657</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2782855"&gt;@HughesTooling&lt;/a&gt;&amp;nbsp;- I'm not sure.&amp;nbsp; Maybe a bit of built-in self protection?&amp;nbsp; (just kidding)&amp;nbsp; I do recall issues like this in the past, where sweep stops on a path like this.&amp;nbsp; I'm on vacation now, but I can check when I get back in the office.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 14:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10555244#M74657</guid>
      <dc:creator>jeff_strater</dc:creator>
      <dc:date>2021-08-18T14:56:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10555546#M74658</link>
      <description>&lt;P&gt;We did a script that automatise the creation of coils. It dissapoints me, that on splines it does not work so well:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/sweep-along-a-path-out-of-lines-and-arcs-by-user-command/m-p/10549633#M14018" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/sweep-along-a-path-out-of-lines-and-arcs-by-user-command/m-p/10549633#M14018&lt;/A&gt;&lt;BR /&gt;You see in my example up there, that 13 coil-windings are far from overlapping, but the sweep gives a failure. There don't seem to be a mathematical reason for this failure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 16:40:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10555546#M74658</guid>
      <dc:creator>adminTCYL2</dc:creator>
      <dc:date>2021-08-18T16:40:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10557145#M74659</link>
      <description>&lt;P&gt;HughesTooling, unfortunately your approach with the 60 windings does not help me, because it is no exact Torus that I have to be spooled. But thank you for your example. It gives a hint where the problem lies. What is so different between edges of solids and spine-curves? Why do spline curves not the same job?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:09:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10557145#M74659</guid>
      <dc:creator>adminTCYL2</dc:creator>
      <dc:date>2021-08-19T08:09:25Z</dc:date>
    </item>
    <item>
      <title>Betreff: Surface sweep function too restricted</title>
      <link>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10618711#M74660</link>
      <description>&lt;P&gt;I am near a solution now. I found out how to combine arcs along a set of points, so that I get a spline-like curve.&amp;nbsp; As I showed arcs are the perfect basis for rotated sweeps. The following script sweeps a rotated surface along acs that form a torus-winding.&amp;nbsp;&lt;BR /&gt;There is only one problem: I draw a new profil for each arc-sector. But what I want to do is: use the edge of the last rotated sector as profile for the next, to get a continous surface. My sweeps right now are not connected.&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adminTCYL2_0-1631541248449.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/964503i9584F1FA15FD633D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adminTCYL2_0-1631541248449.png" alt="adminTCYL2_0-1631541248449.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is: The API does not accept edges as profiles. If I do it in Fusion360 by hand, it is possible.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;So how can an edge be used as an non solid profile for a sweep in the API?&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;(You see a out-commanded part in my script. It shows what I tried. )&lt;BR /&gt;Is there someone who knows a solution?&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import adsk.core, adsk.fusion, adsk.cam, traceback, math

def run(context):
	ui = None
	try:
		app = adsk.core.Application.get()
		ui = app.userInterface
		design = app.activeProduct
		# Get the root component of the active design.
		root_comp = design.rootComponent
		# Create a new sketch on the xy plane.
		sketches = root_comp.sketches
		xyPlane = root_comp.xYConstructionPlane
		sketch = sketches.add(xyPlane)
		points = adsk.core.ObjectCollection.create() # Create an object collection for the points.
        

		windings = 10
		pointsPerRound = 4 # Number of points that splines are generated.
		i = -pointsPerRound*windings #Startwert, der in der Schleife runtergezählt wird
		r = 0.5
		h = 0


		while i &amp;lt;= 0:
			t = (math.pi/(pointsPerRound*windings))*i*2
			h = 1.5+((-r)*(math.sin(t*windings)))
			xCoord = (h)*(math.sin(t))
			yCoord = (h)*(math.cos(t))
			zCoord = ((-r)*(math.cos(t*windings)))
			points.add(adsk.core.Point3D.create(xCoord,yCoord,zCoord))
			i = i + 1
		
		#Combining the points to arcs
		arcs = adsk.core.ObjectCollection.create()
		for j in range(0,int((windings*pointsPerRound)/2)):
			arc = sketch.sketchCurves.sketchArcs.addByThreePoints(points[2*j],points[2*j+1],points[2*j+2])
			arcs.add(arc)
			profilStart = adsk.core.Point3D.create(points[2*j].x,points[2*j].y,points[2*j].z-0.2)
			profilEnd =   adsk.core.Point3D.create(points[2*j].x,points[2*j].y,points[2*j].z-0.01)
			profil=sketch.sketchCurves.sketchLines.addByTwoPoints(profilStart,profilEnd)

			"""
			# The right way would be: define a start profile for the sweep...
			if j==0:
				profilStart = adsk.core.Point3D.create(points[0].x,points[0].y,points[0].z-0.2)
				profilEnd =   adsk.core.Point3D.create(points[0].x,points[0].y,points[0].z-0.01)		
				profil=sketch.sketchCurves.sketchLines.addByTwoPoints(profilStart,profilEnd)
			# ..and then use the edge of the last sweep as profile for the next: 
			else:
				itemIndex = root_comp.bRepBodies.count-1
				body = root_comp.bRepBodies.item(itemIndex)
				profil=	body.edges.item(3)  #it is not clear witch of the four items
				sketch.add(profil)
			"""
			prof = root_comp.createOpenProfile(profil, False)
			path = root_comp.features.createPath(arc, False)
			sweeps = root_comp.features.sweepFeatures
			sweepInput1 = sweeps.createInput(prof, path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
			sweepInput1.twistAngle = adsk.core.ValueInput.createByReal(100)
			sweepInput1.isSolid = False
			sweep = sweeps.add(sweepInput1)

		for j in range(0,10):
			arcs[j].startSketchPoint.merge(arcs[j+1].endSketchPoint)


	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;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 14:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-support-forum/surface-sweep-function-too-restricted/m-p/10618711#M74660</guid>
      <dc:creator>adminTCYL2</dc:creator>
      <dc:date>2021-09-13T14:16:23Z</dc:date>
    </item>
  </channel>
</rss>

