OPS

HomeDocsSupport

OPS

Back to docs

GetGroupEntityCount

Returns the number of entities in a specified group in the current model.

This function retrieves the count of entities (such as members, nodes, etc.) that belong to a given group name in the current model.

Parameters

  • groupName: Name of the group for which the entity count is required.

Return values

  • : Number of entities in the specified group.
  • -1: Unable to find the group or error occurred.

Example

from openstaad import Geometry

# Instanciar el módulo Geometry
g = Geometry()

# Obtener el número de entidades en el grupo "Group1"
entity_count = g.GetGroupEntityCount("Group1")
What is OPS?GitHubSupport

© 2024 OpenStaad

Built with Reflex