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

AVEVA™ Unified Engineering

Name Check in Naming tasks

  • Last UpdatedAug 13, 2025
  • 1 minute read

Naming tasks are used to check if a drawing name is already in use, this is achieved by checking the database for a particular name, but it is possible that the name is also used in the list of drawings about to be created by ABA itself.

To check if a base product name has been used elsewhere, use the following method called from user defined tasks:

!!abanewdrwgs.checkname(!namestring) where namestring is the required name.

The routine returns one of three values. 0, 1, and 2, where:

0

means the drawing name is available

1

means the drawing name has been used in the application.

2

means the drawing name has been used in the list of drawings about to be created by ABA.

An example of code to check this is:

!num = !!abanewdrwgs.checkname(!namestring)

if !num eq 0 then

return !namestring $* its ok so use it

else

!!alert.error(‘Name already used’)

return ‘ ‘ $* return a blank name

endif

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