Coding in python and fighting the #Autodesk Python basic editor with all the Case Sensitive syntax I decided to use Visual studio to code/debug. Problem is I was missing stubs. Grabbed them from the gtalarico GIT iron python stubs through a Visual studio Community 20220 CLONE in Visual Studio Community 2002:
Adding the references to Visual studio:
Tools>Options and:
Add Stubs Path to the top-level folder containing stubs(4) along with the Autodesk revit generated Stubs(5) and some GIT HUB Cloned Iron Python Stubs(6) and the general iron python stubs (7)(see below):
%userprofile% didn’t appear to work in the settings an the Semicolon “;” was easiest to separate the values. Next check the semicolons were changed to linefeed/breaks for readability.
Still have a few stragglers - bay be a stubs I need to add?
I use the integrated Dynamo editor for 95% of my work, any of the many online environments for 4%, and directly launching IronPython or CPython for the other 1% so I can’t really help.
Hi Ron, will this enable to program in Cpython3 in Visual studio?
If so which interpreter do you use?
i am able to do it in Ironpython 2 but not in Cpython 3, so i could just copy/paste to the actual dynamo node.
Also,
would it be fair to say that since the Stubs are from an old version of Revit (say 2018?)it wont update if there was change in the RevitAPI of 2022?
Great search feature in the “Custom component set” in Visual studio -
C:\Program Files\Autodesk\Revit 2022\AddIns\DynamoForRevit\Revit\RevitServices.dll for our “Services” include and search.
Really wish we had this full search INSIDE the python/design script editors! This is what drives folks to the API in lieu of just Dynamo. I understand better why Mr. Konrad S. doesn’t work in Python anymore.