Lookup a layer value

Lookup a layer value
 1# This script shows how to use LookupValueFromProjectOrLayerKey to find the value in ONE_UP.boardgrd that corresponds to a specific layer key.
 2
 3ot = impact.gui.output_toolbox
 4ot.clear()
 5
 6# TODO: Verify the native return format and no-match semantics in Impact.
 7# The three-argument wrapper forwards the COM result despite its None annotation.
 8# Diagnostic only: this does not establish how to extract a layer value.
 9lookup_result = impact.active_database.lookup_value_from_project_or_layer_key("ONE_UP", "BOARDGRD", 49820695)
10
11ot.add("Lookup result (diagnostic only; return format unverified): " + repr(lookup_result))