Count

Gets the total number of queried projects or designs obtained by GetProjects() and GetDesigns() commands.

UI Access N/A
Parameters None.
Return Value Integer
Python Syntax Count
Python Example

projects = oDesktop.GetProjects()

numprojects = projects.Count

VB Syntax Count
VB Example

Dim oAnsoftApp

Dim oDesktop

Dim oProject

Dim oDesign

Dim oEditor

Dim oModule

Dim oProjects

Set oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")

Set oDesktop = oAnsoftApp.GetAppDesktop()

oDesktop.RestoreWindow

Dim projects

set projects = oDesktop.GetProjects()

for i = 0 to projects.Count - 1

msgbox projects(i).GetName()

dim designs

set designs = projects(i).GetDesigns()

for j = 0 to designs.Count - 1

msgbox designs(j).GetName()

next

next