Count the Number of Contacts

Goal: Count the number of contacts in the model.

Code:

contact_region_list = ExtAPI.DataModel.Project.Model.GetChildren(DataModelObjectCategory.ContactRegion, True)
contact_region_list.Count()

Release 18.2 - © ANSYS, Inc. All rights reserved.