PdcNestingLineList.Count: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
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..."
 
 
Line 34: Line 34:


== Availability ==
== Availability ==
Since PdC 5.4

Latest revision as of 10:09, 24 July 2018

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