.NET Customisation User Guide

.NET Customisation : Database Interface : Events : Adding Pseudo Attribute Code
public delegate double GetDoubleDelegate(DbElement ele, DbAttribute att, int qualifier);
static private double VolumeCalculation(DbElement ele,DbAttribute
att,int qualifier)
double x=ele.GetDouble(ATT.XLEN);
double y=ele.GetDouble(ATT.YLEN);
double z=ele.GetDouble(ATT.ZLEN);
return (x * y * z);
public static void AddGetDoubleAttribute(DbAttribute att,GetIntDelegate plug)
public static void AddGetDoubleAttribute(DbAttribute att, DbElementType type, GetIntDelegate plug)
using System;
using NOUN=Aveva.Core.Database.DbElementTypeInstance;
using Ps=Aveva.Core.Database.DbPseudoAttribute;
namespace Aveva.Core.Shared.Tests
static public void RegisterDelegate()
Ps.GetDoubleDelegate dele=new Ps.GetDoubleDelegate(VolumeCalculation);

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo