<?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: Disable unit autofill? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7811431#M16645</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be good if you can give some snapshots or screencast to demostrate your issue. I have no idea what unit auto fill you meant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 06:40:07 GMT</pubDate>
    <dc:creator>marshaltu</dc:creator>
    <dc:date>2018-02-27T06:40:07Z</dc:date>
    <item>
      <title>Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7807917#M16644</link>
      <description>&lt;P&gt;Someone just told me that the units autofill too fast and it is hard to change numbers when you press backlash and the unit reappears, I totally agree on this and would like to fix this in my addin's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to disable the autofill of the unit or making it slower when using unit-manager? Or maybe even make the unit hidden?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 06:12:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7807917#M16644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T06:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7811431#M16645</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be good if you can give some snapshots or screencast to demostrate your issue. I have no idea what unit auto fill you meant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7811431#M16645</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2018-02-27T06:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7813655#M16646</link>
      <description>&lt;P&gt;I mean something like the following screencast.&amp;nbsp;The addin&amp;nbsp;is coded with c++, it's using the unit manager and validation of the values with validateInput. Maybe the validating has something to do with this problem?&amp;nbsp;&lt;BR /&gt;&lt;BR /&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;</description>
      <pubDate>Tue, 27 Feb 2018 20:21:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7813655#M16646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T20:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7813659#M16647</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/39a525c9-fc7d-4e80-9b15-e794cf5b832f" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:22:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7813659#M16647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T20:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7814466#M16648</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I cannot reproduce the issue you demonstrated in either Windows or MAC. Please refer to my screencast.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://autode.sk/2ov065F" target="_blank"&gt;http://autode.sk/2ov065F&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try other commands( e.g. extrude, spur gear generated by API sample) and see if there is same behaviour? If yes, we have to figure out what's difference between our environments. If not, it would be specific to your addin. Please share your addin to me for analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 03:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7814466#M16648</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2018-02-28T03:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7814707#M16649</link>
      <description>&lt;P&gt;There is exactly the same problem in the spur gear sample, I guess the autofill happens if you validate the number input and a valid number is entered. Check the root fillet radius in the c++ spur gear addin&amp;nbsp;sample.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/7b93f4a3-aeae-49ea-aa99-fdc63113181f" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 06:34:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7814707#M16649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T06:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7814961#M16650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The root cause was that we called "_rootFilletRad.value"(marked as red) in validate inputs event handler to trigger the command input was updated forcely. It worked well if I commented out the line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;class GearCommandValidateInputsHandler(adsk.core.ValidateInputsEventHandler):
    def __init__(self):
        super().__init__()
    def notify(self, args):
        try:
            eventArgs = adsk.core.ValidateInputsEventArgs.cast(args)
            
            _errMessage.text = ''

            # Verify that at lesat 4 teath are specified.
            if not _numTeeth.value.isdigit():
                _errMessage.text = 'The number of teeth must be a whole number.'
                eventArgs.areInputsValid = False
                return
            else:    
                numTeeth = int(_numTeeth.value)
            
            if numTeeth &amp;lt; 4:
                _errMessage.text = 'The number of teeth must be 4 or more.'
                eventArgs.areInputsValid = False
                return
                
            # Calculate some of the gear sizes to use in validation.
            if _standard.selectedItem.name == 'English':
                result = getCommandInputValue(_diaPitch, '')
                if result[0] == False:
                    eventArgs.areInputsValid = False
                    return
                else:
                    diaPitch = result[1]
            elif _standard.selectedItem.name == 'Metric':
                result = getCommandInputValue(_module, '')
                if result[0] == False:
                    eventArgs.areInputsValid = False
                    return
                else:
                    diaPitch = 25.4 / result[1]

            diametralPitch = diaPitch / 2.54
            pitchDia = numTeeth / diametralPitch
            
            if (diametralPitch &amp;lt; (20 *(math.pi/180))-0.000001):
                dedendum = 1.157 / diametralPitch
            else:
                circularPitch = math.pi / diametralPitch
                if circularPitch &amp;gt;= 20:
                    dedendum = 1.25 / diametralPitch
                else:
                    dedendum = (1.2 / diametralPitch) + (.002 * 2.54)                

            rootDia = pitchDia - (2 * dedendum)        
                    
            if _pressureAngle.selectedItem.name == 'Custom':
                pressureAngle = _pressureAngleCustom.value
            else:
                if _pressureAngle.selectedItem.name == '14.5 deg':
                    pressureAngle = 14.5 * (math.pi/180)
                elif _pressureAngle.selectedItem.name == '20 deg':
                    pressureAngle = 20.0 * (math.pi/180)
                elif _pressureAngle.selectedItem.name == '25 deg':
                    pressureAngle = 25.0 * (math.pi/180)
            baseCircleDia = pitchDia * math.cos(pressureAngle)
            baseCircleCircumference = 2 * math.pi * (baseCircleDia / 2) 

            des = adsk.fusion.Design.cast(_app.activeProduct)

            result = getCommandInputValue(_holeDiam, _units)
            if result[0] == False:
                eventArgs.areInputsValid = False
                return
            else:
                holeDiam = result[1]
                           
            if holeDiam &amp;gt;= (rootDia - 0.01):
                _errMessage.text = 'The center hole diameter is too large.  It must be less than ' + des.unitsManager.formatInternalValue(rootDia - 0.01, _units, True)
                eventArgs.areInputsValid = False
                return

            toothThickness = baseCircleCircumference / (numTeeth * 2)
            &lt;FONT color="#FF0000"&gt;if _rootFilletRad.value &amp;gt; toothThickness * .4:&lt;/FONT&gt;
                _errMessage.text = 'The root fillet radius is too large.  It must be less than ' + des.unitsManager.formatInternalValue(toothThickness * .4, _units, True)
                eventArgs.areInputsValid = False
                return
        except:
            if _ui:
                _ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7814961#M16650</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2018-02-28T08:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7818442#M16651</link>
      <description>&lt;P&gt;Yes but that would also remove the validation of the value? The line is there for a reason.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;How can I fix this without removing the check for the right values? If, for example, a gear is created with the wrong values it will not work. Or a hole is too large in the middle of the gear, it will remove the whole body.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 07:19:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7818442#M16651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7818533#M16652</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good news are there was already a solution in the sample. It seemed that we missed the command input. Please refer to the codes marked as red for how to get the "value" from command input without forcely updating the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marshal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class GearCommandValidateInputsHandler(adsk.core.ValidateInputsEventHandler):
    def __init__(self):
        super().__init__()
    def notify(self, args):
        try:
            eventArgs = adsk.core.ValidateInputsEventArgs.cast(args)
            
            _errMessage.text = ''

            # Verify that at lesat 4 teath are specified.
            if not _numTeeth.value.isdigit():
                _errMessage.text = 'The number of teeth must be a whole number.'
                eventArgs.areInputsValid = False
                return
            else:    
                numTeeth = int(_numTeeth.value)
            
            if numTeeth &amp;lt; 4:
                _errMessage.text = 'The number of teeth must be 4 or more.'
                eventArgs.areInputsValid = False
                return
                
            # Calculate some of the gear sizes to use in validation.
            if _standard.selectedItem.name == 'English':
                result = getCommandInputValue(_diaPitch, '')
                if result[0] == False:
                    eventArgs.areInputsValid = False
                    return
                else:
                    diaPitch = result[1]
            elif _standard.selectedItem.name == 'Metric':
                result = getCommandInputValue(_module, '')
                if result[0] == False:
                    eventArgs.areInputsValid = False
                    return
                else:
                    diaPitch = 25.4 / result[1]

            diametralPitch = diaPitch / 2.54
            pitchDia = numTeeth / diametralPitch
            
            if (diametralPitch &amp;lt; (20 *(math.pi/180))-0.000001):
                dedendum = 1.157 / diametralPitch
            else:
                circularPitch = math.pi / diametralPitch
                if circularPitch &amp;gt;= 20:
                    dedendum = 1.25 / diametralPitch
                else:
                    dedendum = (1.2 / diametralPitch) + (.002 * 2.54)                

            rootDia = pitchDia - (2 * dedendum)        
                    
            if _pressureAngle.selectedItem.name == 'Custom':
                pressureAngle = _pressureAngleCustom.value
            else:
                if _pressureAngle.selectedItem.name == '14.5 deg':
                    pressureAngle = 14.5 * (math.pi/180)
                elif _pressureAngle.selectedItem.name == '20 deg':
                    pressureAngle = 20.0 * (math.pi/180)
                elif _pressureAngle.selectedItem.name == '25 deg':
                    pressureAngle = 25.0 * (math.pi/180)
            baseCircleDia = pitchDia * math.cos(pressureAngle)
            baseCircleCircumference = 2 * math.pi * (baseCircleDia / 2) 

            des = adsk.fusion.Design.cast(_app.activeProduct)

            result = getCommandInputValue(_holeDiam, _units)
            if result[0] == False:
                eventArgs.areInputsValid = False
                return
            else:
                holeDiam = result[1]
                           
            if holeDiam &amp;gt;= (rootDia - 0.01):
                _errMessage.text = 'The center hole diameter is too large.  It must be less than ' + des.unitsManager.formatInternalValue(rootDia - 0.01, _units, True)
                eventArgs.areInputsValid = False
                return

            toothThickness = baseCircleCircumference / (numTeeth * 2)
