Execute Macro Routines automatically on AVEVA P&ID Initialization
- Last UpdatedJan 30, 2025
- 1 minute read
The procedure can be used to execute macro routines automatically on AVEVA P&ID initialization.
-
Open the AVEVA P&ID main application and select the Visual Basic Editor option in the Applications Group of the Options tab.
-
Using the project browser, navigate to and open the rules module.

-
Select the sub routine Public Sub AcadStartup()

-
Any code implemented under this subroutine is executed automatically when application starts up.
Related Links
- CheckDrawingDateTimeStamp Macro
- CheckForInconsistenciesAtTeeConnections Macro
- ExecuteSQLProcedure Macro
- PrintDrawingHistorySilent and PrintDrawingHistory Macros
- GetMemoryUsage Macro
- CheckDwgDateTimeStamp Macro
- SetPresentationUsingForm Macro
- SetPresentationUsingFluidMapValues Macro
- ExportDrawingFromDatabase Macro
- RefreshEquipmentTypeDescription Macro
- DrawTempClonePipeLines Macro
- ExportInstrumentIO Macro
- UpdateDrawingIntoSQLDatabase Macro
- CreateDSMappingFileTemplate Macro
- UpdateValveClassDescription Macro
- UpdateValveTagFlag Macro
- BatchGenerator.show vbModeless Macro
- Lock or Unlock Drawings Macro
- Rename Drawings Macro
- Synchronize and Consolidate Drawings Macro
- Detect Duplicated Specialty Piping Items Tags at Project Database
- Copy Attribute Data within or between Datasets