housesrest.blogg.se

Revit print to scale
Revit print to scale




  1. Revit print to scale code#
  2. Revit print to scale windows#

To have to rewrite the user interfaces for all of our add-ins to use WPF would be crippling, to say the least.Ĭan you please advise us on what we would need to do to modify our existing add-ins so they will scale and work correctly on scaled-up 4K monitors in a Revit environment?įor example, are there configuration settings for Revit which control the executable environment that we can advise our customers to change?

Revit print to scale code#

We have a rather breath-taking amount of code in our Revit add-ins, the significant majority of which is in the user interfaces. So, very sadly, as far as I can tell, these tricks don’t work for our Revit add-ins. While these things work well for standalone executables we write, I believe they must be done at the executable level, and as add-in creators for Revit we do not have control over Revit’s executable environment.

revit print to scale

Static extern int SetProcessDpiAwareness(

Revit print to scale windows#

In my research on this subject, you can get Windows Forms applications to work well on 4K monitors by changing some of the application properties, for example like this:

revit print to scale

Then, the add-ins work fine on any screen, but some customers are now balking at that. Application Properties for Stand-Alone AppsĪ workaround to this problem for our add-ins is to have whichever monitor is the primary monitor be scaled to 100% zoom. Scrolling doesn’t work right, buttons get pushed off the edge of the window, etc.Īt least some of our add-ins essentially become unusable. When this happens, our Windows Forms user interfaces get kind of jumbled up. However, we have been getting more and more complaints from our customers that our add-ins don’t work properly when they run 4K monitors, because they have to scale up the monitors just to be able to read text on them the native resolution is too high for the size of these desktop monitors to allow text to be readable at native scale.įor example, most users change the scale to 150% or even 200% in order to be able to read text. The sample code in the Revit SDK also still uses Windows Forms. We even built our add-in template code from these examples. We followed the examples from Autodesk, which were all done using Windows Forms. We have been writing commercial Revit add-ins for over ten years now. Problem Adapting a Revit Add-In for 4K Displays Method 2 – Adjust how Revit handles 4k displays.Method 1 – Run hires monitor in low resolution.Separate UI component with IPC suggestion.Application properties for stand-alone apps.Problem adapting a Revit add-in for 4K displays.The file size necessary to trigger this option depends on system speed and amount of memory.As high-resolution monitors grow ever more common, an important question arises on handling add-in scaling for 4K high resolution screens.īelow, CoderBoy shares some questions and answers on this topic: If the print job is of substantial size, the status bar displays a Cancel button.

revit print to scale

Do not open other applications while printing.This strategy conserves network resources and reduces communications between local files and central files. If you are working on a workshared file and experience issues printing, ask the users who need to print to detach their local copies and work locally.See About Vector Processing and Raster Processing. Vector printing is usually faster than raster printing.To increase the print speed of elevation views, section views, and perspective views, use the Far Clipping property for these views.This strategy should reduce the memory resources required to open the file. Unload all links that are not necessary for a particular view that is being printed.If shadows are not needed for the views to be printed, turn off shadows.Make sure that you have installed the most recent version of the printer driver.To improve performance and stability when printing views and sheets, do the following before you start a print job:






Revit print to scale