You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,27 +138,30 @@ Development environment notes:
138
138
to attach the vscode debugger to the running process as well as reload after you've made changes.
139
139
- I've tried to leave the boilerplate files generated by Fusion's `Create script or add-in` relatively untouched, so
140
140
that the code can be as modular as possible. Unused boilerplate has been removed where possible.
141
-
- There are `# type: ignore` comments throughout the code to get
142
-
[Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance) to stop complaining. I would
143
-
rather not need them, but I'm not sure how to improve this. Any advice or PRs that improve type checking would be
144
-
greatly appreciated.
141
+
- There are many seemingly extraneous `cast()` calls throughout the code to help
142
+
[Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance) understand what's going on, because [many classes in the underlying adsk libraries aren't proper Enums](https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/faulty-enum-types/m-p/12066483).
145
143
- I've been using a `.vscode/settings.json` file that looks like this, but it's gitignored because it constains local
146
144
paths. AFAIK, there's no way to write these paths in a user or operating system agnostic way. Until there's a better
147
145
solution, I recommend creating a throwaway Fusion add-in from the `Scripts and Add-Ins` dialog just to grab those
148
146
paths, then create your own local `.vscode/settings.json` file in this project using the paths it generates. You'll
149
-
probably also want to add in the `files.exclude` section to hide auto-generated temp files.
147
+
probably also want to add in the other stuff from here, to be consistent.
0 commit comments