discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

openingsInView function

List<(Handle, OpeningParams)> openingsInView(
  1. ParametricView view,
  2. Handle host
)

host's openings in view: its referrers carrying OpeningParams whose host is host, ascending by handle, with their parameters.

Implementation

List<(Handle, OpeningParams)> openingsInView(
        ParametricView view, Handle host) =>
    [
      for (final h in view.referrers(host))
        if (view.paramsOf<OpeningParams>(h) case final o? when o.host == host)
          (h, o),
    ];