Hi, I’ve developed some tools in Revit 2022 and they seem to work fine across the company for Revit 2022 and below, however when we try to deploy in Revit 2023 they appear in the ribbon but once run we encounter either a warning message or Revit crashes.
I’m relatively new to python coding but have been using Dynamo for some years with code snippets. Could you please advise on what may be causing the error?
Hi there @Greyboots !
Thank you for reporting this.This is when trying OkPy tools right?
Hi, Dynamo doesn’t cause any crashing but doesn’t Run the script. OkPy tools cause it to crash or display the image provided. Further to this I tried to write an OkPy test code to simply print (‘Test’) to the OKPy console and it didn’t Run.
Which version of Orkestra are you using? (you can send it to helpdesk@orkestra.online)
Can you please share the dump (.dmp) you get after the crashes?
v.2024.1.9.2 not sure about the dump files as I say I’m fairly new to coding, where would I find these? Might even be hidden from me due to company IT policy.
Would it be posssible for you to download and install 1.9.3 ?
the dmp is usually accessible via that Autodesk popup that shows up after a crash and suggests sending a report
Thank you for your swift responses. No problem I’ll request the new release to see if that fixes the issue in the first instance.
1 Like
Hi, just to update you we have installed 1.9.3. Revit no longer crashes and get the following message when trying to open OkPy developer. Also none of the tools work Dynamo or OkPy. Out of interest I opened Dynamo installed the Data shapes package and these don’t run either. Looking at the builtin pyhon node it’s locked to Cpython.
I’m beginning to think there’s an issue with Revit 2023!
Apologied for the very lzte reply @Greyboots !
Since Revit 2023 they indeed don’t ship Ironpython 2 with dynamo , you have to install it ad a Dynamo package.
At what moment do you get the error message in your screenshot ?
I have just had Revit 2024 installed and experienced the same issues as Revit 2023 can’t open OkPy developer or can’t run already developed tools and issues with Data Shapes in Dynamo. Good news though I now have a fully functioning OkPy tools however might be considered a work around. In Dynamo install Iron Python 2.7 - 2.1.0, close Dynamo hey presto everything works OkPy and Data Shapes. Repeated both for 2023 & 2024 all works fine. However every now and again OkPy won’t run, simply open a blank Dynamo project and all works again.