Contents Scripting Examples | Script Examples for Interacting with Tree Objects | Print page Count the Number of ContactsGoal: Count the number of contacts in the model. Code: contacts = DataModel.GetObjectsByType(DataModelObjectCategory.ContactRegion) numContacts = contacts.Count print("There are %s contact regions" % (numContacts) ) « Create Material Assignment from Body Materials Suppress Duplicate Contacts »