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

AVEVA™ Engineering

Query Any Attribute at the Comparison Date

  • Last UpdatedAug 05, 2025
  • 1 minute read

The ‘OLD’ syntax enables you to query any attribute at the comparison date.

You can use the syntax in front of any expression or attribute. The whole expression will then be evaluated at the comparison date. For example:

Q OLD XLEN

If a name is given, the name will be for the item at the comparison date, not now. Thus values of deleted items may be accessed. For example:

Q OLD REF OF /OLDPIPE

Where /OLDPIPE no longer exists.

The ‘OLD’ syntax may also be used after ‘VAR’. This includes collections. For example:

VAR !PIPES OLD COLLECT ALL PIPES

This would return a collection of all PIPES at the old version.

If the functions MODIFIED, CREATED, DELETED are used on the old version then the comparison is made with the current version.

For example to get a list of deleted pipes between the comparison date and now, then the following collection could be used. For example:

VAR !PIPES OLD COLLECT ALL PIPES WITH ( DELETED() )

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