Jump to content

Mask and Mark a characteristic (Hide and Disable from running and the reporting).


Recommended Posts

I have found I can get the attribute for masked.

getCFAttribute("sphere_loc", "masked")

returns "#on"

The above is masked in the program.

I am thinking I need setCFAttribute to change the attribute, but PCM information is minimal on the use of setCFAttribute.

I tried this but it only returns "nil".

IsMasked=getCFAttribute("sphere_loc", "masked")
setCFAttribute(IsMasked, "off") //returns nil

 

How do you use setCFAttribute?

I have learned how to get the masked value, change the masked value, but I am stuck at setting the masked value to the new value.

CF_Attribute=getCFAttribute("sphere_loc", "masked")
        if CF_Attribute == "on"
            // if masked, unmask
            CF_Attribute = "off"
          setCFAttribute("sphere_loc", "masked") = CF_Attribute
        endif

 

Edited

Please sign in to view this quote.

Unfortunately, Zeiss doesn't allow you to set the "masked" attribute with the setCFAttribute command. It is only meant for "User-defined characteristic attributes" (see the basic manual). The names of these characteristic attributes have to start with u_. setCFAttribute always refers to the last "used" characteristic (for instance which has been opened by click or addressed with getActual(...)). That's why the characteristics name isn't explicitly an argument of this command. The correct syntax is to hand over the name of the attribute and the desired value: setCFAttribute("u_example", value). Your wish would work if Zeiss hasn't implement the query that the attributes name has to start with u_.

×
×
  • Create New...