padv.util.forceReanalyzeProject
R2026bReanalyze project and log analysis events
Description
Add-On Required: This feature requires the CI/CD Automation for Simulink Check add-on.
padv.util.forceReanalyzeProject() forces a reanalysis of the
current project by creating backups of the existing artifact database
(artifacts.dmr), clearing the existing project analysis, and
reanalyzing the project.
The function also logs project analysis events, which can help with troubleshooting persistent project analysis issues. Note that when you run the function, the function closes and reopens the project.
The function creates backup files and detailed logs in the derived
folder in the project and creates a ZIP file containing these artifacts for further
analysis. The files include:
artifacts_no_update.dmr.bak— Backup of the digital thread file before updateartifacts_update.dmr.bak— Backup of the digital thread file after updateartifacts_new.dmr.bak— Backup of the digital thread file after reanalysisdt_Event_Log.txt— Event log filedetailed_logs.txt— Detailed log filelogs.zip— ZIP file containing the above files
Note
You should only use the function
padv.util.forceReanalyzeProject when there are unexpected project
analysis issues. When you clear the existing project analysis file, you might
permanently lose important information, including the UUIDs that the digital thread
assigned to artifacts in your project. Reanalyzing a project might take some time to
complete. The digital thread file in the derived folder might be used
by other project users and if you use other tools that use the digital thread, you might
need to re-run the metrics in those tools.
For general task and result cleanup, use runprocess instead.
The runprocess function has name-value arguments,
Clean and DeleteOutputs, that you can use to
clean task results and delete task outputs. For information, see runprocess.