SetPageData [Schematic Editor]

Note:

This command replaces the PageBorders command.

To add or remove page border, title block and page property data from the specified page. Title blocks will not be shown if the page border type is "None". Any number of title blocks may be specified, as well as any number of page properties. Some of the page properties are special and their values will be updated automatically as appropriate, such as Project, ProjectPath, Design, Number and Date.

UI Access Schematic>Page Borders and Title Blocks...
Parameters
Name Type Description
<bordertype> String One of: "None", "Outline", "ANSI", "ISO", "DIN"
<sizeX> Double(with units) Size of X axis
<sizeY> Double(with units) Size of Y axis
<marginX> Double(with units) Margin of X axis
<marginY> Double(with units) Margin of Y axis
<zonesH> Integer  
<zonesV> Integer  
<symbolName> String The name of the title block symbol.
<libName> String The name of the library (with path from library directory root) that contains the title block symbol
<Hsnap> String One of: "Left", "Right", "Center", "None"
<Vsnap> String One of "Top", "Bottom", "Center", "None"
<rotation> String One of "0", "90", "270"
<propName> String The name of a page property followed by ":="
<propVal> String The value of a page property
Return Value None

 

Python Syntax

SetPageData (<pagenum>,

["NAME:Border", "BorderType:=", <bordertype>, "Page­Size:=", ["x:=", <sizeX>, "y:=", <sizeY>],

"PageMargins:=", ["x:=", <marginX>,

"y:=", <marginX>],"ZonesHoriz:=", <zonesH>,

"ZonesVert:=", <zonesV>],

["NAME:TitleBlocks"[, "TitleBlock:=",

[<symbolName>, <libName>, <Hsnap>, <Vsnap>,

<rotation>, -1)]*],

["NAME:PageProps"[, <propName>, <propVal>]*])

Python Example

oEditor.SetPageData (1, ["NAME:Border",

"BorderType:=", "ANSI", "PageSize:=", ["x:=", "11in", "y:=", "8.5in"],

"PageMargins:=", ["x:=", "0.38in", "y:=", "0.25in"], "ZonesHoriz:=",

2, "ZonesVert:=", 2], ["NAME:TitleBlocks", "TitleBlock:=", ["TitleBlk1",

"TitleBlocks", "Right", "Bottom", "0", -1]], ["NAME:PageProps",

"Title:=", "Design Title", "Author:=", "I. M. User", "Number:=", "1",

"Project:=", "Project8", "ProjectPath:=", "e:/projects/",

"Design:=", "TwinBuilder1", "Date:=", "9:53:11 PM Jan 27, 2016"])