Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Revit PDF export fails

13 ANTWORTEN 13
Antworten
Nachricht 1 von 14
eyalbRAPVR
944 Aufrufe, 13 Antworten

Revit PDF export fails

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....

13 ANTWORTEN 13
Nachricht 2 von 14
ennujozlagam
als Antwort auf: eyalbRAPVR

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.
Nachricht 3 von 14
eyalbRAPVR
als Antwort auf: ennujozlagam

I have tried all other print drivers. Doesn't work... I will try audit and see if that helps.
Thanks!
Nachricht 4 von 14
barthbradley
als Antwort auf: eyalbRAPVR
Nachricht 5 von 14
syman2000
als Antwort auf: eyalbRAPVR

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
Nachricht 6 von 14
eyalbRAPVR
als Antwort auf: eyalbRAPVR

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

Nachricht 7 von 14
syman2000
als Antwort auf: eyalbRAPVR

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
Nachricht 8 von 14
ToanDN
als Antwort auf: eyalbRAPVR

Do you have any NWD coordination models linked in?  

Nachricht 9 von 14
eyalbRAPVR
als Antwort auf: ToanDN

Nope! no NWD involved. 

Nachricht 10 von 14
peter_ezeFBMGG
als Antwort auf: eyalbRAPVR

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

Nachricht 11 von 14
TripleM-Dev.net
als Antwort auf: peter_ezeFBMGG

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

 

Nachricht 12 von 14
peter_ezeFBMGG
als Antwort auf: TripleM-Dev.net

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;

}

Nachricht 13 von 14
TripleM-Dev.net
als Antwort auf: peter_ezeFBMGG

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?

Nachricht 14 von 14
peter_ezeFBMGG
als Antwort auf: TripleM-Dev.net

I have posted the code in my previous reply.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report