<?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 How to work with design.rootComponent.features.pipeFeatues.createInput() in py in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9174798#M13133</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build some automated tool with the Fusion 360 API. At the moment I find it very hard to find clear documentation on all the functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is where I'm stuck, when trying to create a pipe for a selection of lines the .createInput() function keeps trowing me the error like below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts/testGrid/testGrid.py", line 159, in run
    draw_path(path)
  File "/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts/testGrid/testGrid.py", line 132, in draw_path
    pipeInput = pipeDraw.createInput()
  File "/Library/Application Support/Autodesk/webdeploy/production/078c0152f608cb87272eeb7be2226a5f77176092/Autodesk Fusion 360.app/Contents/Api/Python/packages/adsk/fusion.py", line 18063, in &amp;lt;lambda&amp;gt;
    __getattr__ = lambda self, name: _swig_getattr(self, PipeFeatures, name)
  File "/Library/Application Support/Autodesk/webdeploy/production/078c0152f608cb87272eeb7be2226a5f77176092/Autodesk Fusion 360.app/Contents/Api/Python/packages/adsk/fusion.py", line 57, in _swig_getattr
    raise AttributeError(name)
AttributeError: createInput&lt;/PRE&gt;&lt;P&gt;This looks to me that the&amp;nbsp;design.rootComponent.features.pipeFeatues has no atribute named&amp;nbsp;createInput. Where can I find the functions/atributes that&amp;nbsp;design.rootComponent.features.pipeFeatues does have? All other&amp;nbsp;design.rootComponent.features seem to work with the&amp;nbsp;createInput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;def draw_path(path):
    app = adsk.core.Application.get()
    design = app.activeProduct

    # Get the root component of the active design.
    rootComp = design.rootComponent

    # Create a new sketch on the xy plane.
    sketches = rootComp.sketches
    xyPlane = rootComp.xYConstructionPlane
    sketch = sketches.add(xyPlane)

    # Draw two connected lines.
    lines = sketch.sketchCurves.sketchLines
    h = path[0]
    for point in path:
        lines.addByTwoPoints(adsk.core.Point3D.create(h[0], h[1], 0), adsk.core.Point3D.create(point[0], point[1], 0)) # in cm
        h = point
    
    pipeDraw = rootComp.features.pipeFeatues&lt;BR /&gt;    # Error occurs in the next line -&amp;gt;
    pipeInput = pipeDraw.createInput() # Also tried: pipeDraw.createInput( lines, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
    rev = pipeDraw.add(pipeInput)&lt;/PRE&gt;&lt;P&gt;*ps there seems to be a typo in the API&amp;nbsp;pipeFeatues&amp;nbsp;instead of&amp;nbsp;pipeFeatures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or links to the documentation I seek are highly appreciated!&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;</description>
    <pubDate>Sat, 30 Nov 2019 12:54:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-30T12:54:12Z</dc:date>
    <item>
      <title>How to work with design.rootComponent.features.pipeFeatues.createInput() in py</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9174798#M13133</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build some automated tool with the Fusion 360 API. At the moment I find it very hard to find clear documentation on all the functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is where I'm stuck, when trying to create a pipe for a selection of lines the .createInput() function keeps trowing me the error like below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts/testGrid/testGrid.py", line 159, in run
    draw_path(path)
  File "/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Scripts/testGrid/testGrid.py", line 132, in draw_path
    pipeInput = pipeDraw.createInput()
  File "/Library/Application Support/Autodesk/webdeploy/production/078c0152f608cb87272eeb7be2226a5f77176092/Autodesk Fusion 360.app/Contents/Api/Python/packages/adsk/fusion.py", line 18063, in &amp;lt;lambda&amp;gt;
    __getattr__ = lambda self, name: _swig_getattr(self, PipeFeatures, name)
  File "/Library/Application Support/Autodesk/webdeploy/production/078c0152f608cb87272eeb7be2226a5f77176092/Autodesk Fusion 360.app/Contents/Api/Python/packages/adsk/fusion.py", line 57, in _swig_getattr
    raise AttributeError(name)
AttributeError: createInput&lt;/PRE&gt;&lt;P&gt;This looks to me that the&amp;nbsp;design.rootComponent.features.pipeFeatues has no atribute named&amp;nbsp;createInput. Where can I find the functions/atributes that&amp;nbsp;design.rootComponent.features.pipeFeatues does have? All other&amp;nbsp;design.rootComponent.features seem to work with the&amp;nbsp;createInput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;def draw_path(path):
    app = adsk.core.Application.get()
    design = app.activeProduct

    # Get the root component of the active design.
    rootComp = design.rootComponent

    # Create a new sketch on the xy plane.
    sketches = rootComp.sketches
    xyPlane = rootComp.xYConstructionPlane
    sketch = sketches.add(xyPlane)

    # Draw two connected lines.
    lines = sketch.sketchCurves.sketchLines
    h = path[0]
    for point in path:
        lines.addByTwoPoints(adsk.core.Point3D.create(h[0], h[1], 0), adsk.core.Point3D.create(point[0], point[1], 0)) # in cm
        h = point
    
    pipeDraw = rootComp.features.pipeFeatues&lt;BR /&gt;    # Error occurs in the next line -&amp;gt;
    pipeInput = pipeDraw.createInput() # Also tried: pipeDraw.createInput( lines, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
    rev = pipeDraw.add(pipeInput)&lt;/PRE&gt;&lt;P&gt;*ps there seems to be a typo in the API&amp;nbsp;pipeFeatues&amp;nbsp;instead of&amp;nbsp;pipeFeatures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or links to the documentation I seek are highly appreciated!&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 12:54:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9174798#M13133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-30T12:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with design.rootComponent.features.pipeFeatues.createInput() in</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9175738#M13134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_9" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6796808" target="_self"&gt;&lt;SPAN class=""&gt;steven.peeters&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API does not seem to be able to create a new solid pipe.&lt;BR /&gt;This will be helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/how-to-build-pipe-with-sketch/m-p/8833197#M7969" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-360-api-and-scripts/how-to-build-pipe-with-sketch/m-p/8833197#M7969&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2019 15:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9175738#M13134</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2019-12-01T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with design.rootComponent.features.pipeFeatues.createInput() in</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9217574#M13135</link>
      <description>&lt;P&gt;Although not really a solution, it is a work around. Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3787950"&gt;@kandennti&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 18:12:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9217574#M13135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-23T18:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with design.rootComponent.features.pipeFeatues.createInput() in</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9217832#M13136</link>
      <description>&lt;P&gt;Some of the feature types exposed in the api are read-only, which allow you to access the properties of existing features created via the UI, but don't allow you to actually create new instances of the feature via the API. This appears to be one of those.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 21:49:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-work-with-design-rootcomponent-features-pipefeatues/m-p/9217832#M13136</guid>
      <dc:creator>JesusFreke</dc:creator>
      <dc:date>2019-12-23T21:49:20Z</dc:date>
    </item>
  </channel>
</rss>

