Compartment Adjacency added to MapIt

Version 5.59.00 introduced two new related capabilities: IsInCompt and IsNearCompt. The IsInCompt routine returns a list of compartments in which the submitted point is found. This is helpful when needing to validate ASA data that has a compartment and a XYZ location such as equipment, sinks, and transfers. The IsNearCompt routine uses the IsInCompt routine and checks the submitted point and 6 additional points located in the 3 +- orthogonal directions.  A list of the spaces in which these 7 points fall is provided as being ‘near’ the center point.  The distance around the center point is determined by the RadiusIsNear value which has a 0.0 – 2.0 range.  The value defaults to 0.5 feet or 0.15m.

These capabilities provides support for:

  • Checking to determine if an ASA artifact (portal, hole, Eqpt, etc.) is in or appropriately adjacent to the referenced compartments
  • Providing automatic adjacent compartment selection when using the “Define Portal Locations”

A curious side effect of using these validation and location functions is that the routines sometimes identify more than the expected 2 adjacent compartments.  Reviewing the SHCP compartment model may reveal that there are spaces which overlap, typically not intentionally, or spaces for which a subtraction should have been defined but was not.  This all leads to the creation of a more consistent and correct compartment model.