PdcProject.ProjectLineList
Jump to navigation
Jump to search
Declaration
ProjectLineList as PdcProjectLineList
Description
Through use of the projectlinelist, it's possible to add calculations to a project object.
Notes
Code example
This code example creates a new project, adds a new calculation to the projectlinelist, sets the production quantity of the projectline and sets a calculation object.
dim objProject
dim objProjectLine
dim objCalc
set objProject = pdc.projects.new
objProject.SetCustomerNo "12345"
objProject.Description = "Description"
set objProjectLine = objProject.ProjectLineList.AddNewCalculation
objProjectLine.ProductionQuantity = 100
set objCalc = objProjectLine.Calculation
objProject.Save
objProject.Show
This code example deletes the first projectline of the active project.
dim objProject
dim objProjectLineList
set objProject = pdc.projects.active
set objProjectLineList = objProject.ProjectLineList
objProjectLineList.Delete(0)
objProject.Save
objProject.Refresh
Availability
Available since February 2011 (From version 4.2 onwards).