<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns:mml = "http://www.w3.org/1998/Math/MathML" lang = "zh"><head><meta charset = "UTF-8"/><meta name = "copyright" content = "(C) 版权 2020"/><meta name = "DC.rights.owner" content = "(C) 版权 2020"/><meta name = "DC.type" content = "task"/><meta name = "abstract" content = "如果您在加载包含大量产品制造信息 (PMI) 的 Composer 文件（.smg 或 .smgXml）时面临性能相关问题，您可以使用 Composer PMI Remover 将 PMI 从指定文件中移除。这会帮助您缩短加载时间。"/><meta name = "description" content = "如果您在加载包含大量产品制造信息 (PMI) 的 Composer 文件（.smg 或 .smgXml）时面临性能相关问题，您可以使用 Composer PMI Remover 将 PMI 从指定文件中移除。这会帮助您缩短加载时间。"/><meta name = "DC.relation" scheme = "URI" content = "cps-c-Tools-PMIRemovalTool.htm#cps-c-Tools-PMIRemovalTool"/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "cps-t-Tools-PMIRemovalToolUse"/><meta name = "DC.language" content = "zh"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>使用 Composer PMI Remover</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "cps-t-Tools-PMIRemovalToolUse">
<a name = "hj-top"> </a><a name = "ix-&#xA;      "> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>使用 Composer PMI Remover</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3"><table class = "DocHeaderIntro" id = "table12"><tr><td class = "Intro1"><p class = "header"><p class = "abstract">
    <span class = "shortdesc">
      <span class = "ph">如果您在加载包含大量产品制造信息 (PMI) 的 Composer 文件（.smg 或 .smgXml）时面临性能相关问题，您可以使用 Composer PMI Remover 将 PMI 从指定文件中移除。这会帮助您缩短加载时间。</span>
    </span>

    
  </p>

</p></td></tr><tr><td class = "Intro2"><hr class = "header"/><span class = "run-in-beforeyoubegin">开始之前：</span>您的计算机上必须安装以下项：<ul class = "ul"><li class = "li">Windows Script Host：允许您运行脚本。<div class = "note"><span class = "run-in.note">注:
			</span><span class = "notecontent">它默认安装于 Windows 操作系统上。</span></div>
</li><li class = "li">Microsoft XML Core Services (MSXML) 3.0 或 6.0：允许一些应用程序构建基于 XML 的应用程序。<div class = "note"><span class = "run-in.note">注:
			</span><span class = "notecontent">如果您的计算机上安装了 Composer，则 MSXML 应作为操作系统先决条件的一部分已被安装。</span></div>
</li><li class = "li">7-zip：允许您解压 .smg 文件（.smgXml 文件无需解压）。<div class = "note"><span class = "run-in.note">注:
			</span><span class = "notecontent">你还可以从 http://www.7-zip.org 免费下载 7-zip。首选 64 位版本。</span></div>
