PdcNesting.AddOperation: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == AddOperation(CalculationNo as String, LineNo as Integer, Operation as String, Quantity as Double, MultiMachine as Boolean, PartNo as Integer) as Boolean == ..."
 
 
(4 intermediate revisions by one other user not shown)
Line 8: Line 8:


== Parameters ==
== Parameters ==
Quantity : <br />
Calculationnumber
MultiMachine : <br />
 
PartNo : <br />
Line number
 
Operation name
 
Quantity in this nesting
 
MultiMachine
 
PartNo, sequence number in planning


== Code example ==
== Code example ==
Line 20: Line 28:
     Nest.Read("00000001")
     Nest.Read("00000001")
     Nest.AddOperation("00646",30,"LASER1",1,False,"PL0100St37")
     Nest.AddOperation("00646",30,"LASER1",1,False,"PL0100St37")
    Try
      System.Runtime.InteropServices.Marshal.FinalReleaseComObject(Nest)
      Nest = Nothing
    Catch ex As Exception
      Nest = Nothing
    Finally
      GC.Collect()
    End Try
</source>
</source>


== Availability ==
== Availability ==
Available since PdC 5.4
Available since PdC 5.4

Latest revision as of 07:01, 21 October 2020

Declaration

AddOperation(CalculationNo as String, LineNo as Integer, Operation as String, Quantity as Double, MultiMachine as Boolean, PartNo as Integer) as Boolean

Description

Adds an operation to the nesting object

Notes

Parameters

Calculationnumber

Line number

Operation name

Quantity in this nesting

MultiMachine

PartNo, sequence number in planning

Code example

    Dim Nest As PDCEXT.INesting

    Nest = PDC.App.MasterData.Nesting
    Nest.Read("00000001")
    Nest.AddOperation("00646",30,"LASER1",1,False,"PL0100St37")

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

Availability

Available since PdC 5.4