&lt;FONT color="#FF0000"&gt;            result = getCommandInputValue(_rootFilletRad, _units)
            if result[0] == False:
                eventArgs.areInputsValid = False
                return 
            else:
                if result[1] &amp;gt; toothThickness * .4:
                    _errMessage.text = 'The root fillet radius is too large.  It must be less than ' + des.unitsManager.formatInternalValue(toothThickness * .4, _units, True)
                    eventArgs.areInputsValid = False
                    return&lt;/FONT&gt;
        except:
            if _ui:
                _ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 08:03:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7818533#M16652</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2018-03-01T08:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7818955#M16653</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;I'll try this with my Addin.&lt;BR /&gt;&lt;BR /&gt;In the c++&amp;nbsp;sketch it says that this will be added the ValueCommandInput object to make things easier, any idea when this will happen? I&amp;nbsp;would need to rewrite everything twice if I start changing things.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7818955#M16653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824003#M16654</link>
      <description>&lt;P&gt;I see a double helical gear - is that what you are trying to do with your addin? If so be aware of my &lt;A href="https://apps.autodesk.com/FUSION/en/Detail/Index?id=9029586664984391977&amp;amp;appLang=en&amp;amp;os=Win64" target="_blank"&gt;helical gear generator&lt;/A&gt; and I'll share that I'm nearing delivering version 2.0 which will add a lot of features (including directly creating double helix gears).&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824003#M16654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T00:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824270#M16655</link>
      <description>&lt;P&gt;Yeah, I am aware of that one. I wrote this a long time ago (about the same time as you released your first version) but never published it because you got there first. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now I tried my Addin again and it seemed to have some broken bits with the updates so I decided to fix these. But I was thinking I may share it(if fusion shop will take it) since it&amp;nbsp;did have some functionality&amp;nbsp;the Helical Gear Generator didn't seem to have, like the herringbone gears, choosing between simulating(undercut compensation and profile shift) and calculating the tooth profile, diametral pitch and circular pitch instead of module, different types of profiles for the inner hole and so on.&lt;BR /&gt;&lt;BR /&gt;Mine seems a bit slower though because it generates the whole profile in the sketch instead of multiplying 3D shapes. I also wrote a (hopefully proper)bevel gear generator around the same time that approximates&amp;nbsp;the tooth shape, maybe I should fix that too.&amp;nbsp;&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="bevel.png" style="width: 340px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/470327iA8F9CFFFA5CC2827/image-dimensions/340x320?v=v2" width="340" height="320" role="button" title="bevel.png" alt="bevel.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 07:07:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824270#M16655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824673#M16656</link>
      <description>&lt;P&gt;And/or maybe we should work together &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; mines written in python - I would really appreciate having a second brain on this stuff. I would be happy to share my Alpha code with you (no obligation), it's quite rough at the moment (the code that is... and the preview experience), and I have a lot of work to do on improving performance, but it is otherwise fully functional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code under the hood in my v2.0 can also compute shifted profiles but as profile shifting only makes sense when you are dealing with 2 gears I'm not planning to expose that ability (yet). In addition to what I show below the code is also capable of making &lt;A href="https://forums.autodesk.com/t5/fusion-360-api-and-scripts/would-you-like-to-be-able-to-make-gears-like-these/td-p/7655866" target="_blank"&gt;some crazy things&lt;/A&gt;&amp;nbsp;and it can sensibly generate involute profiles up to 89 deg pressure angles (which are totally useless as gears obviously)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also written the code to generate proper spherical involutes for bevel gears but I haven't taken it to fully generating a gear - largely because along the way I learned that without crowing bevel gears (esp. 3D printed ones) are not likely to operate smoothly and that just seems like a real pain to make happen in the fusion API.&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-center" image-alt="Internal double helical gear with capping and point relief" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/470399iBDB58DD4F7B7BC6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Preview of v2 alpha.png" alt="Internal double helical gear with capping and point relief" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Internal double helical gear with capping and point relief&lt;/span&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;</description>
      <pubDate>Sat, 03 Mar 2018 15:14:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824673#M16656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824784#M16657</link>
      <description>&lt;P&gt;Working together would be great but unfortunately, I have written everything in C++. And the code is a mess. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to start working on this again but I also have&amp;nbsp;a lot&amp;nbsp;of other projects at the moment, and I need to find more actual work to make a living.&lt;BR /&gt;&lt;BR /&gt;I actually also made a gear generator with inside gears. I love the fact that you added capping and point relief,&amp;nbsp;it makes it so much cooler. And I like the wavy patterns, 3D printing those would be pretty fun. DDS modeling would also be interesting. I have it on my list of things to play around with, just too bad it would be pretty slow in Fusion360.&lt;BR /&gt;&lt;BR /&gt;Heres some gears with my Addins:&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="bevel2.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/470413i990629B219D1BB30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bevel2.png" alt="bevel2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="internal gear.png" style="width: 385px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/470414iDC711119B33C68E4/image-dimensions/385x297?v=v2" width="385" height="297" role="button" title="internal gear.png" alt="internal gear.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="herrinboneSimulated.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/470417i9EEAD6E4C8949BC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="herrinboneSimulated.png" alt="herrinboneSimulated.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 17:36:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824784#M16657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824786#M16658</link>
      <description>&lt;P&gt;Double post so I removed the text,&amp;nbsp;sorry for that. We need a remove button to the forums.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 17:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824786#M16658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T17:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824827#M16659</link>
      <description>&lt;P&gt;Very cool! Can you generate bevel gears with a mesh at angles other than 90deg?&amp;nbsp;In any case you should release those if you are up to keeping them working &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure it's possible to write a substantial fusion add-in with code that isn't a mess, but I've done what I can to abstract out the event object construct&amp;nbsp;and the terribly inconsistent and verbose UI element creation and interaction as well as elegantly maintaining UI state between invocations, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it would be great if you were willing to collaborate and idea share even if you didn't want to work on the same codebase. I chose python because it's easier for others to understand the code and I like dynamic languages for some things, and lets face it the language the add-in is written in has no impact on performance - the slow part is the Fusion API by a huge margin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I'm still willing to share my code with you if you are curios. I'm curious how you are giving your helical gears their twist, it's not obvious from the timeline in your screencast above. In my v1 add-in I'm using loft (which crashes fusion if you run my add-in with capture history off) and in v2 i'm using the new sweep with a twist. Sweep is comparably very fast when you are using a complete gear profile - the "hard" part is computing the sweep "twist" value from a helix angle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried to see if gears your addin generates and the ones mine generate properly mesh with eachother? So far I've not had any other interpretation of helical gears to compare against. I know there is another helical gear add-in but it doesn't generate valid helix profiles&lt;EM&gt; - the profile it generates has an unintentionally varying helix angle over the length of the gear.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 18:03:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824827#M16659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T18:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824904#M16660</link>
      <description>&lt;P&gt;I wouldn't mind sharing code, but I would need to get used to Python again. It is a while since I coded with it and I don't really feel at home with the language.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Bevel gears, yeah you can choose the angle. It is using tredgold&amp;nbsp;approximation&amp;nbsp;since this is how it seems to be done everywhere, but it could be made better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Also, I never&amp;nbsp;had time to figure out the proper way to calculate a spiral angle for spiral bevel gears. I haven't touched the&amp;nbsp;code in more than a year and it seems to be crashing fusion with some gear sizes. I would need to fix this if I will publish it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the helical gear generator, I am making&amp;nbsp;a sweep with 2 rails, one in the middle going along the axis. The&amp;nbsp;other is a spline that is calculated to go along with the rotation, positioned on the pitch diameter.&lt;BR /&gt;First I am making one tooth in sketch mode, then rotating and copying it with matrix multiplication. So I draw the spur gear in sketch mode and then make the sweep. The biggest problem I have encountered here is the sketch&amp;nbsp;workspace being so slow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The gears in my generator seem to pretty much match with your "radial system". The image is your gear on the top and 2 of mine in the "inside of it", I rotated them to place by guessing the&amp;nbsp;angle so they don't exactly match in this image.&lt;BR /&gt;&lt;BR /&gt;And sorry for the bad quality, my graphics card broke last week so the rendering is bad &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&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="radial.png" style="width: 394px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/470432i56A560A4869A1132/image-size/medium?v=v2&amp;amp;px=400" role="button" title="radial.png" alt="radial.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 19:30:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824904#M16660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T19:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824936#M16661</link>
      <description>&lt;P&gt;Try using the new twist sweep instead of the guide rail sweep, it's a lot more accurate and a lot faster&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my "twist calculator"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class TwistCalculator(object):

  def __init__(self, helix_angle, pitch_radius):
    self._c = math.tan(math.pi/2 - abs(helix_angle)) * pitch_radius if helix_angle != 0 else None
    if helix_angle &amp;lt; 0:
      self._c *= -1

  def reverse(self):
    self._c *= -1

  def twist_over_displacement(self, displacement):
    return displacement / self._c if self._c else 0&lt;/PRE&gt;&lt;P&gt;And then doing the sweep looks something like this&lt;/P&gt;&lt;PRE&gt;sweeps = self._component.features.sweepFeatures