</li></ul></td></tr></table></td><td class = "DocHeader2"><table class = "DocTopicsSeeAlso" id = "table13"><tr><td class = "TopicsTitle">另请参阅</td></tr><tr><td><a title = "Composer PMI Remover 作为 Composer 应用程序的外部工具提供。它为您提供将产品制造信息 (PMI) 从 Composer 文件中剥离的方法，该方法经常用于解决加载时的性能问题。" href = "cps-c-Tools-PMIRemovalTool.htm#cps-c-Tools-PMIRemovalTool">关于 Composer PMI Remover</a></td></tr></table></td></tr></table>
  

  
  <div class = "body taskbody">
    <div class = "p"><!--xxx--></div>

    <section><ol class = "ol steps"><li class = "li step stepexpand">
        打开一个命令提示符窗口，前往位于 Composer 安装目录中的 <span class = "ph filepath filepath">Tools\Composer_PMI_Remover</span> 文件夹。
      </li><li class = "li step stepexpand">
        运行 <kbd class = "ph userinput userinput">Composer_PMI_Remover "Path_to_Input_Folder" /o "Path_to_Output_Folder"</kbd>。下表中描述了所有可用参数。
        <p>
          <table class = "table"><caption/><colgroup><col style = "width:23.094688221709006%"/><col style = "width:23.094688221709006%"/><col style = "width:23.094688221709006%"/><col style = "width:30.71593533487298%"/></colgroup><thead class = "thead">
                <tr class = "row">
                  <th class = "entry" id = "cps-t-Tools-PMIRemovalToolUse__entry__1">参数</th>
                  <th class = "entry" id = "cps-t-Tools-PMIRemovalToolUse__entry__2">使用</th>
                  <th class = "entry" id = "cps-t-Tools-PMIRemovalToolUse__entry__3">描述</th>
                  <th class = "entry" id = "cps-t-Tools-PMIRemovalToolUse__entry__4">示例</th>
                </tr>
              </thead><tbody class = "tbody">
                <tr class = "row">
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__1">"Path_to_Input_Folder"</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__2">必需</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__3">包含待处理 Composer 文档 (.smg, .smgXml) 的文件夹的路径。</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__4">
                    <kbd class = "ph userinput userinput">Composer_PMI_Remover "C:\My Documents\Composer Data With PMI"</kbd>
                  </td>
                </tr>
                <tr class = "row">
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__1">/o "Path_to_Output_Folder"</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__2">可选（但建议选择）</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__3">已处理 Composer 文档（.smg、.smgXml）所在的文件夹的路径将被写入。已有文件将被覆盖。<table class = "Remark" id = "table132"><tr><td class = "Remark"><span class = "run-in.warning">警告:
				</span><span class = "notecontent">默认情况下，输出文件夹将被设置为输入文件夹，这意味着如果您未指定此参数，则输入文件将被覆盖。我们强烈建议您指定输出文件夹。</span></td></tr></table>
</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__4">
                    <kbd class = "ph userinput userinput">Composer_PMI_Remover "C:\My Documents\Composer Data With PMI" /o "C:\My Documents\Composer Data Without PMI" </kbd>
                  </td>
                </tr>
                <tr class = "row">
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__1">/f levelFrom</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__2">可选</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__3">产品结构树中的级别，从该级别开始 PMI 将被删除。根节点位于 0 级。通常，PMI 应在根节点下，因此其级别应为 1 或更高。<div class = "note collapse"><span class = "run-in.note">注:
    		</span><span class = "notecontent">默认情况下，从根节点开始，所有 PMI 均考虑在内。</span></div>
</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__4">
                    <kbd class = "ph userinput userinput">Composer_PMI_Remover "C:\My Documents\Composer Data With PMI" /o "C:\My Documents\Composer Data Without PMI" /f 2</kbd>
                  </td>
                </tr>
                <tr class = "row">
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__1">/t levelTo</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__2">可选</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__3">产品结构树中的级别，到此级别之前的 PMI 将被删除。 <div class = "note collapse"><span class = "run-in.note">注:
    		</span><span class = "notecontent">默认情况下，直到最后的子节点，所有 PMI 均考虑在内。</span></div>
</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__4">
                    <kbd class = "ph userinput userinput">Composer_PMI_Remover "C:\My Documents\Composer Data With PMI" /o "C:\My Documents\Composer Data Without PMI" /f 2 /t 5</kbd>
                  </td>
                </tr>
                <tr class = "row">
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__1">/7z "Path_to_7z.exe"</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__2">
                    <p>- 可能为 .smg 文件所需</p>
                    <p>- .smgXml 文件所不需要</p>
                  </td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__3">7z.exe 的路径（如需要）。<div class = "note collapse"><span class = "run-in.note">注:
    		</span><span class = "notecontent">当 7z.exe 已在您的计算机上正确安装时（即大多数情况下），无需指定此参数。如果尚未正确安装，则 Composer PMI Remover 无法找到 7z.exe。此时，系统仅处理 .smgXml 文件，并在命令提示符窗口中显示一则消息，通知您 .smg 文件已被跳过。要处理上述文件，您必须指定此参数。</span></div>
</td>
                  <td class = "entry" headers = "cps-t-Tools-PMIRemovalToolUse__entry__4">
                    <kbd class = "ph userinput userinput">Composer_PMI_Remover "C:\My Documents\SMG Data With PMI" /o "C:\My Documents\SMG Data Without PMI" /7z "C:\Program Files\7-Zip\7z.exe</kbd>
                  </td>
                </tr>
              </tbody></table>
        </p>
        <div class = "itemgroup stepresult">当操作结束时，命令提示符窗口显示有关您文档减少的文件大小的信息。</div>
      </li></ol></section>
  </div>

  <div class = "related-links"/>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
