Documentation Center

PslProject.Maintenance

Performs a project maintenance operation. I.e. it calculates project-wide references and relations.

Syntax

Expression.Maintenance (Mode as long) as Boolean

Expression Object of type PslProject

Mode Currently these maintenance operations are defined

pslMaintenanceCalcUnifiedReplicates Calculates unified replicates

pslMaintenanceCalcTransCounters Corrects the display in the project window, If an operation did not update the columns "Si ze" and "Translation"

Returns TRUE, if successful.

Example

' Imports all bitmaps from a folder to the current project
Sub Main
    Dim prj As PslProject
    Set prj = PSL.ActiveProject
    If prj Is Nothing Then Exit Sub
    prj.Maintenance(pslMaintenanceCalcUnifiedReplicates)
End Sub