Error when adding custom feature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on an addin that will add a custom feature to make parametric helical patterns of objects. So far i have the core functionality of the execute command working as intended.
However, I get a runtime error when I try to add the customFeatureInput.
Failed:
Traceback (most recent call last):
File "C:/Users/shopuser/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/AddIns/HelicalPattern/HelicalPattern.py", line 186, in notify
features.customFeatures.add(customFeatInput)
File "C:\Users/shopuser/AppData/Local/Autodesk/webdeploy/production/7627f627889be835182cfc345110c3c9f5bc9cc3/Api/Python/packages\adsk\fusion.py", line 22142, in add
return _fusion.CustomFeatures_add(self, input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: 3 : make params invalid
I have tried many different combinations of things to try to make this work to no avail. Does anyone know what this means or how to fix it?
I have attached what I have for my addin so far as a .txt