Zoo - ProductKeyTextMask


#1

Hi,

I’m using the new Zoo version (6.0.18009.02391) and there is a new method public string ProductKeyTextMask() that’s giving me some problems:

  • I don’t want a text mask but if I set this method to return string.Empty or null, it makes Zoo server crash before the window to write the license shows up. Can I avoid the use of a text mask?
  • I don’t find any documentation about the “mask”. “A” means a position _ at the license that’s the only thing I know.

Also I noticed there is a new method public int ValidateProductKeyUI(string productKey, out string validatedKey, out List clusterSerialNumbers) and it’s being called instead of the method public int ValidateProductKeyUI(string productKey, out string validatedKey). ¿When do you call the second one?

Regards,


Zoo 6 crashes when selecting custom plugin product type
(Dale Fugier) #2

Hi @mpcarlos87,

I can repeat this, thanks for reporting.

https://mcneel.myjetbrains.com/youtrack/issue/ZO-199

Here is some document on the formatting of the Mask property.

http://api.etoforms.picoe.ca/html/P_Eto_Forms_FixedMaskedTextProvider_Mask.htm

Also, if your plugin implements the IZooPlugin3 interface, then the older version of ValidateProductKeyUI will not be called.

Here is a Zoo plug-in sample if you need:

https://github.com/mcneel/rhino-developer-samples/tree/6/zoo/SampleCsZoo

– Dale


#3

Thanks @dale :slight_smile: