function [status, errmsg] = checkPorts(blockH)
%

%   Copyright 2010 The MathWorks, Inc.

    status = true;
    errmsg = '';

    strPorts = Sldv.SubSystemExtract.getPorts(blockH);
    
    if ~isempty(strPorts.LConn) || ~isempty(strPorts.RConn)
        % Phys modSystem        
        errmsg = getString(message('Sldv:SubSysExtract:ExtractSubSysWithConnectPortNotSupported'));        
        status = false;        
    elseif ~isempty(strPorts.Ifaction)    
        % IfActionSystem
        errmsg = getString(message('Sldv:SubSysExtract:ExtractSubSysIfactionNotSupported'));
        status = false;            
    end
end