Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Batch Management

Example

  • Last UpdatedAug 26, 2016
  • 1 minute read

The following sample C# code illustrates how to define, query, and use the wwDefaultChar object.

The example deletes all the default characteristics defined for the Water material. The global variables are defined so that they are available throughout the entire program.

private void deleteDefaultChar()

{

short sretval = 0;

wwDefaultChar defaultchar;

wwDefaultChars defaultchars;

wwMaterialUnits LocMatUnits;

LocMatUnits = GetMatUnits(); // find the this function in above page

Material.QueryDefaultChars();

defaultchars = (wwDefaultChars)Material.DefaultChars;

int temp = System.Convert.ToInt16(CharectaristicsLsv.SelectedItems[0].SubItems[0].Text);

defaultchar = (wwDefaultChar)defaultchars.Item(temp);

sretval = defaultchar.Delete();

}

TitleResults for “How to create a CRG?”Also Available in