This short tutorial explains how to open the file XER in Python. Include dettagli sulla configurazione dell’IDE, un elenco di passaggi e codice di esempio per sviluppare un visualizzatore di file XER in Python. Vengono inoltre discussi vari attributi del compito principale e le proprietà opzionali rilevanti di Primavera in questo articolo.
Steps for XER Reader in Python
- Prepara l’ambiente di sviluppo aggiungendo Aspose.Tasks for Python via .NET
- Set the product license to unlock all features.
- Load the source XER file into the class object Project.
- Iterate through all the tasks and sub‑tasks of the project.
- Stampa le proprietà di ogni attività secondo i requisiti
- Check if any activity has the Primavera-specific properties
- Print all Primavera properties, such as activity ID, type, and various types of constraints, in it.
The steps provided describe how to open an XER file without Primavera in Python. Import the required library into the application, load the license, load the XER file into the Project object, and recursively collect all the tasks from it. View the task’s properties, check for the existence of Primavera properties, and display the relevant properties if found.
Codice per XER Viewer in Python
Questo codice dimostra lo sviluppo di un visualizzatore Primavera P6 XER in Python. Questa libreria supporta i metadati di Primavera a livello di progetto insieme alle proprietà a livello di attività che possono essere accessibili e visualizzate. It is possible to view each activity level in the project using the outline_level value.
Questo articolo ci ha mostrato il processo per leggere e stampare i dati del file XER. To convert an MPP file to HTML, see the article Convert MPP to HTML in Python.