PdcNestingLineList.Count

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Count as long

Description

Returns the total count of Nesting lines

Notes

This property returns the number of lines for a nest

Code example

This code example returns the number of lines for a nest

    Dim Nest As PDCEXT.INesting
    Dim NestLineList As PDCEXT.INestingLineList

    Nest = PDC.App.MasterData.Nesting
    Nest.Read("00000001")
    NestLineList = Nest.NestingLineList
    MsgBox(NestLineList.Count)

    Try
      System.Runtime.InteropServices.Marshal.FinalReleaseComObject(NestLineList)
      System.Runtime.InteropServices.Marshal.FinalReleaseComObject(Nest)
      NestLineList= Nothing
      Nest = Nothing
    Catch ex As Exception
      NestLineList= Nothing
      Nest = Nothing
    Finally
      GC.Collect()
    End Try

Availability

Since PdC 5.4