CreatePagePort (Schematic Editor)
Create a PagePort
| UI Access | Draw>Page Connector | ||||||
| Parameters |
|
||||||
| Return Value | String
Unique id |
The pageport is created and it has the following format:
PagePort@<portName>;<schematicID>
The schematic ID can be found in the Properties window on the Symbols tab when you select the pageport.
| Python Syntax | CreatePagePort() |
| Python Example |
|
| VB Syntax | CreatePagePort() |
| VB Example |
|
VB Example:
Dim oAnsoftApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
Set oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")
Set oDesktop = oAnsoftApp.GetAppDesktop()
oDesktop.RestoreWindow
Set oProject = oDesktop.SetActiveProject("Project4")
Set oDesign = oProject.SetActiveDesign("Circuit1")
Set oEditor = oDesign.SetActiveEditor("SchematicEditor")
PagePortID = oEditor.CreatePagePort(Array("NAME:PagePortProps", "Name:=", "pageport_0", "Id:=", _
177), Array("NAME:Attributes", "Page:=", 1, "X:=", 0.0889, "Y:=", 0.1651, "Angle:=", _
0, "Flip:=", false))
MsgBox "PagePort = " & PagePortID