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

Hull and Outfitting

BLOCK Creation in Specific Database

  • Last UpdatedMay 17, 2023
  • 1 minute read

Description

There is a new PML function available for creating BLOCKs in specific databases.

!!HullNewBlock(!blkName is STRING, !dbName is STRING) is DBREF

The parameter blkName is the name of the new block and it is mandatory.

The parameter dbName is the name of the new block and it is optional (needs to be passed as space, i.e. ‘’).

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.

Benefits

The new PML function makes it possible to create Hull Blocks without using DBPrompt.

Compatibility Constraints

None.

For More Information

Refer to User Guide Hull in Dabacon / Marine Project Setup – Getting Started / Create Initial Data Structures.

Affected Programs

Hull Design

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