<?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 = "concept"/><meta name = "abstract" content = "元属性对话框允许您管理 CAD 元数据和用户定义的属性。"/><meta name = "description" content = "元属性对话框允许您管理 CAD 元数据和用户定义的属性。"/><meta name = "DC.format" content = "HTML5"/><meta name = "DC.identifier" content = "cps-c-ui-DialogBoxes-MetaProperties"/><meta name = "DC.language" content = "zh"/><link rel = "stylesheet" type = "text/css" href = "../DSDocUI_XML34.css"/><title>元属性</title>
<script type = "text/javascript" src = "../DSDocUI_Highlight34.js">
  	/* */
  	</script></head><body onLoad = "highlightSearchTerms();" id = "cps-c-ui-DialogBoxes-MetaProperties">
<a name = "hj-top"> </a><table class = "table1" id = "table11"><tr><td><table class = "DocHeader"><tr><td class = "DocHeader1" colspan = "2"><h1>元属性</h1></td></tr><tr><td class = "DocHeader4" colspan = "2"/></tr><tr><td class = "DocHeader3" colspan = "2"><table class = "DocThemeIntro" id = "table12"><tr><td class = "Intro1Only"><p class = "header"><p class = "abstract">
    <span class = "shortdesc">
      <span class = "keyword wintitle">元属性</span>对话框允许您管理 CAD 元数据和用户定义的属性。</span>

    <p>要显示此对话框，单击“属性”窗格工具栏中的<span class = "ph uicontrol">管理元属性</span><img class = "image" src = "../Icons3DVIA/I_CPSPropertiesAddMetadata.png"/>。</p>
    <p>将讨论以下主题：</p>
  </p>
<p>此页面讨论： </p><ul><li><a href = "#c-GeneralInformation" id = "toc_rg" title = "元属性与常规属性有一些类似之处。">常规信息</a></li><li><a href = "#c-Definition" id = "toc_rg" title = "">定义</a></li><li><a href = "#c-Property" id = "toc_rg" title = "">属性</a></li><li><a href = "#c-ExampleXMLDescription" id = "toc_rg" title = "以下示例显示了在 .smgXml 文件中定义的元属性定义。">示例 XML 描述</a></li></ul>
</p></td></tr></table></td></tr></table>
  

  
  <article class = "topic concept nested1" aria-labelledby = "ariaid-title2" id = "c-GeneralInformation">
    <h2 class = "title topictitle2">常规信息</h2>

    
    <div class = "body conbody"><p class = "abstract">
      <span class = "shortdesc">元属性与常规属性有一些类似之处。</span>

    </p>

      <ul class = "ul">
        <li class = "li">在“属性”窗格中查看和编辑元属性。CAD 元数据和用户定义的属性都已在<span class = "ph uicontrol">用户属性</span>下列出。</li>
        <li class = "li">根据需要在视图中更改元属性值，或者在动画期间更改元属性值。</li>
        <li class = "li">元属性定义和中性值存储在 Composer <span class = "ph filepath filepath">.smgXml</span> 文件中。视图和动画的元属性值分别存储在 <span class = "ph filepath filepath">.smgView</span> 和 <span class = "ph filepath filepath">.smgSce</span> 文件中。</li>
      </ul>
      <p>创建用户定义属性，以向产品添加补充信息。</p>
      <p>对于来自客户系统（例如 PLM 环境）的元数据，需要 Composer 集成来提取正确的元数据。创建 XML 文件来描述您的元属性（请参见下文 <a class = "xref" href = "cps-c-ui-DialogBoxes-MetaProperties.htm#c-ExampleXMLDescription" title = "以下示例显示了在 .smgXml 文件中定义的元属性定义。">示例 XML 描述</a>）。</p>
      <div class = "section" id = "c-GeneralInformation__cs-CreationofMetaProperties"><h3 class = "title sectiontitle">创建元属性</h3>
        
        <p>要创建元属性，请单击 <img class = "image" src = "../CpsUserImages/ProfileNew.png"/>。在<span class = "keyword wintitle">创建元属性</span>对话框中输入属性名称，然后单击<span class = "ph uicontrol">确定</span>。<div class = "note collapse"><span class = "run-in.note">注:
    		</span><span class = "notecontent">元属性必须具有 <span class = "ph filepath filepath">"Meta."</span> 前缀。在您从此对话框创建元属性时，前缀会自动添加。如果您创建 XML 以导入元属性，应确保属性名称以 <span class = "ph filepath filepath">"Meta."</span> 开头。</span></div>
</p>
      </div>

      <div class = "section" id = "c-GeneralInformation__cs-DeletionofMetaProperties"><h3 class = "title sectiontitle">删除元属性</h3>
        
        <p>要删除元属性，请单击 <img class = "image" src = "../CpsUserImages/ChoiceList.png"/>，选择要删除的元属性，单击 <img class = "image" src = "../CpsUserImages/ProfileDelete.png"/>，然后单击<span class = "ph uicontrol">是</span>。<table class = "Remark" id = "table132"><tr><td class = "Remark"><span class = "run-in.warning">警告:
				</span><span class = "notecontent">删除元属性会将该属性从所有角色中移除。</span></td></tr></table>
