Project

Project class

Represents a project.

The Project is a central class in the Aspose.Tasks library.

One can use Project to read one of supported project management formats: MPP, MPT, MPX, XML.

To load an existing document in any of the supported formats, pass a file name or a stream into one of the Project constructors. To create a blank project, call the parameterless constructor.

Use one of the Save method overloads to save the project in any of the Aspose::Tasks::Saving::SaveFileFormat formats: Primavera: P6 XML, PM XER; Microsoft Excel: XLSX, XML; Fixed Layout: PDF; Images: JPEG, PNG, BMP, TIFF, SVG; Text: TXT; Others: HTML.

The Project stores project-wide information such as Aspose::Tasks::Project::Views , Aspose::Tasks::Project::BuiltInProps , Aspose::Tasks::Project::CustomProps , and Aspose::Tasks::Project::ExtendedAttributes . Most of these objects are accessible via the corresponding properties of the Project class.

The Project is a root entity that contains entry points to manipulate other project entities, such as Aspose::Tasks::Task , Aspose::Tasks::Resource , Aspose::Tasks::ResourceAssignment , Aspose::Tasks::ExtendedAttribute and Aspose::Tasks::Calendar .

The Project entities can be accessed via typed collections, for example Aspose::Tasks::Task::Children , Aspose::Tasks::Project::Resources , Aspose::Tasks::Project::ResourceAssignments , etc.

Constructors

NameDescription
Project (13 overloads)Initializes a new instance of the Project class.

Methods

