%   Copyright 2018-2021 The MathWorks, Inc.
function autoblkHevP1Start(varargin)    
    [projectFolder, ~, topLevelProjectRoot] = matlab.internal.project.example.projectDemoSetUp( ...
        fullfile(matlabroot,'toolbox','autoblks', 'autosolution','HEVP1.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('HevP1ReferenceApplication');
    autoblkCommonExampleStart('HEVP1');
end
