CreateIPort (Schematic Editor)
Create an interface port
| UI Access | Draw>Interface Port | |||||||||
| Parameters |
|
|||||||||
| Return Value | String
Unique id |
Interface port is created and the returned value has the following
format:
IPort@<portName>;<schematicID>
The interface port schematic ID can be found in the Properties
window on the Symbols tab.
| Python Syntax | CreateIPort() |
| Python Example |
|
| VB Syntax | CreateIPort() |
| 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")
IPortID = oEditor.CreateIPort(Array("NAME:IPortProps", "Name:=", "Port1", "Id:=", 189), Array("NAME:Attributes", "Page:=", _
1, "X:=", 0.0889, "Y:=", 0.1651, "Angle:=", 0, "Flip:=", false))
MsgBox "IPort ID = " & IPortID