si = sweeps.createInput(profile, self._path, adsk.fusion.FeatureOperations.NewBodyFeatureOperation)  
si.twistAngle = adsk.core.ValueInput.createByReal(self._twist_calculator.twist_over_displacement(self._length))
sweep = sweeps.add(si)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bevel Gears...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'll have to look into&amp;nbsp;&lt;SPAN&gt;tredgold&amp;nbsp;approximation - I'm strait up computing the involute on a spherical&amp;nbsp;surface. Then it's trivial to project (actually ray-cast from origin) that involute onto a plane so fusion has a profile to work with. I used this source for the spherical involute math if you're curios h&lt;/SPAN&gt;ttp://thermalprocessing.com/media/2017/201703/0317-Forging.pdf I really hate "math papers" - i swear they say stuff in ways intended to make understanding hard. It's not actually that complicated of a problem to calculate a spherical involute but everything I found on the subject sure made it hard to understand!&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;</description>
      <pubDate>Sat, 03 Mar 2018 20:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7824936#M16661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-03T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Disable unit autofill?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7826345#M16662</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately that wasn't tracked in our internal system yet. I logged it as&amp;nbsp;UP-38239 to track it now. The issue need be prioritized with other tasks. So I cannot give estimation right now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marshal&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 03:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/disable-unit-autofill/m-p/7826345#M16662</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2018-03-05T03:21:54Z</dc:date>
    </item>
  </channel>
</rss>

