Revit PDF export fails

Revit PDF export fails

eyalbRAPVR
Enthusiast Enthusiast
1,811 Views
13 Replies
Message 1 of 14

Revit PDF export fails

eyalbRAPVR
Enthusiast
Enthusiast

I have a unique trouble trying to print to PDF a group of Revit sheets. They are all embedded with section views which I had printed before. However, now all of them seem to fail no matter what method of export I try, including DWF. I tried the native exporter, 3rd party ones, you name it. A mystery to me. Other sheets print out easily. These are relatively simple A0 size sheets, each containing a single view. Any ideas how to solve this, or what may be the cause?

There is no error message, Revit simply gets stuck and needs to be aborted from the task manager. 

I am lost....

0 Likes
1,812 Views
13 Replies
Replies (13)
Message 2 of 14

ennujozlagam
Mentor
Mentor

try to install latest updates from autodesk and tick audit before opening the files and try to use another pdf printer like Bullzip and see if helps. thanks





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 3 of 14

eyalbRAPVR
Enthusiast
Enthusiast
I have tried all other print drivers. Doesn't work... I will try audit and see if that helps.
Thanks!
0 Likes
Message 5 of 14

syman2000
Mentor
Mentor

What is your PDF DPI output? Also if you print that trouble sheet manually will it print?

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
0 Likes
Message 6 of 14

eyalbRAPVR
Enthusiast
Enthusiast

The sheets refuse to be exported even to DWF. We cannot come up with a probable reason. Never came across something like that. 

0 Likes
Message 7 of 14

syman2000
Mentor
Mentor

What is in that view? 3d, CAD link or other view? Check and see if there is a custom view boundaries added to the view.

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
0 Likes
Message 8 of 14

ToanDN
Consultant
Consultant

Do you have any NWD coordination models linked in?  

0 Likes
Message 9 of 14

eyalbRAPVR
Enthusiast
Enthusiast

Nope! no NWD involved. 

0 Likes
Message 10 of 14

peter_ezeFBMGG
Observer
Observer

I have same problem of printing to PDF using REvit API 2023


@eyalbRAPVR wrote:

I have a unique trouble trying to print to PDF a group of Revit sheets. They are all embedded with section views which I had printed before. However, now all of them seem to fail no matter what method of export I try, including DWF. I tried the native exporter, 3rd party ones, you name it. A mystery to me. Other sheets print out easily. These are relatively simple A0 size sheets, each containing a single view. Any ideas how to solve this, or what may be the cause?

There is no error message, Revit simply gets stuck and needs to be aborted from the task manager. 

I am lost....




Error CS1503 Argument 4: cannot convert from 'Autodesk.Revit.DB.PDFExportOptions' to 'Autodesk.Revit.DB.SATExportOptions' ModifyRevitDocument C:\Users\peteze\Documents\mepai_csharp\ModifyRevitDocument\ExportViewToPDF.cs 67 Active

0 Likes
Message 11 of 14

TripleM-Dev.net
Advisor
Advisor

Best Post this on the API forum.

 

But looks like in line 67 of ExportViewToPDF.cs there's a error.

Seems to use SATExportOptions which should be a PDFExportOptions class

 

0 Likes
Message 12 of 14

peter_ezeFBMGG
Observer
Observer

I actually defined PDFEXportOptions and not SAT but it is seeing it as SAT. See below:

PDFExportOptions opt = new PDFExportOptions();
opt.Combine = true;
opt.FileName = "My House";

opt.PaperFormat = ExportPaperFormat.ARCH_E;

}

0 Likes
Message 13 of 14

TripleM-Dev.net
Advisor
Advisor

Post the code used in line 67.

 

Looks like when using Export Method the wrong arguments are used for the overload Export Method (String, IList(ElementId), PDFExportOptions) 

 

The Export overload using SATExportOptions is: Export Method (String, String, ICollection(ElementId), SATExportOptions)  this overload has a extra string argument (filename), maybe that's used and it's expecting a SATExportOptions and not PDFExportOptions?

0 Likes
Message 14 of 14

peter_ezeFBMGG
Observer
Observer
I have posted the code in my previous reply.
0 Likes