コミュニティ

.Net Scripting in ScanStation 回答済み

How can I call document-specific parameters like the recognized barcode in a .NET script of the scan station?

Batch parameters are not a problem, but I currently have a blackout.

A simple example would be great

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Pascal Kubenka

    foreach (IWorkspaceItem d in Workspace.ActiveBatch.Children)

    {

    if (d.IsDocument)

    {

    string barcode = d.DocumentInfo.Barcode; if (!d.DocumentInfo.RegistrationProperties.Has("scst_documentBarcode"))

    {

    d.DocumentInfo.RegistrationProperties.Add("scst_documentBarcode");

    }

    if(d.DocumentInfo.RegistrationProperties.Count>0 && d.DocumentInfo.RegistrationProperties.Has("scst_documentBarcode"))

    {

    foreach (IRegistrationProperty p in d.DocumentInfo.RegistrationProperties)

    {

    if (p.Name == "scst_documentBarcode"&& barcode !="")

    {

    p.Value = barcode;

    }

    }

    }

    }

    }

    0

サインインしてコメントを残してください。