AnsweredAssumed Answered

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

Question asked by wling1 on Apr 29, 2016
Latest reply on May 2, 2016 by wling1

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!