Adding dynamic attributes to select their values in LayOut labels

Probably not. Ie, dynamic groups are handled “specially” by the Dynamic Components extension.

  • The top level (of the dynamic hierarchy) must be a component, so groups must be nested beneath a dynamic component. (This does not mean that the DC instance must be placed at the model’s top-level.)
  • Both component definitions and instances can have a "dynamic_attributes" dictionary.
    • The definition’s dictionary serves as the master “mold” for all instances. It has the attribute formulae, default values and some other “housekeeping” data.
    • An instance’s dictionary would have any attribute values that differ from the definition’s defaults (but possibly only if there are more than a single instance.)
  • A nested dynamic group will only have a "dynamic_attributes" dictionary attached to the group instance.
  • This means in coding that an instance should always be checked first for the existence of the dynamic dictionary and certain attributes, before checking the object’s definition’s dynamic dictionary. (In the case of a group instance, the latter check is frivolous.)

That said, I’m not sure how deep down the LayOut Label tool will “dig” for attributes. I suggest you manually create some custom attributes and test access in LayOut.

1 Like