# cee::app::Parts

class `Parts` : public RefCountedObject

  Class that provides access by index or by name pattern to all parts of the current UnstructGridModel.

  Public Functions

  size_t `count`() const

    Returns number of parts.

  cee::ug::DataPart *`current`() const

    Returns current part.

  cee::ug::PartInfo `currentInfo`() const

    Returns current part info.

  void `setCurrent`(cee::ug::DataPart *part)

    Sets part to current.

  size_t `currentIndex`() const

    Returns current index.

  void `setCurrentIndex`(size_t index)

    Sets current index.

  size_t `indexOf`(const cee::ug::DataPart *part) const

    Returns index of part.

  cee::ug::DataPart *`get`(size_t index) const

    Returns part at given index.

  cee::ug::DataPart *`get`(const cee::Str &wildcard) const

    Returns the Part matching the search string wildcard.

    Return NULL if none found

  cee::ug::PartInfo `info`(size_t index) const

    Returns the part info for the given index.

  cee::ug::PartInfo `info`(cee::ug::DataPart *part) const

    Returns the part info for the specified part.

  size_t `geometryIndex`(size_t index) const

    Returns the geometry index of the part at the specified index.

  size_t `geometryIndex`(const cee::ug::DataPart *part) const

    Returns the geometry index of the specified part.

  Public Static Functions

  static Parts *`instance`()

    Parts is a singleton. Always access Parts using this instance()

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...