• Hello together,

    how do I do a correct format in the autonaming if I have a array for an attribute

    e.g.

    !namOptRule             = object NAMOPTRULE()
    !namOptRule.key         = |OPC|
    !namOptRule.description = |Naming rule for all OPC|
    !namOptRule.rule        = |All OPC|
    !namOptRule.scan        = |SCGROU|
    !namOptRule.format      = |diarefarray(1) of owner & '/TP' & !INDEX|
    !namOptRule.indices     = |00|
    !tempArray.append(!namOptRule)


    I get following error:

    Format rule diarefarray(1) of owner & '/TP' & !INDEX is not valid for element =604002692/550

    It seam that owner strings are allowed as attribute types. How do I get string of a array(1)?


    regards
    Angus
  • Try to use insead [COLOR=#333333]diarefarray(1) of owner & '/TP' & !INDEX[/COLOR]:
    !!ce.diarefarray[1].namn [COLOR=#333333]& '/TP' & !INDEX [/COLOR]