NameDescription
CopyTo (2 overloads)Copies project’s main data and properties to another project.
EnumerateAllChildTasksRecursively enumerates all project’s tasks including root task.
GetReturns the value to which the property is mapped in this container.
get_ActualsInSyncGets a value indicating whether ActualsInSync is set or not.
get_AdminProjectGets a value indicating whether AdminProject is set or not.
get_AreEditableActualCostsGets a value indicating whether AreEditableActualCosts is set or not.
get_AuthorGets a value of Author.
get_AutoAddNewResourcesAndTasksGets a value indicating whether AutoAddNewResourcesAndTasks is set or not.
get_AutoCalculateAssignmentCostsGets whether assignment cost and remaining cost should be auto calculated using assignment’s work and resource rates.
get_AutolinkGets a value indicating whether Autolink is set or not.
get_BaselineForEarnedValueGets a value of BaselineForEarnedValue.
get_BuiltInPropsGets project’s built-in properties collection.
get_CalculationModeGets calculation mode of a project. Can be one of the values of CalculationMode enumeration.
get_CalendarGets a value of Calendar .
get_CalendarsGets CalendarCollection object of this Project instance.
get_CategoryGets a value of Category.
get_CommentsGets a value of Comments.
get_CompanyGets a value of Company.
get_CreationDateGets a value of CreationDate.
get_CriticalPathGets a collection which contains a list of Critical tasks which comprise Critical Path of this project.
get_CriticalSlackLimitGets a value of CriticalSlackLimit.
get_CurrencyCodeGets a value of CurrencyCode.
get_CurrencyDigitsGets a value of CurrencyDigits.
get_CurrencySymbolGets a value of CurrencySymbol.
get_CurrencySymbolPositionGets a value of CurrencySymbolPosition.
get_CurrentDateGets a value of CurrentDate.
get_CustomDateFormatGets a value of CustomDateFormat.
get_CustomPropsGets project’s custom properties collection.
get_DateFormatGets a value of DateFormat.
get_DaysPerMonthGets a value of DaysPerMonth.
get_DefaultFinishTimeGets a value of DefaultFinishTime.
get_DefaultFixedCostAccrualGets a value of DefaultFixedCostAccrual.
get_DefaultOvertimeRateGets a value of DefaultOvertimeRate.
get_DefaultStandardRateGets a value of DefaultStandardRate.
get_DefaultStartTimeGets a value of DefaultStartTime.
get_DefaultTaskEVMethodGets a value of DefaultTaskEVMethod.
get_DefaultTaskTypeGets a value of DefaultTaskType.
get_DefaultViewGets default view of the project.
get_DefaultWeekWorkingDaysGets the instance of WeekDayCollection class which represents a collection of project default week working days and working times.
get_DisplayOptionsGets an instance of the ProjectDisplayOptions class.
get_DurationFormatGets a value of DurationFormat.
get_EarnedValueMethodGets a value of EarnedValueMethod.
get_ExtendedAttributesGets ExtendedAttributeDefinitionCollection object. The collection of extended attribute (custom fields) definitions associated with a project.
get_ExtendedCreationDateGets a value of ExtendedCreationDate.
get_FinishDateGets a value of FinishDate.
get_FiscalYearStartGets a value indicating whether FiscalYearStart is set or not.
get_FyStartDateGets a value of FyStartDate.
get_GuidGets a value of Guid.
get_HonorConstraintsGets a value indicating whether HonorConstraints is set or not.
get_HyperlinkBaseGets a value of HyperlinkBase.
get_InsertedProjectsLikeSummaryGets a value indicating whether InsertedProjectsLikeSummary is set or not.
get_KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduledGets a value indicating whether KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled is set or not.
get_KeywordsGets a value of Keywords.
get_LastAuthorGets a value of LastAuthor.
get_LastPrintedGets a value of LastPrinted.
get_LastSavedGets a value of LastSaved.
get_ManagerGets a value of Manager.
get_MicrosoftProjectServerURLGets a value indicating whether MicrosoftProjectServerURL is set or not.
get_MinutesPerDayGets a value of MinutesPerDay.
get_MinutesPerWeekGets a value of MinutesPerWeek.
get_MoveCompletedEndsBackGets a value indicating whether MoveCompletedEndsBack is set or not.
get_MoveCompletedEndsForwardGets a value indicating whether MoveCompletedEndsForward is set or not.
get_MoveRemainingStartsBackGets a value indicating whether MoveRemainingStartsBack is set or not.
get_MoveRemainingStartsForwardGets a value indicating whether MoveRemainingStartsForward is set or not.
get_MultipleCriticalPathsGets a value indicating whether MultipleCriticalPaths is set or not.
get_NameGets a value of Name.
get_NewTasksAreManualGets a value indicating whether NewTasksAreManual is set or not.
get_NewTasksEffortDrivenGets a value indicating whether NewTasksEffortDriven is set or not.
get_NewTasksEstimatedGets a value indicating whether NewTasksEstimated is set or not.
get_NewTaskStartDateGets a value of NewTaskStartDate.
get_OleObjectsGets a collection containing the instances of the OleObject class which are linked or embedded to this project file.
get_OutlineCodesGets OutlineCodeDefinitionCollection object. The collection of outline code definitions associated with a project.
get_PrimaveraPropertiesGets an object containing Primavera-specific properties for a project read from Primavera file.
get_ProjectExternallyEditedGets a value indicating whether ProjectExternallyEdited is set or not.
get_RemoveFilePropertiesGets a value indicating whether RemoveFileProperties is set or not.
get_ResourceAssignmentsGets ResourceAssignmentCollection object.
get_ResourceFiltersGets all the resource-based filter definitions. ResourceFilters is a collection of Filter objects.
get_ResourceGroupsGets all of the resource-based group definitions. ResourceGroups is a collection of Group objects.
get_ResourcesGets ResourceCollection object.
get_RevisionGets a value of Revision.
get_RootTaskGets the root of the tree of tasks.
get_SaveVersionGets a value of SaveVersion.
get_ScheduleFromStartGets a value indicating whether ScheduleFromStart is set or not.
get_ShowProjectSummaryTaskGets a value indicating whether ShowProjectSummaryTask is set or not.
get_SplitsInProgressTasksGets a value indicating whether SplitsInProgressTasks is set or not.
get_SpreadActualCostGets a value indicating whether SpreadActualCost is set or not.
get_SpreadPercentCompleteGets a value indicating whether SpreadPercentComplete is set or not.
get_StartDateGets a value of StartDate.
get_StatusDateGets a value of StatusDate.
get_SubjectGets a value of Subject.
get_TablesGets a list of Table objects.
get_TaskFiltersGets all the task-based filter definitions. TaskFilters is a collection of Filter objects.
get_TaskGroupsGets all the task-based group definitions. TaskGroups is a collection of Group objects.
get_TaskLinksGets TaskLinkCollection object.
get_TaskUpdatesResourceGets a value indicating whether TaskUpdatesResource is set or not.
get_TemplateGets a value of Template.
get_TimescaleFinishGets a value of TimescaleFinish.
get_TimescaleStartGets a value of TimescaleStart.
get_TitleGets a value of Title.
get_UidGets a value of Uid.
get_UpdateManuallyScheduledTasksWhenEditingLinksGets a value indicating whether UpdateManuallyScheduledTasksWhenEditingLinks is set or not.
get_VbaProjectGets an instance of VbaProject class.
get_ViewsGets a list of View objects.
get_WBSCodeDefinitionGets WBS Code Definition for the project.
get_WeekStartDayGets a value of WeekStartDay.
get_WorkFormatGets a value of WorkFormat.
GetBaselineSaveTimeReturns the baseline save time.
GetDuration (3 overloads)Gets Duration object with the specified number of units and default duration format which is defined in project’s settings Prj::DurationFormat .
GetPageCount (7 overloads)Returns page count for the project to be rendered using default Timescale (Days).
GetPredecessorsReturns a collection of task links which are predecessors of the specified task.
GetProjectFileInfo (2 overloads)Gets project file info from the stream.
GetWorkGets Duration object with the specified double value and default work format.
Recalculate (2 overloads)Reschedules all project tasks ids, outline levels, start/finish dates, sets early/late dates, calculates slacks, work and cost fields.
RecalculateResourceFieldsRecalculates Id, Start and Finish of resources.
RecalculateResourceStartFinishRecalculates Start and Finish of resources.
RemoveInvalidResourceAssignmentsEliminates invalid resource assignments from the project resource assignments list.
RenumberWBSCode (2 overloads)Renumber WBS code of all tasks.
RescheduleUncompletedWorkToStartAfter (2 overloads)Reschedules uncompleted project work to start after a specified date.
Save (5 overloads)Saves the project to a stream using the specified save options.
SaveAsTemplate (4 overloads)Saves the project as a template to a specified stream.
SaveReport (4 overloads)Saves the project overview report to the stream.
SelectAllChildTasksRecursively collects all child tasks of the root task.
Set (2 overloads)Maps the specified property to the specified value in this container.
set_ActualsInSyncSets a value indicating whether ActualsInSync is set or not.
set_AdminProjectSets a value indicating whether AdminProject is set or not.
set_AreEditableActualCostsSets a value indicating whether AreEditableActualCosts is set or not.
set_AuthorSets a value of Author.
set_AutoAddNewResourcesAndTasksSets a value indicating whether AutoAddNewResourcesAndTasks is set or not.
set_AutoCalculateAssignmentCostsSets whether assignment cost and remaining cost should be auto calculated using assignment’s work and resource rates.
set_AutolinkSets a value indicating whether Autolink is set or not.
set_BaselineForEarnedValueSets a value of BaselineForEarnedValue.
set_CalculationModeSets calculation mode of a project. Can be one of the values of CalculationMode enumeration.
set_CalendarSets a value of Calendar .
set_CategorySets a value of Category.
set_CommentsSets a value of Comments.
set_CompanySets a value of Company.
set_CreationDateSets a value of CreationDate.
set_CriticalSlackLimitSets a value of CriticalSlackLimit.
set_CurrencyCodeSets a value of CurrencyCode.
set_CurrencyDigitsSets a value of CurrencyDigits.
set_CurrencySymbolSets a value of CurrencySymbol.
set_CurrencySymbolPositionSets a value of CurrencySymbolPosition.
set_CurrentDateSets a value of CurrentDate.
set_CustomDateFormatSets a value of CustomDateFormat.
set_DateFormatSets a value of DateFormat.
set_DaysPerMonthSets a value of DaysPerMonth.
set_DefaultFinishTimeSets a value of DefaultFinishTime.
set_DefaultFixedCostAccrualSets a value of DefaultFixedCostAccrual.
set_DefaultOvertimeRateSets a value of DefaultOvertimeRate.
set_DefaultStandardRateSets a value of DefaultStandardRate.
set_DefaultStartTimeSets a value of DefaultStartTime.
set_DefaultTaskEVMethodSets a value of DefaultTaskEVMethod.
set_DefaultTaskTypeSets a value of DefaultTaskType.
set_DefaultViewSets default view of the project.
set_DurationFormatSets a value of DurationFormat.
set_EarnedValueMethodSets a value of EarnedValueMethod.
set_ExtendedCreationDateSets a value of ExtendedCreationDate.
set_FinishDateSets a value of FinishDate.
set_FiscalYearStartSets a value indicating whether FiscalYearStart is set or not.
set_FyStartDateSets a value of FyStartDate.
set_GuidSets a value of Guid.
set_HonorConstraintsSets a value indicating whether HonorConstraints is set or not.
set_HyperlinkBaseSets a value of HyperlinkBase.
set_InsertedProjectsLikeSummarySets a value indicating whether InsertedProjectsLikeSummary is set or not.
set_KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduledSets a value indicating whether KeepTaskOnNearestWorkingTimeWhenMadeAutoScheduled is set or not.
set_KeywordsSets a value of Keywords.
set_LastAuthorSets a value of LastAuthor.
set_LastPrintedSets a value of LastPrinted.
set_LastSavedSets a value of LastSaved.
set_ManagerSets a value of Manager.
set_MicrosoftProjectServerURLSets a value indicating whether MicrosoftProjectServerURL is set or not.
set_MinutesPerDaySets a value of MinutesPerDay.
set_MinutesPerWeekSets a value of MinutesPerWeek.
set_MoveCompletedEndsBackSets a value indicating whether MoveCompletedEndsBack is set or not.
set_MoveCompletedEndsForwardSets a value indicating whether MoveCompletedEndsForward is set or not.
set_MoveRemainingStartsBackSets a value indicating whether MoveRemainingStartsBack is set or not.
set_MoveRemainingStartsForwardSets a value indicating whether MoveRemainingStartsForward is set or not.
set_MultipleCriticalPathsSets a value indicating whether MultipleCriticalPaths is set or not.
set_NameSets a value of Name.
set_NewTasksAreManualSets a value indicating whether NewTasksAreManual is set or not.
set_NewTasksEffortDrivenSets a value indicating whether NewTasksEffortDriven is set or not.
set_NewTasksEstimatedSets a value indicating whether NewTasksEstimated is set or not.
set_NewTaskStartDateSets a value of NewTaskStartDate.
set_ProjectExternallyEditedSets a value indicating whether ProjectExternallyEdited is set or not.
set_RemoveFilePropertiesSets a value indicating whether RemoveFileProperties is set or not.
set_RevisionSets a value of Revision.
set_SaveVersionSets a value of SaveVersion.
set_ScheduleFromStartSets a value indicating whether ScheduleFromStart is set or not.
set_ShowProjectSummaryTaskSets a value indicating whether ShowProjectSummaryTask is set or not.
set_SplitsInProgressTasksSets a value indicating whether SplitsInProgressTasks is set or not.
set_SpreadActualCostSets a value indicating whether SpreadActualCost is set or not.
set_SpreadPercentCompleteSets a value indicating whether SpreadPercentComplete is set or not.
set_StartDateSets a value of StartDate.
set_StatusDateSets a value of StatusDate.
set_SubjectSets a value of Subject.
set_TaskUpdatesResourceSets a value indicating whether TaskUpdatesResource is set or not.
set_TemplateSets a value of Template.
set_TimescaleFinishSets a value of TimescaleFinish.
set_TimescaleStartSets a value of TimescaleStart.
set_TitleSets a value of Title.
set_UidSets a value of Uid.
set_UpdateManuallyScheduledTasksWhenEditingLinksSets a value indicating whether UpdateManuallyScheduledTasksWhenEditingLinks is set or not.
set_WBSCodeDefinitionSets WBS Code Definition for the project.
set_WeekStartDaySets a value of WeekStartDay.
set_WorkFormatSets a value of WorkFormat.
SetBaseline (2 overloads)Saves baseline fields to the specified baseline for the entire project.
SetBaselineSaveTimeSets the baseline save time.
UpdateProjectWorkAsComplete (2 overloads)Updates all work as complete through a specified date for the entire project.