Hi All,
First attempt to a modeless form to print to pdf the current open sheet. I’m following the modeless form example from pyRevitMEP.
![image](https://discourse.pyrevitlabs.io/uploads/db0866/original/2X/3/39cb54165884e36d2d9e052dbacd8981b6886e81.png)
I get an error. “Starting a transaction from an external application running outside of API context is not allowed.”
Any suggestions ?
Jean-Marc
(Jean-Marc Couffin)
2
This is how it is done the color splasher tool for example
I actually solved by looking at the “Rename Views” tool from pyRevitMEP.
Jean-Marc
(Jean-Marc Couffin)
4
Would you care pointing at the error in your code and how you solved it, so that it can help others?
Pretty good solution by Cyril!
![image](https://discourse.pyrevitlabs.io/uploads/db0866/original/2X/0/06cf9a0a3a0577a05e58a7024144e3b2b431255b.png)
![image](https://discourse.pyrevitlabs.io/uploads/db0866/original/2X/7/7786f4e35b3a0e871414b8df61ac5729be5e5d0e.png)
![image](https://discourse.pyrevitlabs.io/uploads/db0866/original/2X/2/2050b6f144c0cd5ca3739de0c3422c60cf977d6f.png)