PdcNestingLineList.Count

From External Bemet Wiki
Revision as of 10:08, 24 July 2018 by Mike (talk | contribs) (Created page with "== 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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