</p>
      </div>

    </div>

  </article>
  <article class = "topic concept nested1" aria-labelledby = "ariaid-title3" id = "c-Definition">
    <p><map name = "FPMap1"><area href = "#hj-top" title = "返回页面顶部" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title topictitle2">定义</h2>

    
    <div class = "body conbody"><p class = "abstract">
      <span class = "shortdesc">
        
      </span>

    </p>

      <table class = "table frame-none"><caption/><colgroup><col/><col/></colgroup><thead class = "thead">
            <tr class = "row">
              <th class = "entry" id = "c-Definition__entry__1">命令名称</th>
              <th class = "entry" id = "c-Definition__entry__2">描述</th>
            </tr>
          </thead><tbody class = "tbody">
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">名称</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">显示您正在创建的元属性的名称，或者您通过单击 <img class = "image" src = "../CpsUserImages/ChoiceList.png"/> 选择的现有元属性的名称。<div class = "notes collapse"><span class = "run-in.notes">注:
    		</span><span class = "notecontent"><ul class = "ul"><li class = "li">元属性名称只能包含拉丁字母数字字符。</li><li class = "li">您无法修改现有元属性的定义。在您选择现有元属性时，所有字段均为只读。</li><li class = "li">对于以 CGM 格式生成且符合 S1000D 4.x 标准的技术图解，<span class = "ph filepath filepath">CGM_ApplicationStructureIdent</span>、<span class = "ph filepath filepath">CGM_ApplicationStructureName</span>、<span class = "ph filepath filepath">CGM_Id</span> 和 <span class = "ph filepath filepath">CGM_hotspotTitle</span> 将为热点元素的相应属性指定用于 XML 辅助文件的值。请参见 <a class = "xref" href = "cps-r-Workshops-TechnicalIllustration.htm#r-OptionsTab" title = "“选项”选项卡允许您管理输出页面格式、CGM 选项和 Tech Illustrator 选项。">“选项”选项卡</a>。</li></ul></span></div>
</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">标签</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">指定元属性的名称，不带 <span class = "ph filepath filepath">"Meta."</span> 前缀。<div class = "note"><span class = "run-in.note">注:
			</span><span class = "notecontent">标签对应于使用元属性时（“属性”窗格、工作间等），在 Composer 中所显示的文本。对于此标签，可以使用非拉丁字母数字字符。</span></div>
