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....
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
What is your PDF DPI output? Also if you print that trouble sheet manually will it print?
The sheets refuse to be exported even to DWF. We cannot come up with a probable reason. Never came across something like that.
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.
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
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
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;
}
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?
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.