Issue with PDF export - Circles looks weird in pDF

Hi @GavinNicholls, I am using Revit.ExportToPDF node, everthing is working well - it just all the circle geomtry look weird after print.

I know this is probably printer issue but how can I customize printer manager to “Bluebeam PDF”

Hi I guees that node do a pdf export not a print i dont know that node, but maybe there is some option in the script for set quality dpi

Hi @sovitek, this is node from crumple pacakage and I am exporting PDF and trying to get Bluebeam PDf as virtual printer not a physical printer

yeah guess i understand…hahah…but with export method i guess the api only support these settings as here, and dont think it possible assign another printer…but im probably wrong..:slight_smile:

or you could do a real print…maybe @GavinNicholls have nodes for that as well

I am also not sure, but when I export pdf using RTV tool or Pyrevit Print sheet - there are option to pick printer like - Bluebeam PDF, Mircosoft print to pdf etc etc.

even with API (C#, Pyhton for any dynamo nodes) when i print pdf it gave me same circle issue - I went upto 1200DPI and issue is presistent

maybe dont know, but guees these tools not use pdf export inside revit then…but do a real print where we can pick printer

and ps if i remember right, revit use the default printer set in windows

do you know how we can update default printer thing, if that is possible?

Thanks, even after making bluebeam as default export issue remain same

allright, dont think i can come it closer then :wink: i havent work with print since we get the export option so, and haven’t had any complaints about it…and again long time ago i have touched Bluebeam…but if i remember right there was some tricky to get the print work probably…cant really remember, try a search on the big internet, maybe some hints will popup

even if i open the pdf after export using dynamo circle looks distorted in Bluebeam, google, edge or any pdf viewer

instead of export pdf try use the real print and see if that is better, with that printer you have assigned

you can try with the old way with PrintManager , replace PDFCreator by your printer

import clr
import time
import sys
import System
from System.Collections.Generic import List

clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
sdkNumber = int(app.VersionNumber)

# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
from Autodesk.Revit.Attributes import *
import Autodesk.Revit.DB as DB

clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *


def printPdf2(doc, outViewSet, outSize, pdf_orientation):		
	printManager = doc.PrintManager
	printManager.PrintRange = PrintRange.Select
	printManager.Apply()
	printManager.SelectNewPrintDriver("PDFCreator")
	printManager.Apply()
	vss = printManager.ViewSheetSetting
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.PaperPlacement = PaperPlacementType.Margins
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.MarginType = MarginType.UserDefined
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.ZoomType = ZoomType.Zoom
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.Zoom = 100
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.PaperSize = outSize
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.PageOrientation  = pdf_orientation
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.HideUnreferencedViewTags = True
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.HideReforWorkPlanes = True 
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.HideCropBoundaries = True 
	printManager.PrintSetup.CurrentPrintSetting.PrintParameters.HideScopeBoxes = True
	TransactionManager.Instance.EnsureInTransaction(doc)
	try:
		printManager.PrintSetup.SaveAs("TempSetings")
	except:
		try:
			printManager.PrintSetup.SaveAs("TempSetings33")	
		except:
			# delete the setting manually au programmatically before to call this function
			TaskDialog.Show('Error',"Delete the following print settings: \n-TempSetings\n-TempSetings33 \n\nThen rerun the script")		
	printManager.Apply()	
	vss.SaveAs("tempSetName")
	try:
		vss.InSession.Views = outViewSet
	except:
		vss.CurrentViewSheetSet.Views = outViewSet	
	TransactionManager.Instance.TransactionTaskDone()
	doc.Regenerate()
	#
	if printManager.IsVirtual:
		printManager.CombinedFile = False
		printManager.PrintToFile = True
		printManager.Apply()
	else:
		printManager.PrintToFile = False
		printManager.Apply()
	#	
	#printManager.PrintToFileName = "???"
	printManager.Apply()	
	TransactionManager.Instance.EnsureInTransaction(doc)
	printManager.SubmitPrint()
	TransactionManager.Instance.TransactionTaskDone()	

	return True

yeap Revit and printing :wink:

Lol :rofl::rofl:

All i have to say is screw print drivers…

I made the batch printer at work and a good chunk of my week is currently explaining why autodesk prints text in italics before we ship their bug fix, as well as why someone using a custom font is a systematic liability.

Most common issues that sometimes fix are:

  • Make sure all monitors are same resolution
  • Dont run revit in multiple monitors at once (most people do, it just has so many unhandled issues)
  • Big print jobs often max out driver memory capacity in my xp. Chunk your sets if youre doing big models/sets
  • Dont use custom fonts. Just dont

GIven you have geometry/lines bugging out i will just go out on a limb and blame the driver author. If its autodesk’s driver, revit forums can take the hit.

One of those days, nerve struck. Appreciate your using crumple though and hope it serves well otherwise :wink:

Sids note crumple also has a print node that moreorless follows this line of code. We support both pathways at work and we hit errors in both unpredictably. Machine spec is likely a common culprit.

yeaps…In many places, it is still a choice between the plague and cholera.

Just some thoughts, maybe they’ll be helpful…

I’ve seen this issue in AutoCAD that circles print faceted.
If you export the view to AutoCAD are they faceted there?
Perhaps the linework of the circles are actually faceted, but Revit displays them as smooth, and the PDF export is picking up on the actual linework and not what Revit is showing.
Maybe something to do with PDF export vs PDF print.