PDMS hole management
In Hull COS the owner of a block is whichever site at that moment has the block checked out. Installations of CADMATIC Hull as well as the Hull COS Agent (HCA) include the Hull COS Client Command Line Interface (HCC CLI) which provides the following commands to query if a block is checked out, and if it is, on which site.
-
hcc -c <hullcentre> hull block is-checked-out --project-path=<path> [block names] – For the specified block name or several block names in the specified project, displays yes when the block is checked out at the current site, and no otherwise.
-
hcc -c <hullcentre> hull block site --project-path=<path> [block names] – For the specified block name or several block names in the specified project, displays the site that currently has the block checked out, or None if no site has the block checked out.
Tip: For both of these commands the Hullcentre path and/or the project path can be omitted from the command line if they are stored in environment variables %HULLCENTRE% and %NCGPATH%, respectively. For details, see Hull COS Client Command Line Interface (HCC CLI). You can also enter hcc <command> <subcommad> --help in the command line interface.
These commands provide you the information you need to forward a hole request to the correct site, and run the appropriate construct command.
It is up to the service to decide what to do when the target block is not checked out, or to handle the scenario that the command is forwarded to a site that turns out not to have the checkout. Also, a mapping of sites for each project to the IP address of the corresponding service has to be maintained by the service itself.
It is important to remember that currently COS does not keep track of the actual name of the main site. Instead it will always use the string Main as the name of the main site. Therefore, if multiple projects use different servers as their main site, the mapping must include also the project name itself, as the Main of different projects will be running at different IP addresses.
For PDMS Outfitting settings, see Settings.