Table of Contents

CadPlot

from OpenCAD2D import CadPlot

class CadPlot(System.Object) ยท CadPlot in the .NET reference

Plots a layout to a PDF as a script wants it: the layout's own page setup, or the sheet and scale given for this plot alone, with the text of an SHX font also written as invisible text so that a PDF reader's search, and a program that reads the plot back, find the words. CadRender.WritePdf plots as the page setup says and no more; this takes the changes a call may ask for.

Methods

WritePdf

.NET

@staticmethod
def WritePdf(path: str, document: CadDocument, layout: str, paper: str, scale: str, fit: bool) -> CadPlotPage

Plots a space to a PDF file of one page, replacing a file of the name, with the page setup of the layout as it is, or with the changes asked for, none of which is written into the drawing. A layout plotted at 1:50 on A3 with nothing asked for is written at 1:50 on A3; a space never set up (no sheet in its plot settings) is fitted to ISO A3; a sheet given with no scale is fitted to it.