Imposta il predecessore in MS Project usando Python

Questa breve guida descrive come impostare il predecessore in MS Project usando Python. Contiene informazioni su come configurare l’ambiente di sviluppo, un insieme di istruzioni di programmazione e codice di esempio per aggiungere un predecessore in Microsoft Project usando Python. Improvements to the sample code will also be discussed in order to create a custom output file MPP.

Steps to add predecessors in MS Project using Python

  1. Configure the environment by adding Aspose.Tasks for Python via .NET to create a predecessor activity.
  2. Apply the product license to generate the output in MPP format.
  3. Genera un nuovo project impostando la sua data di inizio e il nome
  4. Add more tasks to the project and assign the duration in days for each task
  5. Link several tasks in sequence, so that each task starts before the previous task has finished.
  6. Link multiple activities by adding a space between them.
  7. Save the project in MPP or any other supported format.
  8. Print each activity showing its predecessor and successor.

These steps describe adding the predecessor in the project plan using Python. Apply the license, create a new project, add some tasks, and set the duration of each task. Finally, link the tasks to other tasks using the finish-to-start TaskLinkType, add a lag between the tasks, and save the project to disk.

Code to set predecessors in MS Project using Python

This code describes the use of predecessor activities in project management using Python. È possibile controllare i giorni/ore lavorativi per i programmi assegnando esplicitamente un calendario predefinito a livello di progetto invece di fare affidamento sul calendario predefinito integrato. If you want to refer to activities in other projects, set the cross_project / cross_project_name properties on a link.

This guide teaches you how to work with predecessor and successor activities. To add milestone tasks in a project, refer to the article Add milestones in MS Project using Python.

 Italiano