BatchMasterRecipe

BatchMasterRecipe: Reçetenin özelliklerini içeren nesne.

Reçetenin özelliklerini içeren nesne.

OrtamKullanılabilirlik
Engineering StudioKullanılmaz
Service EngineSalt okunur
VBAKullanılabilir
VSTAKullanılabilir
C#

                  public void MacroBatchMasterRecipe()
{
    IBatchManager batchManager = this.BatchManager();
    //Get a master recipe over its index
    int mrIndex = 0;
    IBatchMasterRecipe masterRecipe = batchManager.MasterRecipes().ItemByIndex(mrIndex);
    // Get a master recipe over its ID 
    int mrId = 42;
    masterRecipe = batchManager.MasterRecipes().ItemById(mrId);
    //Get the data of a master recipe over its name
    string mrName = "TestMR1";
    masterRecipe = batchManager.MasterRecipes().Item(mrName, 1);
    //Do something with the BatchMasterRecipe
}
VB.NET

                  Public Sub MacroBatchMasterRecipe()
    Dim batchManager As IBatchManager = Me.BatchManager()
    'Get a master recipe over its index
    Dim mrIndex As Integer = 0
    Dim masterRecipe As IBatchMasterRecipe = batchManager.MasterRecipes().ItemByIndex(mrIndex)
    ' Get a master recipe over its ID 
    Dim mrId As Integer = 42
    masterRecipe = batchManager.MasterRecipes().ItemById(mrId)
    'Get the data of a master recipe over its name
    Dim mrName As String = "TestMR1"
    masterRecipe = batchManager.MasterRecipes().Item(mrName, 1)
    'Do something with the BatchMasterRecipe
End Sub
VBA

                  Public Sub test()
// Get a master recipe over its ID 
Set masterRecipe = thisProject.batchManager.MasterRecipes. ItemById (10)
//Get the data of a master recipe over its name
Set masterRecipe = thisProject.batchManager.MasterRecipes. ItemByName ("TestMR1")
//Get a master recipe over its index
Set masterRecipe = thisProject.batchManager.MasterRecipes.ItemByIndex(10)
'print text and approved time to debug window
Debug.Print ("ApprovedTime: " & masterrecipe.ApprovedTime)   
End Sub

Bu bölümdeki konular

Bu sayfa, COPA-DATA zenon 16 çevrimiçi yardımının Türkçe çevirisidir. Menü ve ayar adları, programdaki gibi bulmanız için İngilizce bırakılmıştır.