Has anybody have experience where Dynamo Player does not behave as expected and the Dynamo environment works fine?
Or does anybody has build a plot dynamo script that plots sheets multiple (2) times, when it should plot only ones.
After years of building and using dynamo scripts, our office decided that we wanted to rebuild and improve our first and most used script: the plot (+ export) script. The old one works fine, but could be faster and just a bit smarter.
The first version of the rebuild script gave in random occasions an unrecoverable error in Revit while making a PDF. -still not sure why just a ‘Pure Virtual Function Call’ in the log file- After some tweaking (and adding a sync in front of the script) this did not happen anymore. If it works…
But we do have a new weird problem. Some Sheets are printed twice. And only while using the Dynamo Player. While using Dynamo it works as expected.
This script is build for Revit 2020 and later.
So, what did we do.
Because this only occurs with some Sheets. And only while using the Player it is hard to find the problem.
We did generate an extensive OUT report of all the used and generated objects inside the Python script. This does not show a duplication whatsoever. There is only 1 ‘printManager.SubmitPrint()’ command given. This command resides in a definition that is only called ones.
We also can confirm that our PDFCreator actually receives 2 print jobs.
This is really weird and unwanted. And we do not have clue.
Hopefully someone can give us a direction to look.