%   Copyright 2019-2021 The MathWorks, Inc.
function autoblkHevP3Start(varargin)    
    [projectFolder, ~, topLevelProjectRoot] = matlab.internal.project.example.projectDemoSetUp( ...
        fullfile(matlabroot,'toolbox','autoblks', 'autosolution','HEVP3.zip'),...
        char(varargin), false);
    
    project=openProject(fullfile(projectFolder, 'SI'));
    project.removeFile('Plant/SiDLEngine.slx');
    project.removeFile('Plant/SiEngineCoreV.slx');
    project.removeFile('Plant/SiEngineCoreVNA.slx');
    project.removeFile('Plant/SiEngine.slx');
    project.removeFile('Plant/SiEngineCoreVThr2.slx');
    project.close;
    
    delete(fullfile(projectFolder,['SI' filesep 'Plant' filesep 'SiDLEngine.slx']));
    delete(fullfile(projectFolder,['SI' filesep 'Plant' filesep 'SiEngineCoreV.slx']));
    delete(fullfile(projectFolder,['SI' filesep 'Plant' filesep 'SiEngineCoreVNA.slx']));
    delete(fullfile(projectFolder,['SI' filesep 'Plant' filesep 'SiEngine.slx']));
    delete(fullfile(projectFolder,['SI' filesep 'Plant' filesep 'SiEngineCoreVThr2.slx']));
        
    openProject(topLevelProjectRoot);
    open_system('HevP3ReferenceApplication');
    autoblkCommonExampleStart('HEVP3');
end
