ManufacturingKnowledge

Administering manufacturing publish

Example: creating a customized publish role

The following is an example plugin.xml file for adding a new Teamcenter publish role named Fnd0MyPersonalRole. The Teamcenter publish wrapper extension point requires both a role and a view. The plug-in must define both. The view must be added to a Teamcenter menu. This example shows adding the view as an entry to the Open With menu command where the current Work Instruction menu command exists.

Copy

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
 <extension
        point="com.teamcenter.rac.vns.viewDef">       
      <view alwaysUseSetRootInputObject="true" 
          id="com.myCompany.viewId" 
          selectionInPrimaryEffectsInvisbleSecondary="false" 
            selectionInSecondaryEffectsPrimary="false">
            <viewType type="secondary"></viewType>
        </view>           
    </extension>
 <extension
        point="org.eclipse.ui.views">          
       <view allowMultiple="true" 
          category="com.teamcenter.rac.aifrcp.manufacturingCategory" 
          class="com.teamcenter.rac.cme.tcpublishwrapper.PublishingPageView" 
          icon="icons/workinstructions_view_16.png" 
          id="com.myCompany.viewId" 
          name="%viewId.VIEW">
      </view>
   </extension>
   <extension
         point="com.teamcenter.rac.cme.tcpublishwrapper.publishingPageViewRoles">
      <viewRoleType
          tcPublishRole="Fnd0MyPersonalRole"
          viewId="com.myCompany.viewId">
      </viewRoleType>
   </extension>
   <extension
          point="com.teamcenter.rac.aifrcp.openWithViewMenuDef">
       <menuItem groupId="secondary" 
          icon="icons/workinstructions_view_16.png" 
          label="%viewId.VIEW" 
          viewId="com.myCompany.viewId">
          <visibleWhen>
              <and>
                  <count value="1"/>
                  <iterate ifEmpty="false" operator="and">
                  <with variable="rac_command_suppression">
                      <not>
                          <iterate operator="or">
                              <equals value="com.teamcenter.rac.openWith"/>
                          </iterate>
                      </not>
                  </with>
                  <adapt type="com.teamcenter.rac.kernel.TCComponent">
                      <test 
                          property="com.teamcenter.rac.kernel.TCComponent.typeClass" 
                          value="ImanItemBOPLine,BOMLine,CfgAttachmentLine,MEActivity"/>                        
                  </adapt>
                  </iterate>
              </and>
          </visibleWhen>
      </menuItem>
    </extension>
</plugin>

Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.plm00260/id1286472 · retrieved 2026-07-11