Can an attribute template's UoM be parametrized?

We're trying to consolidate two element templates that are nearly identical, except for the units of measure on certain attribute templates. If we could parametrize the UoMs on these attributes, then there would be no need to have separate element templates for each UoM.

Parents
  • While I do understand your frustration with UOM's and element templates, I do not fully understand what you mean by parameterize. My best guess is that you want to use a substitution parameter for the UOM attribute on a PI Point data reference's ConfigString. If that is the case, then NO it cannot be done. The PI Point DR limits substitution parameters to only 2 things: the PI Server Name and Tag Name.

     

    If the PI Points on different templates were stored using the same SourceUOM, then you could possibly use just one element template. When an element is instantiated, you could then alter the DefaultUOM for one of the attributes. I have employed this in the past but it can cause problems if there are a lot of database admins and someone issues a Reset to Template call.

     

    If the PI Points on different templates use different SourceUOM's OR if they use UOM's from different UOMClasses, then you will need 2 distinct element templates.

Reply
  • While I do understand your frustration with UOM's and element templates, I do not fully understand what you mean by parameterize. My best guess is that you want to use a substitution parameter for the UOM attribute on a PI Point data reference's ConfigString. If that is the case, then NO it cannot be done. The PI Point DR limits substitution parameters to only 2 things: the PI Server Name and Tag Name.

     

    If the PI Points on different templates were stored using the same SourceUOM, then you could possibly use just one element template. When an element is instantiated, you could then alter the DefaultUOM for one of the attributes. I have employed this in the past but it can cause problems if there are a lot of database admins and someone issues a Reset to Template call.

     

    If the PI Points on different templates use different SourceUOM's OR if they use UOM's from different UOMClasses, then you will need 2 distinct element templates.

Children
No Data