# CDPElementGroupInfo

## Functions

| `~CDPElementGroupInfo`
void | `setPartName`
void | `setPartBoundaryCondition`
void | `setParentPart`
void | `setPartColor`
void | `addPartData`

## Detailed Description

class `CDPElementGroupInfo`

  Contains information about one element group.

  This class is used for describing the parts produced by one element group if using sub-group part splitting (see CDPGeometryInfo for more info on how parts are created).

  All ids specified must be unique within the contained geometry, and parts cannot span element groups, so any id used in one element group (either per group or sub-group) cannot be used in another element group.

  Public Functions

  inline virtual `~CDPElementGroupInfo`()
  virtual void `setPartName`(cdp_int_t geometryGlobalPartId, const CDPString &partName) = 0

    Sets the name of the part with the given geometryGlobalPartId in this group.

    All the unique part ids specified in the CDPElementGroup::setElementPartIds() must be specified for the associated element group with this method.

  virtual void `setPartBoundaryCondition`(cdp_int_t geometryGlobalPartId, bool isBoundaryCondition) = 0

    Sets if the part with the given geometryGlobalPartId in this group is a boundary condition part or not.

    All the unique part ids specified in the CDPElementGroup::setElementPartIds() must be specified for the associated element group with this method.

  virtual void `setParentPart`(cdp_int_t geometryGlobalPartId, cdp_int_t geometryGlobalParentPartId) = 0

    Sets the parent part id for the part with the given geometryGlobalPartId in this group.

    All the unique part ids specified in the CDPElementGroup::setElementPartIds() must be specified for the associated element group with this method.

  virtual void `setPartColor`(cdp_int_t geometryGlobalPartId, const CDPColor4 &partColor) = 0

    Sets the default color for the part with the given geometryGlobalPartId in this group.

    All the unique part ids specified in the CDPElementGroup::setElementPartIds() must be specified for the associated element group with this method.

    Note

    You need to specify that your provider is specifying default colors in your derived factory (implementation of CDPDataProviderFactory::getProviderInfo()) by using the CDPDataProviderInfo::setHasDefaultColors() method to tell the host to use the default colors.

  virtual void `addPartData`(cdp_int_t geometryGlobalPartId, const CDPString &key, const CDPString &value) = 0

    Adds additional data (key,value pairs) for a part in this geometry.

    All the unique part ids specified in the CDPElementGroup::setElementPartIds() must be specified for the associated element group with this method.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop 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...