BLOCK Creation in Specific Database or Under a Specific HBLWLD (Hull Block World)
- Last UpdatedDec 05, 2025
- 1 minute read
Creating BLOCKs in specific databases can be made using the following PML function.
!!HullNewBlock(!blkName is STRING, !ownName is STRING) is DBREF
The parameter blkName is the name of the new block and it is mandatory.
The parameter ownName is the name of the database of Hull Block World. This parameter is optional (needs to be passed as space though, that means, '').
The function returns the DBREF to the newly created BLOCK element if successful. Otherwise an error message is issued and the function result is undefined.
Example:
!blk = !!HullNewBlock('MYBLOCK', 'MYTEAM/MYDB')
That statement will create a new block, MYBLOCK, in the database MYTEAM/MYDB.
!blk = !!HullNewBlock('MYBLOCK', '/MYHBLWLD')
That statement will create a new block, MYBLOCK, under the existing HBLWLD/MYHBLWLD.