</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">类型</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">指定属性数据类型，类型决定了您可以分配属性的值。选择下列内容之一：<ul class = "ul"><li class = "li"><span class = "ph uicontrol">字符串</span></li><li class = "li"><span class = "ph uicontrol">Bool</span>（布尔型，true 或 false）</li><li class = "li"><span class = "ph uicontrol">Int</span>（整数）</li><li class = "li"><span class = "ph uicontrol">Float</span>（浮点数）</li><li class = "li"><span class = "ph uicontrol">日期</span></li><li class = "li"><span class = "ph uicontrol">颜色</span></li></ul></td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">可动</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">允许元属性在动画期间更改。“属性”窗格利用 <img class = "image" src = "../CpsUserImages/PropertyCannotAnimate.png"/> 标记无法以动画方式显示的属性<img class = "image" src = "../CpsUserImages/PropertyCannotAnimate.png" title = "Cannot Animate"/>。</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">可合并</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">指定属性是可合并的。清除后，Composer 将隐藏具有不同属性值的合并角色的属性。</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">可视</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">在“属性”窗格中显示属性。</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">单位</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">（在<span class = "ph uicontrol">类型</span>为 <span class = "ph uicontrol">Int</span> 或 <span class = "ph uicontrol">Float</span> 时可用）指定整数和浮点数属性的单位。</td>
            </tr>
            <tr class = "row">
              <td class = "entry" headers = "c-Definition__entry__1">
                <span class = "ph uicontrol">边界</span>
              </td>
              <td class = "entry" headers = "c-Definition__entry__2">（在<span class = "ph uicontrol">类型</span>为 <span class = "ph uicontrol">Int</span> 或 <span class = "ph uicontrol">Float</span> 时可用）为整数和浮点数属性指定最小 (<span class = "ph uicontrol">Min</span>) 和最大 (<span class = "ph uicontrol">Max</span>) 值。</td>
            </tr>
          </tbody></table>
    </div>

  </article>
  <article class = "topic concept nested1" aria-labelledby = "ariaid-title4" id = "c-Property">
    <p><map name = "FPMap1"><area href = "#hj-top" title = "返回页面顶部" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title topictitle2">属性</h2>

    
    <div class = "body conbody"><p class = "abstract">
      <span class = "shortdesc">
        
      </span>

    </p>

      <table class = "table frame-none"><caption/><colgroup><col/><col/></colgroup><thead class = "thead">
            <tr class = "row">
              <th class = "entry" id = "c-Property__entry__1">命令名称</th>
              <th class = "entry" id = "c-Property__entry__2">描述</th>
            </tr>
          </thead><tbody class = "tbody">
            <tr class = "row">
              <td class = "entry" headers = "c-Property__entry__1">
                <span class = "ph uicontrol">在选定对象中包含元属性</span>
              </td>
              <td class = "entry" headers = "c-Property__entry__2">将新元属性添加到所选角色。</td>
            </tr>
          </tbody></table>
    </div>

  </article>
  
  <article class = "topic concept nested1" aria-labelledby = "c-ExampleXMLDescription__example" id = "c-ExampleXMLDescription">
    <p><map name = "FPMap1"><area href = "#hj-top" title = "返回页面顶部" shape = "rect" coords = "416, 0, 435, 10"/></map><span class = "itemsprite"/></p><h2 class = "title topictitle2">示例 XML 描述</h2>

    
    <div class = "body conbody"><p class = "abstract">
      <span class = "shortdesc">以下示例显示了在 <span class = "ph filepath filepath">.smgXml</span> 文件中定义的元属性定义。</span>

    </p>

      <p>
        <div class = "note collapse"><span class = "run-in.note">注:
    		</span><span class = "notecontent">元属性名称必须具有 <span class = "ph filepath filepath">Meta.</span> 前缀。</span></div>

      </p>
      <p>
        <span class = "ph filepath filepath">&lt;Server Type="PropertyDefinitions"&gt;</span>
        <span class = "ph filepath filepath">&lt;MetaProperties&gt;</span>
        <span class = "ph filepath filepath">&lt;Meta Name="Meta.Description" Type="String" DefaultLabel="Description" Mergeable="1" AnimAble="1" VizAble="1" VizOrder="-1"/&gt;</span>
        <span class = "ph filepath filepath">&lt;Meta Name="Meta.PartNumber" Type="String" DefaultLabel="PartNumber" Mergeable="1" AnimAble="1" VizAble="1" VizOrder="-1"/&gt;</span>
        <span class = "ph filepath filepath">&lt;Meta Name="Meta.Revision" Type="String" DefaultLabel="Revision" Mergeable="1" AnimAble="1" VizAble="1" VizOrder="-1"/&gt;</span>
        <span class = "ph filepath filepath">&lt;/MetaProperties&gt;</span>
        <span class = "ph filepath filepath">&lt;/Server&gt;</span>
        <span class = "ph filepath filepath">......</span>
        <span class = "ph filepath filepath">......</span>
        <span class = "ph filepath filepath">&lt;Actor.Name Value="F0189-CAGE-E1.1"/&gt;</span>
        <span class = "ph filepath filepath">&lt;Meta.PartNumber Value=</span>
        <kbd class = "ph userinput userinput">"67725"
</kbd>
        <span class = "ph filepath filepath">/&gt;</span>
        <span class = "ph filepath filepath">&lt;Meta.Revision Value="</span>
        <kbd class = "ph userinput userinput">1.a</kbd>
        <span class = "ph filepath filepath">"/&gt;</span>
      </p>
      <p>您也可以在单独的 <span class = "ph filepath filepath">.smgMeta</span> 文件中存储元属性定义，以便重复使用。例如，<span class = "ph filepath filepath">.smgXml</span> 文件可以参考元属性定义文件：<span class = "ph filepath filepath">&lt;Server Type="PropertyDefinitions" FileName="metas.smgMeta"/&gt;</span>，其中 <span class = "ph filepath filepath">metas.smgMeta</span> 包含： <span class = "ph filepath filepath">&lt;MetaProperties&gt;</span><span class = "ph filepath filepath">&lt;Meta Name="Meta.Description" Type="String" DefaultLabel="Description" Mergeable="1" AnimAble="1" VizAble="1" VizOrder="-1"/&gt;</span><span class = "ph filepath filepath">&lt;Meta Name="Meta.PartNumber" Type="String" DefaultLabel="PartNumber" Mergeable="1" AnimAble="1" VizAble="1" VizOrder="-1"/&gt;</span><span class = "ph filepath filepath">&lt;Meta Name="Meta.Revision" Type="String" DefaultLabel="Revision" Mergeable="1" AnimAble="1" VizAble="1" VizOrder="-1"/&gt;</span><span class = "ph filepath filepath">&lt;/MetaProperties&gt;
</span></p>
      <div class = "note collapse"><span class = "run-in.note">注:
    		</span><span class = "notecontent">数据路径机制用于查找外部元属性文件。请参见 <a class = "xref" href = "cps-c-cu-ApplicationPreferences-DataPaths.htm#cps-c-cu-ApplicationPreferences-DataPaths" title = "数据路径是用于查找资源（例如文件、配置文件和链接）的排序路径列表。如果找不到资源的相对路径，应用程序将使用数据路径来解析外部参考。">数据路径</a>。</span></div>

    </div>

  </article>
</td></tr></table><script type = "text/javascript" src = "../DSDocUI_Bottom34.js">/* */</script></body>
</html>
