long setVisibility(string attrName, string attrVal, bool makeVisible)

This method sets the visibility of the transient features defined by attrName and attrVal on or off, depending on whether makeVisible is TRUE or FALSE, respectively.  The argument attrName can be one of the following: “CARIS Key”, “Feature Code”, or “Source ID”, which determines how the method interprets attrVal. If no features satisfy the criteria, no visibilities are modified.

This method only operates on transient features, i.e. features that have been added by the client. To set the visibility of persistent features, use LayerAPI.setVisiblity.

The method returns 0, regardless of whether any features are found that satisfy the criteria, but it returns an error code if attrName is invalid.