Name Check in Naming tasks
- Last UpdatedMar 13, 2026
- 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 AVEVA E3D Design |
|
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