2 Replies Latest reply on May 2, 2016 12:58 PM by wling1

    AF SDK C# code to create AF attribute with a Table Lookup data reference?


      Hello, I am having difficulty finding the proper code to specify the Table Lookup data reference when creating an attribute using AF SDK. From the help guidelines, all I can find is the example that shows how to configure the PI Point data reference:

      // Create an Attribute
      13AFAttribute myAttribute = myElement.Attributes.Add("MyAttribute");
      14myAttribute.Description = "Attribute for MyElement";
      15myAttribute.DefaultUOM = myPISystem.UOMDatabase.UOMs["kelvin"];
      16myAttribute.DataReferencePlugIn = AFDataReference.GetPIPointDataReference(myPISystem);
      17myAttribute.ConfigString = @"\\%Server%\sinusoid";


      Any help is much appreciated!