Create a new Registration parameter in scanstation by script

Hi

how can i create a new Registration parameter in scanstation by script?

the event im using is "On Batch Created".

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Scott Chau

    You don't really create a Registration Parameter.  The parameter has to be already exist.  You can populate it during.  Here is an example of populating a barcode value

     

    for (var i = 0; i < this.ActiveBatch.Children.Count; i++)
    {
    if (this.ActiveBatch.Children(i).IsDocument)
    {
    this.ActiveBatch.Children(i).DocumentInfo.RegistrationProperties.Value("BarcodeValue") = this.ActiveBatch.Children(i).DocumentInfo.Barcode;
    }
    }

    0

Please sign in to leave a comment.