When you make PDF of a "Drawingsheet" with the PrintPdfBuilder, the focus snaps back to NX no matter what you do do.
So if you have a lot of DrawingSheets to export, you can't do anything on your computer at all because the focus is constantly switching back to NX.
Is there some way to stop this or is there another way to create PDF of a DrawingSheet?
Perhaps you could do it in batch mode - completely outside of NX. We have an example program on the Solution Center that demonstrates one way to do this. Search for nx_api3495, or
export pdf of each drawing sheet in each part in specified directory