Returns the attribute value of a dynamic configuration, i.e., from a configuration that has been auto generated from a dynamic instance.
string DynConfigAttribute(string productTitle; string instanceName; int instanceIndex; string attributeName)
productTitle |
The title of the product of the dynamic configuration. |
instanceName |
The name of the dynamic instance driving the dynamic configuration. |
instanceIndex |
The zero-based index of the dynamic configuration. Use zero for non-indexed instances. |
attributeName |
The name of the attribute to read. |
Example
DynConfigAttribute("Wall block"; "Wall 1"; 3; "Weight")
Returns the value of the attribute "Weight" from the fourth dynamic "Wall block" configuration that is generated from the dynamic instance "Wall 1".
Remarks
It is recommended to place attributes that read the value of other configurations’ attributes at the bottom of the attribute tree to reduce the risk of circular dependencies. Another solution is to replace either the referenced or referencing attribute with a parameter that is set using a template expression rule.