Deploying Tcme
Deploying Tcme
Teamcenter
Mechatronics
Engineering 4.1
Deploying
Teamcenter
Mechatronics
Engineering
PLM00189 • 4.1
Contents
How the Behavior Modeling Tool objects are represented in Teamcenter . . . . . . . . . . . . . A-1
Behavior Modeling objects and relations             .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   A-1
GT-POWER objects . . . . . . . . . . . . . .        .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   A-2
System Modeling Workbench objects . .               .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   A-2
Magic Draw objects . . . . . . . . . . . . . .      .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   A-2
•   Manage additional model data such as test results, reference data, and documentation in
    Teamcenter.
• Access the models saved in Teamcenter from the model authoring tools.
•   Reuse models by organizing them in your enterprise model library using the Teamcenter
    Classification application.
The framework provided by Teamcenter Mechatronics Engineering is called the Model Management
Gateway framework. This is a generic integration framework and can integrate with any behavior
modeling tool and provides the following features, which are required for integrating any modeling
tool with Teamcenter:
•   Establish connections with Teamcenter, including SSO
• Define the mapping of external tool artifacts with Teamcenter business objects
            Note
            If you are using Active Workspace in the hosted mode, the behavior modeling commands
            are hidden.
• Client
  The server module consists of the SOAs, business logic, and data models. These data models
  can be extended for specific modeling tools.
  The client module consists of Java APIs, extensions, and connectors. The client can be Rich Client or
  Active Workspace. The Java APIs interact with Teamcenter SOAs.
  The connector resides in the modeling tools and exchanges data between the modeling tool and
  Teamcenter. The data that is exchanged is mapped using a file called the integration definition
  file. This is an XML file that specifies:
  •     Mapping of modeling tool objects to Teamcenter objects
  If you are using the common connector-based integration, you need not specify the mapping in
  the integration definition file.
In this integration mode, a tool-specific connector is used to import model data into Teamcenter.
This connector reads the integration definition file to decide the type of data to be imported into
Teamcenter. The following data is saved to Teamcenter based on the configuration.
•   The model file corresponding to the model is associated to the model item revision as
    IMAN_specification.
•   A snapshot of the model is saved as an image and associated to the model item revision as
    TC_Attaches.
•   All the files that the model is dependent on are imported as multiple datasets with each
    dataset corresponding to one file. Each dataset is associated to the model revision as
    Bhm0AssociatedData.
•   If a configuration is provided in the integration definition file of a modeling tool to import all the
    files from specified folders, all these files are imported as individual datasets and associated to
    the model item revision based on the configured relation.
•   If a tool integration is configured to capture the model hierarchy and its components, all the
    configured components are saved in Teamcenter as separate business objects. These are
    associated to the model revision object either through the BOM View Revision or through the
    relation Bhm0HasComponents.
•   If there are any model properties mapped to Teamcenter business object attributes in the
    integration definition file, the values of these model properties are stored in the respective
    attributes in the model object in Teamcenter.
This integration mode provides a limited integration of the modeling tool with Teamcenter. In this
mode, all the model files files in the operating system from a specific context folder are identified
based on a configuration. These model files are then saved to Teamcenter as a model object. Only
the model files are associated to these objects through the IMAN_specification relation. No other
features of the connector-based integration mode are available.
•   If this is the first time you are installing Mechatronics Engineering, do the following:
    o    Install a new Mechatronics Engineering patch on a Teamcenter platform.
    o    For Simulink integration, install the Mechatronics Engineering server and client features on a
         4-tier or 2-tier Teamcenter server and client.
    o    For Simcenter Amesim integration, install the Mechatronics Engineering server features.
         Simcenter Amesim integration requires Active Workspace as well as Simcenter Amesim
         configurations.
    o    Analysis Request Programming Interfaces are used by the Simcenter System Synthesis tool.
         You must also install the Simcenter System Synthesis server components.
•   If you already have Mechatronics Engineering, you can update your existing Teamcenter
    Mechatronics Engineering to a new version.
•   If you only need to push changes from your modeling tool to the Teamcenter server and do
    not need the rich client features on your machine, you can install only the simulink integration
    your machine.
When applying patches, the order of applying patches matters. First apply the Teamcenter patch,
then the Active Workspace patch, and then the Mechatronics Engineering patch.
For example, if your existing environment consists of Teamcenter 11.5, Active Workspace 4.0, and
Mechatronics Engineering 4.0 and you want to upgrade to Teamcenter 11.5.0.5, Active Workspace
4.0.3, and Mechatronics Engineering 4.0.4, apply the patch in the following order:
Teamcenter > Active Workspace > Mechatronics Engineering
  2. If any server managers are running on the corporate server to be patched, shut them down
     before proceeding with the patch.
  4. In the Media Locations panel, specify the locations of the base Teamcenter and the Mechatronics
     Engineering install files and click Next.
        •     In the Backup directory box, type or browse to the location where you wish to create the
              backup files and click Next.
7. The Status Message window informs you that TEM will stop any running Teamcenter services in
   order to perform the update. Once the update is completed, these services will be restarted. Any
   users currently on the system will be logged out.
    Click Close.
8. In the Teamcenter Administrative User panel, type the user password and click Next.
4. In the Old Configuration panel, select the corporate server configuration and click Next.
5. In the Feature Maintenance panel, select Add/Remove Features and click Next.
  7. In the Features panel, expand Extensions→Model Management and select the Mechatronics
     Engineering features you wish to include.
  8. To install the server components on a server, under Model Management, expand Server and
     select:
        •     Gateway for modeling to install the common behavior modeling framework.
        •     Magic Draw Integration to install the Magic Draw UML SysML data model.
              To install this option, you must also choose the Gateway for modeling option.
To install this option, you must also choose the Gateway for modeling option.
    •    LMS System Synthesis Modeling to install the Simcenter System Synthesis data model.
         To install this option, you must also choose the Gateway for modeling option.
9. To install Analysis Request Programming Interface, choose the options depending on your
   Teamcenter platform as follows:
    a. If the Teamcenter platform is 10.x, under Extensions, expand Product Line Engineering
       and select Analysis Request Programming Interface.
    b. If the Teamcenter platform is 11.x, under Extensions, expand Systems Driven Product
       Development and select Analysis Request Programming Interface.
11. In the Teamcenter Administrative User panel, type the user password and click Next.
2. If any server managers are running on the corporate server to be patched, shut them down
   before proceeding with the patch.
3. In the Media Locations panel, specify the locations of the base Teamcenter and the
   Mechatronics Engineering install files.
4. Click Next.
        •     In the Backup directory box, type or browse to the location where you wish to create the
              backup files.
• Click Next.
  8. The Optional Configuration Enhancements panel informs you of the enhancements that
     can be installed.
        a. Click View Enhancement Info for more information about the enhancements.
9. In the Teamcenter Administrative User panel, type the user password and click Next.
11. If you receive a message that the TC_DATA directory is not updated, you must manually update
    the directory as follows:
    a. Create backups of your current TC_DATA directories.
b. Extract the platform\tc\data.zip file from the temporary location you created in step 1.
    c.   Copy the extracted contents of the data.zip file to your TC_DATA directories, overwriting
         existing files.
2. From GTAC, download and extract the contents of the Mechatronics Engineering patch zip file
   TcMErelease_Tcrel-num_platform.zip to any folder.
3. Launch Teamcenter Environment Manager from the Teamcenter patch kit. For example, launch
   Teamcenter Environment Manager from the 10.1.4 install directory.
    b. Teamcenter patch location and the Mechatronics Engineering install file location in the
       Update Location list.
6. Click Next.
  8. In the Features panel, expand Extensions→Model Management, expand Client, and select:.
        •     Gateway for modeling to install the common framework components on the client.
        •     LMS System Synthesis Modeling to install the Simcenter System Synthesis integration
              connector.
              To install this option, you must also choose the Gateway for modeling option.
9. Click Next.
        b. In the Staging Directory box, type or browse to the location where models downloaded from
           Teamcenter are stored, for example, C:\StagingDir\MATLAB
Post-install steps
After installing the Behavior Modeling client, you must update the mmgenv.bat file.
Install only the Behavior Modeling client for Simcenter Amesim and Simcenter
System Synthesis integration
Simcenter Amesim and SystemSynthesis integration requires a 32-bit Teamcenter Mechatronics
Engineering client. Before you install Simcenter Amesim and Simcenter SystemSynthesis integration:
•   Ensure that the correct JRE environment variables are set as follows:
    o    The JRE_HOME variable should point to a 32-bit JRE installation.
2. From GTAC, download and extract the contents of the appropriate Mechatronics Engineering
   patch zip file (TcMErelease_Tcrel-num_platform.zip) to any folder.
    Ensure that the Mechatronics Engineering kit you download is 32-bit.
3. Launch Teamcenter Environment Manager (TEM) from the Teamcenter patch kit. For example,
   launch TEM from the install directory.
    b. Specify the Teamcenter patch location and the 32-bit Mechatronics Engineering install file
       location in the Update Location list
c. Click Next.
8. Click Next till you reach the Teamcenter Mechatronics Engineering Common Client panel.
9. In the Teamcenter Mechatronics Engineering Common Client panel, type the connection URL.
• Use GDE elements or their subtypes to map to other elements such as traceability.
•   You can associate the following behavior types between a container and its contents:
    o    BVR
         Represents heirarchical or structure data. This behavior is used for artifacts such as
         Simulink models that are independent entities. When such models are saved to Teamcenter,
         an occurence model with the top line as the container artifact object and child lines
         corresponding to the component objects of that container are created in Teamcenter.
    o    GRM
         Represents associations or relations (equivalent to aggregation). This behavior is defined
         for artifacts such as Simulink libraries that are containers of various reusable components.
         A relationship is established between the container and its components, using the GRM
         object and its corresponding rules.
    o    type
         Represents the top-level element or container of the external tool, such as a model or a library.
    o    behaviorType
         Represents how the container is saved in Teamcenter. Use either BVR or GRM.
              Use BVR to represent heirarchical data such as models, and use GRM to represent relational
              data such as libraries.
        o     tctype
              Represents the Teamcenter object that maps to the container object of the external tool.
  •     BHMElement
        Represents the components of a specific container.
              <BHMElement type="RootModel" tctype="Bhm0BehaviorModl">
        o     tctype
              Represents the Teamcenter object that maps to the container object of the external tool.
        o     reftype
              Represents the root model or the base type of the container.
You can specify the attribute mappings in the AttributeMappings section of the BHMElement.
              Note
              All components of a container support only hierarchical (BVR) behavior. For example, the
              contents of a SubSystem block type of MATLAB Simulink are saved as BVR although the
              container is configured as GRM.
Mapping Simcenter System Synthesis data to Teamcenter using the integration definition file
  You can map Teamcenter business objects to the artifacts of Simcenter System Synthesis,
  using the Simcenter System Synthesis integration definition file. The file is named
  SSM_TCMEIntegrationDefinition.xml, and its format is similar to the format of the integration
  definition file.
  The data mapping in the Simcenter System Synthesis integration definition file is defined using
  the following elements:
  •     ObjectMapping
        Used for mapping to the top-level elements or containers such as AbstractSynthesis.
              <ObjectMapping type="AbstractSynthesis">
o type
•   SSMElement
    Defines the mappings between Simcenter System Synthesis and Teamcenter objects.
    o    tctype
         Represents the Teamcenter object type.
    You can specify how the attributes map in the AttributeMappings section of the SSMElement.
    For example, you can map attributes of the Dictionary element to Teamcenter properties
    by updating the following attributes:
    o    tcattr
         Specifies the name of the Teamcenter property.
    o    name
         Specifies the name of the Simcenter System Synthesis attribute.
    If you have a custom object, the required properties for the inputs must be defined in the
    Attribute Mappings section.
•   FileMap
    Defines the mapping between Teamcenter datasets and Simcenter System Synthesis datasets.
         <FileMapping>
           <FileMap fileExt="zip" tcDatasetType="Ssm0SimDictionaryDataset"
        o     fileExt
              Specifies the file extension of the dataset, for example, zip. You can find the value of the
              extension from the References tab of the dataset business object in Business Modeler IDE.
        o     tcDatasetType
              Specifies the Teamcenter dataset type.
        o     type
              Specifies the Simcenter System Synthesis file type.
        o     tcNameReferencedType
              Specifies the named reference type. You can find the value of the named reference from the
              References tab of the dataset business object in Business Modeler IDE.
  •     RelationMapping
        Specifies the relations to create between primary and secondary objects when creating or
        updating Simcenter System Synthesis objects in Teamcenter.
              <RelationMapping primaryType = "Ssm0SimModel"
              secondaryType="Bhm0ModelCompRevision" relationType="Ssm0ModelCompRelation"/>
        o     primaryType
              Specifies the Teamcenter primary object type.
        o     secondaryType
              Specifies the Teamcenter secondary object type.
        o     relationType
              Specifies the Teamcenter relation type.
                    Note
                    When creating relations between Simcenter System Synthesis objects and Simcenter
                    Amesim or MATLAB objects, the attribute secondaryType must match the Teamcenter
                    business object type used for Simcenter Amesim or MATLAB integration.
                    For example, if MATLAB uses the Bhm0SubSystem type for SubSystem, the
                    secondary type must be Bhm0SubSystemRevision.
2. Check out the dataset and download the named reference and update the file.
4. Log on to the Simcenter System Synthesis integration client to use the updated configuration.
Map Simcenter Amesim data to Teamcenter using the integration definition file
You can map Teamcenter business objects to the artifacts of Simcenter Amesim by updating the
Simcenter Amesim integration definition file. The file is named AMESIM_BHM_INT_DEF_FILE, and
its format is similar to the format of the integration definition file.
         Note
         If you have defined custom behavior modeling objects in Teamcenter and the default
         values of these objects are mandatory, you must map the attributes to Simcenter Amesim
         objects using the integration definition file.
2. Check out the dataset and download the named reference and update the file.
4. Log on to the Simcenter Amesim integration client to use the updated configuration.
For information about configuring the Simcenter Amesim integration with Teamcenter, see the
Simcenter Amesim help collection.
         Note
         If you have defined custom behavior modeling objects in Teamcenter and the default
         values of those objects are mandatory, you must map the attributes to MADe objects
         using the integration definition file.
2. Check out the dataset and download the named reference and update the file.
Map Magic Draw data to Teamcenter using the integration definition file
  You can map Teamcenter business objects to the artifacts of MagicDraw by updating the MagicDraw
  integration definition file. The file is named MagicDraw_BHM_INT_DEF_FILE, and its format is
  similar to the format of the integration definition file.
            Note
            If you have defined custom behavior modeling objects in Teamcenter and the default
            values of those objects are mandatory, you must map the attributes to MagicDraw objects
            using the integration definition file.
2. Check out the dataset and download the named reference and update the file.
  You can map Teamcenter business objects to the artifacts of GT-POWER by updating the GT-POWER
  integration definition file. The file is named GTPOWER_BHM_INT_DEF_FILE, and its format is
  similar to the format of the integration definition file.
            Note
            If you have defined custom behavior modeling objects in Teamcenter and the default
            values of those objects are mandatory, you must map the attributes to GT-POWER objects
            using the integration definition file.
2. Check out the dataset and download the named reference and update the file.
Map System Modeling Workbench data to Teamcenter using the integration definition file
You can map Teamcenter business objects to the artifacts of System Modeling Workbench by
updating the SYSML integration definition file. The file is named SYSML_BHMIntegrationDefinition,
and its format is similar to the format of the integration definition file.
         Note
         If you have defined custom behavior modeling objects in Teamcenter and the default
         values of these objects are mandatory, you must map the attributes to System Modeling
         Workbench objects using the integration definition file.
2. Check out the dataset and download the named reference and update the file.
4. Log on to the System Modeling Workbench integration client to use the updated configuration.
•   Create an integration definition file that contains the mapping information between the modeling
    tool types and Teamcenter types. If an integration already exists, for example, the MATLAB
    Simulink integration, you need not create an integration definition file. You can modify the
    existing one.
Update the project definition file with information about the modeling tool file types
1. In the Teamcenter rich client, search for and check out the dataset
   PROJECT_BHM_INT_DEF_FILE.
2. Update the named reference file in the dataset by adding information about the moeling tool and
   its file extension in the ToolFileMapping section as follows:
         <ToolFileMapping>
           <ToolFileMap toolType="MATLAB" fileExtension="mdl"/>
           <ToolFileMap toolType="MATLAB" fileExtension="slx"/>
           <ToolFileMap toolType="<CUSTOMTOOLTYPE>" fileExtension=
           "<Extsion of file specific to tool>"/>
         </ToolFileMapping>
  Create an integration definition file that contains mapping information between the modeling
  tool types and Teamcenter types
  1. Create an XML file named CUSTOMTOOLTYPE_BHMIntegrationDefinition.xml.
  3. If you are modifying an existing integration definition file, update the name attribute of the
     ConnectorClass.
5. Use the command line operation to import and export the model data.
      tcNameReferencedType=
      "supported teamcenter dataset names reference for file extension" />
      <FileMap fileExt="*" tcDatasetType=
      "supported teamcenter dataset for generic file e.g MISC"
      tcNameReferencedType=
      "supported teamcenter dataset names reference for file extension
      e.g. MISC_TEXT" />
    </FileMapping>
  </PrimaryDataFileMapping>
  <FileMapping><!--additional mapping for File-->
 <FileMap fileExt="txt" tcDatasetType="Text" tcNameReferencedType="Text" />
 <FileMap fileExt="png" tcDatasetType="Image" tcNameReferencedType="Image" />
 <FileMap fileExt="html" tcDatasetType="HTML" tcNameReferencedType="HTML" />
 <FileMap fileExt="jpg" tcDatasetType="JPEG" tcNameReferencedType="JPEG_Reference" />
 <FileMap fileExt="zip" tcDatasetType="Zip" tcNameReferencedType="ZIPFILE" />
 <FileMap fileExt="tif" tcDatasetType="TIF" tcNameReferencedType="TIF_Reference" />
 <FileMap fileExt="gif" tcDatasetType="GIF" tcNameReferencedType="GIF_Reference" />
 <FileMap fileExt="*" tcDatasetType="MISC" tcNameReferencedType="MISC_TEXT" />
  </FileMapping>
  <Extensions>
  </Extensions>
  <Operations>
  </Operations>
</BHMIntegration>
• Add the following entries to the servlet section of the web.xml file:
    <servlet>
      <servlet-name>TcMELauncherServlet</servlet-name>
      <servlet-class>com.siemens.splm.clientfx.tcmeproxies.server.TCMELauncherServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
      <servlet-name>TcMELauncherServlet</servlet-name>
      <url-pattern>/tcmelauncher/*</url-pattern>
    </servlet-mapping>
         <location path="tcmelauncher/fnd0branch">
           <system.webServer>
             <handlers>
               <add name="TcmeLauncherhandler" verb="*" path="*"
               type="com.siemens.splm.clientfx.tcmenetproxies.Launcher.TcmeLauncherhandler,
               TcmeLauncherHandler" />
             </handlers>
           </system.webServer>
         </location>
         <location path="tcmelauncher/Mat0Model">
           <system.webServer>
             <handlers>
               <add name="TcmeLauncherhandler" verb="*" path="*" type="com.siemens.splm.
               clientfx.tcmenetproxies.Launcher.TcmeLauncherhandler, TcmeLauncherHandler" />
             </handlers>
           </system.webServer>
         </location>
  Client configurations
  After clicking the downloaded file in the browser, define the following registry entries:
  The examples described here are specific to the Simcenter Amesim tool.
  1. Define the MIME Type. This specifies the dataset name corresponding to each tool. For example,
     for Simcenter Amesim, use il0amesim.
            [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application\il0amesim]
            "Extension"=".tcamexml"
2. Define the command to be executed. The key must start with the dataset name of the file.
    The value of the command is the executable, batch, or script to be executed when you click
    the downloaded file.
         [HKEY_CLASSES_ROOT\il0amesimfile]
         [HKEY_CLASSES_ROOT\il0amesimfile\shell]
         [HKEY_CLASSES_ROOT\il0amesimfile\shell\open]
         @="&open"
         [HKEY_CLASSES_ROOT\ il0amesimfile \shell\open\command]
         @="<Path of AMESIM executable>\\amesim.exe\"%1\""
         [HKEY_CLASSES_ROOT\.tcamexml]
         "Content Type"="application/il0amesim"
         @="il0amesimfile"
Alternatively, you can import the registry changes through the regedit application as follows:
1. Create a file and provide a name, such as AMESimLauncher.reg.
2. Paste the following lines to the file and save the AMESimLauncher.reg file:
         [HKEY_CLASSES_ROOT\il0amesimfile]
         [HKEY_CLASSES_ROOT\il0amesimfile\shell]
         [HKEY_CLASSES_ROOT\il0amesimfile\shell\open]
         @="&open"
         [HKEY_CLASSES_ROOT\ il0amesimfile\shell\open\command]
         @="<Path of AMESIM executable>\\amesim.exe\"%1\""
         [HKEY_CLASSES_ROOT\.tcamexml]
         "Content Type"="application/il0amesim"
         @="il0amesimfile"
         A default analysis configuration file is created whenever an analysis definition object is created.
         You can replace or remove the configuration file if necessary. However, you must validate a
         new file against the specified XML schema.
         An example of the required format follows:
                 Example
                 For adding the Analysis Request Revision object and its properties, add the following
                 lines to the file:
               Example
               To add a PDF type, update the source attribute of objectSet as a comma-separated
               entry:
               Crt1AnalysisRequestOutProvider.Text,
               Crt1AnalysisRequestOutProvider.PDF
Classifying models
•   Create a library for reusing models, using the Classification Admin application.
    Classify the models in the library, using the Classification application.
    For information about creating libraries, see Classification Admin in the Teamcenter help
    collection.
    For information about classifying models, see Classification in the Teamcenter help collection.
•   To configure which classification libraries that appear in Teamcenter integration dialog boxes of
    the modeling tool application, update the Bhm0FilterEntriesForBehaviorModl preference.
Example
DefaultContextFolder=D:\\Models\\MyModelRoot
• Target folder: Update the value of the DefaultTargetFolder with the target folder location.
Example
DefaultTargetFolder=D:\\Staging\\DefaultTargetFolder
  The default context folder allows you to specify a common parent folder under which all models
  and model folders are organized. The context folder is used during the initial save, import, and
  add operations.
   ParentFolder
       Folder 1
           Folder 1.1
               Topmodel.mdl
           Folder 1.2
               Submodel_1.mdl
           Folder 1.3
               Submodel_2.mdl
Suppose that the context folder is set as D:\ParentFolder and you save the contents of Folder
1.1 to Teamcenter. Teamcenter picks up the context folder information and organizes the saved
model file as follows:
If you do not specify a context folder, the files are organized based on the parent folder.
The default target folder defines the folder hierarchy of the models in the staging directory. The target
folder is used during the save as, new save, and revise operations.
As an example, consider that your staging directory is C:/Staging and you intend to download the
models inside the directory Parent Level/MidLevel/Car/PT/Engines. When you open a model, the
model is downloaded to the staging-directory at C:/Staging/Parent Level/MidLevel/Car/PT/Engines.
You can also specify the target folder when performing the operations mentioned above. If you do
not specify the target folder, the existing behavior continues, that is, the models are saved in the
Staging-directory/model-name_itemid_revisionid folder.
How the folder where models are downloaded are calculated based on context and target
folders?
The location where your model files are downloaded are calculated based on the values of the
default context folder and default target folder. The path where the models are downloaded is the
concatenation of the target folder and the context folder.
Result folder=Target-folder+Context-folder
             Example
             Assume that your Simulink models are located in the following directory structure
             D:\models\ContextExample\Level1\Level2\Level3\Level4 and your staging directory
             is located in D:\staging . The following table shows where the models are downloaded
             based on how you set up the context and target folders:
Example
MATLAB.CacheDir="D:\Apps\MatlabCacheDir"
    OR
    ToolName.CacheDir="%environment-variable%\folder-location-on-the-client-machine".
Example
MATLAB.CacheDir="%TC_ROOT%\D:\Apps\MatlabCacheDir"
Add the following entries to the Windows registry to enable branch console:
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/fnd0branch]
"Extension"=".bnv"
[HKEY_CLASSES_ROOT\.bnv]
"Content Type"="application/fnd0branch"
@="fnd0branchfile"
[HKEY_CLASSES_ROOT\fnd0branchfile]
[HKEY_CLASSES_ROOT\fnd0branchfile\shell]
[HKEY_CLASSES_ROOT\fnd0branchfile\shell\open]
@="&open"
[HKEY_CLASSES_ROOT\fnd0branchfile\shell\open\command]
@="<TC_ROOT>\\bhm\\openInConsole.bat \"%1\""
Add the following entries to the Windows registry to enable the merge functionality:
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/fnd0branchMerge]
"Extension"=".mrg"
[HKEY_CLASSES_ROOT\.mrg]
"Content Type"="application/fnd0branchMerge"
@="fnd0branchfileMerge"
[HKEY_CLASSES_ROOT\fnd0branchfileMerge]
[HKEY_CLASSES_ROOT\fnd0branchfileMerge\shell]
[HKEY_CLASSES_ROOT\fnd0branchfileMerge\shell\open]
@="&open"
[HKEY_CLASSES_ROOT\fnd0branchfileMerge\shell\open\command]
@="<TC_ROOT>\\bhm\\mergeBranchNodes.bat \"%1\""
  To enable the opening of modeling tools from Active Workspace, perform the following Teamcenter
  client configurations:
1. After clicking the downloaded file in the browser, define the following registry entries:
         The examples described here are specific to the Simcenter Amesim tool.
         Define the MIME Type. This specifies the dataset name corresponding to each tool. For example,
         for Simcenter Amesim, use il0amesim.
             [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application\il0amesim]
             "Extension"=".tcamexml"
2. Define the command to be executed. The key must start with the dataset name of the file.
         The value of the command is the executable, batch, or script to be executed when you click
         the downloaded file.
             [HKEY_CLASSES_ROOT\il0amesimfile]
             [HKEY_CLASSES_ROOT\il0amesimfile\shell]
             [HKEY_CLASSES_ROOT\il0amesimfile\shell\open]
             @="&open"
             [HKEY_CLASSES_ROOT\ il0amesimfile \shell\open\command]
             @="<Path of AMESIM executable>\\amesim.exe\"%1\""
             [HKEY_CLASSES_ROOT\.tcamexml]
             "Content Type"="application/il0amesim"
             @="il0amesimfile"
  After installing the Behavior Modeling client on your machine, you must ensure that the mmgenv.bat
  file is updated with information about Teamcenter variables.
         set TC_ROOT=location-of-TC_ROOT
         set MATLAB_ROOT=location-of-MATLAB_ROOT
         set FMS_HOME=location-of-FMS_HOME
Example
               set TC_ROOT=D:\apps\Siemens\TcMEPostEAP
               set MATLAB_ROOT=D:\apps\MATLAB\R2016a
               set FMS_HOME=D:\Apps\Siemens\TcMEPostEAP\tccs
2. Delete the javaclasspath.txt file located in the TC_ROOT/bhm/scripts directory, if the file exists.
    •    TC_ROOT/bhm/matlab/load.bat
         When you upgrade MATLAB Simulink from a 32-bit to a 64-bit version, the MATLAB_ROOT
         variable must point to the 64-bit version.
•   TC_ROOT/bhm/matlab/load.bat
    When you upgrade MATLAB Simulink from a 32-bit to a 64-bit version, the MATLAB_ROOT
    variable must point to the 64-bit version.
Example
  Alternatively, you can register the MATLAB Simulink version as an Automation Server in Windows
  before explicitly triggering the open operation by running the command described previously.
  For registering MATLAB as an Automation Server in Windows, see the MATLAB help documentation
  from Mathworks.
            Caution
            Modifying the integration definition file changes the behavior of the integration. Proceed
            with extreme caution.
  The name of the integration definition file is TOOL NAME_ BHMIntegrationDefinition.xml, for
  example, MATLAB_BHM_INT_DEF_FILE.xml.
  Teamcenter downloads this file to a temporary location during runtime. The file is created in the
  Teamcenter database during installation. Only Teamcenter administrators can modify this file.
  For more information about modifying the file, see Modify the integration definition file.
        <OrganizationData>
          <Folder name="MODELFOLDER" tcRelation=""/>
          <Folder name="const" tcRelation="IMAN_requirement"/>
          <Folder name="image" tcRelation="IMAN_reference"/>
          <Folder name="extern" tcRelation="IMAN_reference"/>
          <Folder name="simdata" tcRelation="IMAN_requirement"/>
        </OrganizationData>
  •     MODELFOLDER is a keyword that identifies any folder containing model files corresponding
        to the models to be managed in Teamcenter.
  •     tcRelation specifies the relation with which the files from the corresponding folders are
        associated with the model object.
  •     Folder name specifies the folders whose contents must be saved to Teamcenter and attached to
        the model object, using the relation specified by the tcRelation attribute.
        For example, const, image, extern, and simdata refer to folders whose content must be saved
        along with the model.
• If you do not specify any relation for the folders, the default relation IMAN_Reference is used.
Siemens PLM Software recommends that you not use the XML structure with the MODELFOLDER
element if the top model and all its submodels are organized in the same folder. If you use the
MODELFOLDER element, the model files are also associated as configuration data.
For configuring folder image files, such as .jpg or .png files, avoid using the relations
Thumbnail, IMAN_manifestation, IMAN_specification, IMAN_Rendering, IMAN_Motion, or
IMAN_3D_snap_shot.
If the configured image files are associated with the relations described previously, the preview
image of the model is not consistent.
         Caution
         Modifying the integration definition file changes the behavior of the integration. Proceed
         with extreme caution.
         Note
         You must update the integration definition file when you upgrade to a new version of
         Teamcenter. Teamcenter does not automatically update this file.
         Update the original integration file with the new entries mentioned in the new integration
         definition file.
         In the Teamcenter Mechatronics Engineering install kit, this file is available in the
         Install_ROOT/tc/matlabint_install.zip directory.
Teamcenter provides an integration definition file, which maps the modeling tool objects, attributes,
and file types to the corresponding Teamcenter objects.
The name of the integration definition file is TOOL NAME_ BHMIntegrationDefinition.xml, for
example, MATLAB_BHM_INT_DEF_FILE.xml.
Teamcenter downloads this file to a temporary location during runtime. The file is created in the
Teamcenter database during installation. Only Teamcenter administrators can modify this file.
To modify this file:
1. From My Teamcenter, search for the dataset MATLAB_BHM_INT_DEF_FILE.
3. In the Named References dialog box, select the integration definition file, and click the
   Download button.
4. Export the file, make the desired changes, and save the file.
5. In the Named References dialog box, click the button to delete the existing file.
6. Click the Upload button and import the modified integration definition file.
                 Caution
                 Do not change the name of the file.
1       Create an Operations section that acts as a container for all overridden behaviors.
        For each integration operation you want to modify, create an Operation section. The Operation
2
        section has two attributes, namely, the Operation Id and name.
        The Operation Id specifies the unique identifier of the operation, for example,
3
        com.teamcenter.bhm.model.save, for saving a new model.
4       In the name attribute, specify the name for the operation.
5       In the Operations section, add a Property element that contains two attributes.
        The name attribute specifies that the property is used to override actions. Its value must always
6
        be user_actions_override.
        The Value attribute specifies the name of a preference. This preference denotes an action
        that must be overridden. For example, the NAVIGATE_CLASSIFICATION_TREE preference
7
        denotes if a user can navigate the classification tree. These preferences are not available by
        default and must be created by the administrator.
        These preferences can have one of the following values:
        •   NEVER
            Specifies that the action must never be allowed. The user interface entries for the action
            will be disabled.
        •   ALWAYS
    8
            Specifies that the action must be allowed. The user interface entries for the action will be
            intialized with the desired state and then disabled.
        •   DEFAULT
            Specifies the default value on the user interface corresponding to the user action. The user
            interface remains enabled so that the default values can be changed. The default value
            may not be applicable to all user actions.
• Open a model
• Insert a model
                                                                                           Default
               Preference name           NEVER         ALWAYS          DEFAULT
                                                                                         behavior
                                      Disables                                         Manual entry
                                      manual entry                                     and auto
                                      or auto                                          assigning
    ENTER_ITEM_INFO                   assigning     NA               NA                of item ID,
                                      of item ID,                                      revision ID,
                                      revision ID,                                     and name is
                                      and name.                                        enabled.
                                      Disables the
                                                                                       Users can
                                      ability to
                                                                                       assign files
                                      assign files
                                                                                       and folders
    ADDITIONAL_DATA                   or folders to NA               NA
                                                                                       to model data
                                      model objects
                                                                                       as additional
                                      as additional
                                                                                       data.
                                      data.
                                                    Only files can
                                                    be assigned
                                                    to model data
                                      Disables the                   Enables the       Files and
                                                    as additional
                                      ability to                     ability to        folders can
                                                    data. The
                                      assign files                   add files to      be assigned
    ADDITIONAL_DATA_FILE                            ability to add
                                      to model data                  models as         to models
                                                    a folder to
                                      as additional                  additional        as additional
                                                    models as
                                      data.                          data.             data.
                                                    additional
                                                    data is
                                                    disabled.
                                                                                                              Default
                    Preference name                           NEVER         ALWAYS           DEFAULT
                                                                                                             behavior
                                                                           Only files can
                                                                           be assigned
                                                                           to model data
                                                           Disables the                     Enables the    Files and
                                                                           as additional
                                                           ability to                       ability to     folders can
                                                                           data. The
                                                           assign files                     add files to   be assigned
        ADDITIONAL_DATA_FILE                                               ability to add
                                                           to model data                    models as      to models
                                                                           folders to
                                                           as additional                    additional     as additional
                                                                           models as
                                                           data.                            data.          data.
                                                                           additional
                                                                           data is
                                                                           disabled.
                                                           Disables the
                                                                                                           Files
                                                           ability to
                                                                                                           associated
                                                           remove files
                                                                                                           with the
                                                           associated
        ADDITIONAL_DATA_REMOVE                                             NA               NA             model data
                                                           with the
                                                                                                           as additional
                                                           model data
                                                                                                           data can be
                                                           as additional
                                                                                                           removed.
                                                           data.
                                                           Disables the
                                                                                                           Files
                                                           ability to
                                                                                                           associated
                                                           overwrite files
                                                                                                           with the
                                                           associated
        ADDITIONAL_DATA_OVERWRITE                                          NA               NA             model data
                                                           with the
                                                                                                           as additional
                                                           model data
                                                                                                           data can be
                                                           as additional
                                                                                                           overwritten.
                                                           data.
                                                                                                          The check
                                                                                                          box to
                                                                          Models and        The check     check in the
                                                           Disables       submodels         box to check model is not
                                                           the check-in   are always        in the model selected. If
        CHECK_IN_MODEL                                     operation      checked           is selected, users want to
                                                           during a       in during         but users     check in the
                                                           save.          the save          can clear the model, they
                                                                          operation.        check box.    must select
                                                                                                          the check
                                                                                                          box.
• Open model
                                                                                                              Default
                    Preference name                           NEVER         ALWAYS           DEFAULT
                                                                                                             behavior
                                                           Disables the
                                                                                                           Home folder
                                                           navigation
        NAVIGATE_HOME_FOLDER                                            NA                  NA             navigation is
                                                           from the
                                                                                                           allowed.
                                                           Home folder.
                                                                                          Default
               Preference name        NEVER          ALWAYS           DEFAULT
                                                                                         behavior
                                 Disables the
                                                                                      Classification
                                 navigation
                                                                                      tree
    NAVIGATE_CLASSIFICATION_TREE from the       NA                  NA
                                                                                      navigation is
                                 classification
                                                                                      allowed.
                                 tree.
                                 Disables                                             Teamcenter
    SEARCH_TEAMCENTER            Teamcenter NA                      NA                search is
                                 search.                                              allowed.
                                                                    Makes the
                                                                    product         Product
                                   Hides           Makes the
                                                                    structure       structure
                                   Product         product
                                                                    panel visible panel is
                                   structure       structure
                                                                    but users       hidden but
                                   panel and       panel visible.
    SHOW_PRODUCT_STRUCTURE                                          have the        users can
                                   disables        Disables
                                                                    option of       view it using
                                   the Show        the Show
                                                                    hiding it using the Show
                                   Structure       Structure
                                                                    the Show        Structure
                                   panel button.   panel button.
                                                                    Structure       panel button.
                                                                    panel button.
                                                                    Shows the
                                                                                    The
                                                                    Properties
                                   Hides the       Shows the                        Properties
                                                                    panel but
                                   Properties      Properties                       panel is
                                                                    users can
                                   panel and       panel.                           hidden but
                                                                    hide the
    SHOW_PROPERTIES                disables        The Show                         users can
                                                                    Properties
                                   the Show        property                         view it using
                                                                    panel using
                                   property        panel button                     the Show
                                                                    the Show
                                   panel button.   is disabled.                     property
                                                                    property
                                                                                    panel button.
                                                                    panel button.
                                                                    The             The
                                   Disables                         Checkout        Checkout
                                                   Always
                                   the ability                      Top Model Top Model
                                                   checks out
                                   to check                         check box       check box is
    CHECKOUT_TOP_MODEL                             the top model
                                   out the top                      is selected. not selected.
                                                   but not the
                                   model and all                    This allows This allows
                                                   submodels.
                                   sub-models.                      users to clear users to
                                                                    it.             select it.
                                                                    The             The
                                                                    Checkout        Checkout
                                   Disables                         Top Model Top Model
                                                   Always
                                   the ability                      and All         and All
                                                   checks out
    CHECKOUT_TOP_MODEL_AND_        to check                         Submodels Submodels
                                                   the top
    ALL_SUBMODELS                  out the top                      check box       check box is
                                                   model and all
                                   model and all                    is selected. not selected.
                                                   submodels.
                                   submodels.                       This allows This allows
                                                                    users to clear users to
                                                                    it.             select it.
                                                                                                          Default
                    Preference name                           NEVER         ALWAYS        DEFAULT
                                                                                                         behavior
                                                           Disables the
                                                                          Always
                                                           ability to
                                                                          downloads
                                                           download
                                                                          additional    The            The
                                                           additional
                                                                          data to       Download       Download
                                                           data to
                                                                          the staging   additional     additional
         DOWNLOAD_ADDITIONAL_DATA                          the staging
                                                                          directory     data check     data check
                                                           directory
                                                                          when          box is         box is not
                                                           when
                                                                          opening the   selected.      selected.
                                                           opening the
                                                                          model from
                                                           model from
                                                                          Teamcenter.
                                                           Teamcenter.
  •      Insert model
         Operation ID for inserting a model within a model: com.teamcenter.bhm.model.insertmodel
         Operation ID for inserting an existing model in a subsystem:
         com.teamcenter.bhm.subsystem.insertmodel
                                                                                                          Default
                    Preference name                           NEVER         ALWAYS        DEFAULT
                                                                                                         behavior
                                      Disables
                                                                                                       Home folder
                                      navigation
         NAVIGATE_HOME_FOLDER                        NA                                 NA             navigation
                                      from the
                                                                                                       allowed.
                                      Home folder.
                                      Disables
                                                                                                       Classification
                                      navigation
                                                                                                       tree
         NAVIGATE_CLASSIFICATION_TREE from the       NA                                 NA
                                                                                                       navigation
                                      classification
                                                                                                       allowed.
                                      tree.
                                      Disables                                                         Teamcenter
         SEARCH_TEAMCENTER            Teamcenter NA                                     NA             search
                                      search.                                                          allowed.
                                                                                        Makes the
                                                                                        Product         The Product
                                                           Hides the     Makes the
                                                                                        structure       structure
                                                           Product       Product
                                                                                        panel visible panel is
                                                           structure     structure
                                                                                        but users       hidden but
                                                           panel and     panel visible.
         SHOW_PRODUCT_STRUCTURE                                                         have the        users can
                                                           disables      Disable
                                                                                        option of       view it using
                                                           the Show      the Show
                                                                                        hiding it using the Show
                                                           Structure     Structure
                                                                                        the Show        Structure
                                                           panel button. panel button.
                                                                                        Structure       panel button.
                                                                                        panel button.
                                                                                  Default
               Preference name           NEVER             ALWAYS           DEFAULT
                                                                                 behavior
                                                                               The
                                                                 Shows the
                                      Hides the     Shows the                  Properties
                                                                 Properties
                                      Properties    Properties                 panel is
                                                                 panel but
                                      panel and     panel.                     hidden but
                                                                 users can
    SHOW_PROPERTIES                   disables      The Show                   users can
                                                                 hide it using
                                      the Show      property                   view it using
                                                                 the Show
                                      property      panel button               the Show
                                                                 property
                                      panel button. is disabled.               property
                                                                 panel button.
                                                                               panel button.
                                      Disables the
                                                    Always
                                      ability to
                                                    downloads
                                      download
                                                    additional   The           The
                                      additional
                                                    data to      Download      Download
                                      data to
                                                    the staging additional     additional
    DOWNLOAD_ADDITIONAL_DATA          the staging
                                                    directory    data check data check
                                      directory
                                                    when         box is        box is not
                                      when
                                                    opening the selected.      selected.
                                      opening the
                                                    model from
                                      model from
                                                    Teamcenter.
                                      Teamcenter.
•   Checkout model
    Operation ID: com.teamcenter.bhm.model.checkout
                                                                                       Default
               Preference name           NEVER             ALWAYS           DEFAULT
                                                                                      behavior
                                                                                   The
                                                        Always       The
                                                                                   Checkout All
                                                        checks       Checkout All
                                                                                   Submodels
                                      Disables the      out the      Submodels
                                                                                   check box
                                      ability to        submodels    check box
    CHECKOUT_ALL_SUBMODELS                                                         is not not
                                      check out all     when         is selected.
                                                                                   selected.
                                      submodels.        checking     This allows
                                                                                   This allows
                                                        out the top users to clear
                                                                                   users to
                                                        model.       it.
                                                                                   select it.
                                                                     Model data
                                                                                   Model data is
                                                                     is backed
                                                                                   not backed
                                      Disables the                   up while
                                                        Always backs               up while
                                      ability to back                checking
                                                        up model                   checking
                                      up model                       out the
                                                        data while                 out the
                                      data while                     model from
    BACKUP_CURRENT_MODEL                                checking                   model from
                                      checking                       Teamcenter
                                                        out the                    Teamcenter
                                      out the                        but users
                                                        model from                 but users
                                      model from                     have the
                                                        Teamcenter.                have the
                                      Teamcenter.                    option to not
                                                                                   option to back
                                                                     back up the
                                                                                   up the data.
                                                                     data.
         You need not update the integration definition file for overriding actions initiated from the rich
         client. To override actions:
         o    Specify the user actions that must be overriden as the value of the preference, for example,
              CHECKOUT_TOP_MODEL=NEVER.
                                                                                                           Default
                      Preference name                          NEVER         ALWAYS       DEFAULT
                                                                                                          behavior
                                                                                         The            The
                                                             Disables                    Checkout       Checkout
                                                                           Always
                                                             ability to                  Top Model Top Model
                                                                           checks out
                                                             check out                   check box      check box is
         CHECKOUT_TOP_MODEL                                                the top model
                                                             the top model               is selected, not selected,
                                                                           but not the
                                                             and all the                 allowing the allowing the
                                                                           submodels.
                                                             submodels.                  users to clear users to
                                                                                         it.            select it.
                                                                                         The            The
                                                                                         Checkout       Checkout
                                                             Disables                    Top Model Top Model
                                                                           Always
                                                             ability to                  and All        and All
                                                                           checks out
         CHECKOUT_TOP_MODEL_AND_                             check out                   Submodels Submodels
                                                                           the top
         ALL_SUBMODELS                                       the top                     check box      check box is
                                                                           model and
                                                             model and all               is selected, not selected,
                                                                           submodels.
                                                             submodels.                  the allowing allowing the
                                                                                         users to clear users to
                                                                                         it.            select it.
                                                             Disables the
                                                                           Always
                                                             ability to
                                                                           downloads
                                                             download
                                                                           additional    The            The
                                                             additional
                                                                           data to       Download       Download
                                                             data to
                                                                           the staging additional       additional
         DOWNLOAD_ADDITIONAL_DATA                            the staging
                                                                           directory     data check data check
                                                             directory
                                                                           when          box is         box is not
                                                             when
                                                                           opening the selected.        selected.
                                                             opening the
                                                                           model from
                                                             model from
                                                                           Teamcenter.
                                                             Teamcenter.
  You can specify which integration menu commands appear in the Teamcenter menu of MATLAB
  Simulink by specifying the menu configuration in a MATLAB script file. This script file contains a list of
  integration operation identifiers. These identifiers correspond to each integration operation.
  The following is the list of the available integration operations and their corresponding integration
  operation identifiers:
                  Example
                  If you want the Teamcenter menu to only list the operations save model, open, insert
                  block, insert model, check-in, check-out, and cancel check-out, update the script file
                  as follows:
                       function availableOperationNameList =
                       fn_getAvailableTeamcenterOperations()
                       availableOperationNameList =
                       {
                       'com.teamcenter.bhm.model.save',...
                       'com.teamcenter.bhm.open',...
                       'com.teamcenter.bhm.model.insertmodel',...
                       'com.teamcenter.bhm.library.insertmodel',...
                       'com.teamcenter.bhm.subsystem.insertmodel',...
                       'com.teamcenter.bhm.model.insertblock',...
                       'com.teamcenter.bhm.library.insertblock',...
                       'com.teamcenter.bhm.subsystem.insertblock',...
                       'com.teamcenter.bhm.model.checkout',...
                       'com.teamcenter.bhm.library.checkout',...
                       'com.teamcenter.bhm.model.checkin',...
                       'com.teamcenter.bhm.library.checkin',...
                       'com.teamcenter.bhm.model.cancelcheckout',...
                       'com.teamcenter.bhm.library.cancelcheckout',...
                       'com.teamcenter.bhm.logoff'
                       };
                       return;
                       end
2. Deploy this m-script in the behavior modeling client at the following location:
TC_ROOT/bhm/matlab/scripts
  To verify the modified menu configuration for models, choose Tools →Teamcenter in the MATLAB
  Simulink model window, and confirm that only the menu operations that were specified in the
  m-script file are displayed.
  To verify the modified menu configuration for a library, choose Tools →Teamcenter in the MATLAB
  Simulink library window, and confirm that only the menu operations that were specified in the
  m-script file are displayed.
            Tip
            To avoid tampering of the m-script file, convert the m-script to p-code before deploying.
            Note
            If the name of the m-script is wrong or if there are any errors in the m-script, you may view
            unexpected behavior, or Teamcenter menus might not be displayed.
After installing the Behavior Modeling client on your machine, you must ensure that the mmgenv.bat
file is updated with information about Teamcenter variables.
    set TC_ROOT=location-of-TC_ROOT
    set MATLAB_ROOT=location-of-MATLAB_ROOT
    set FMS_HOME=location-of-FMS_HOME
Example
               set TC_ROOT=D:\apps\Siemens\TcMEPostEAP
               set MATLAB_ROOT=D:\apps\MATLAB\R2016a
               set FMS_HOME=D:\Apps\Siemens\TcMEPostEAP\tccs
You need not configure these integration settings if you have a 4-tier installation.
•   Modify the BHMClient.properties file to configure the behavior modeling tool integration settings
    for MATLAB Simulink. This file allows you to specify the Teamcenter server connection URL,
    identify the method of logging on, preserve a session through cookie files, and so on.
•   If you are deploying Teamcenter Mechatronics Engineering version 4.1 on Teamcenter version
    12, create an environment variable called MATLAB_JAVA. The value of the variable is a JRE
    version that is compatible with your MATLAB version.
         Note
         When configuring the staging directory in the BHMClient.properties file, ensure that the
         directory name does not contain periods.
            Example
            addpath '.\submodel1'
            addpath '.\submodel2'
            Note
            If the folder path added to the MATLAB Simulink search path is incorrect, the data saved to
            Teamcenter is also be incorrect.
  Allocate virtual memory for working with a large number of MATLAB models
  While opening a MATLAB Simulink file from a folder that contains a large number of models, MATLAB
  Simulink may display an out-of-memory error. To avoid this, set the virtual memory being allocated to
  a higher level in the java.opts file. For example, use the -Xmx1024M value to allocate 1 GB of RAM.
  If the java.opts file does not exist, create one and save it at a location of your choice, for example,
  MATLAB_ROOT/bin/winx64 .
            Caution
            When working with the integration, if you set the Xmx value to a value higher than your
            system’s RAM, you may see the following message:
                 Could not create the Java virtual machine.
                 Set the Xmx value to a lower setting that your system supports.
Update the Exclusions node in the configuration file with the relative path of the exclusions.
Example
               <Exclusions>
                 <RelativePath>*.txt</RelativePath>
                 <RelativePath>/Model/*.slx</RelativePath>
                 <RelativePath>/Model/test</RelativePath>
               </Exclusions>
• The Teamcenter property that you want to associate with must exist.
                 Example
                 Create a property file named properties_input.txt and add the following property in
                 the name-value format as follows:
Example
                 In this example, the element is AttributeMapping and it has an updated the name
                 argument with a value (Description). The value of the name argument must match
                 the property in the property file that we created in the previous step.
                 The property, in this example, maps to a Teamcenter property named object_desc.
                 Make sure that this Teamcenter property exists because if not, the import action
                 ignores this entry.
3. Run the import command with an argument that specifies the property file.
Example
The properties defined in the property file are imported and associated with the Teamcenter property
on the branch object. Check the branch console to ensure that all the properties are imported.
•   Database
    Teamcenter ensures that a branch name is unique in the entire database, for every SysDM
    object or project.
•   NoCheck
    Teamcenter does not check whether a branch name is unique. Branches with the same name
    are permitted within an object, project, or the entire database.
This preference is applied when you create a new branch, copy an existing branch to a new branch,
or modify the name of an existing branch. Teamcenter displays an error message if the configured
uniqueness is violated.
•   If you load an object in its own location which is not under a branch and the system branch view
    is turned on, Active Workspace does not display the Branch tab.
•   If you load an object in its own location under a branch and the system branch view is turned off,
    Active Workspace does not display the Branch tab.
•   If you load a branch in its own location and the system branch view is turned on, Active
    Workspace displays the Branch tab.
  •     If you load a branch in its own location and the system branch view is turned off, Active
        Workspace does not display the Branch tab.
  [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/fnd0branch]
  "Extension"=".bnv"
  [HKEY_CLASSES_ROOT\.bnv]
  "Content Type"="application/fnd0branch"
  @="fnd0branchfile"
[HKEY_CLASSES_ROOT\fnd0branchfile]
[HKEY_CLASSES_ROOT\fnd0branchfile\shell]
  [HKEY_CLASSES_ROOT\fnd0branchfile\shell\open]
  @="&open"
  [HKEY_CLASSES_ROOT\fnd0branchfile\shell\open\command]
  @="<TC_ROOT>\\bhm\\openInConsole.bat \"%1\""
Add the following entries to the Windows registry to enable the merge functionality:
  [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/fnd0branchMerge]
  "Extension"=".mrg"
  [HKEY_CLASSES_ROOT\.mrg]
  "Content Type"="application/fnd0branchMerge"
  @="fnd0branchfileMerge"
[HKEY_CLASSES_ROOT\fnd0branchfileMerge]
[HKEY_CLASSES_ROOT\fnd0branchfileMerge\shell]
  [HKEY_CLASSES_ROOT\fnd0branchfileMerge\shell\open]
  @="&open"
  [HKEY_CLASSES_ROOT\fnd0branchfileMerge\shell\open\command]
  @="<TC_ROOT>\\bhm\\mergeBranchNodes.bat \"%1\""
         Warning
         If you do not specify a staging directory, the interactions with the file system such as
         import, download, save will not function.
For more information about installing these components, see Overview of installing Teamcenter
Mechatronics Engineering.
• Pre-save
• Save
• Export
• Login
• Logout
You can invoke these APIs from any Java program or from the behavior modeling tool-specific script.
To use the APIs:
•   Implement an external Java program or tool-specific script using the published APIs.
• Add all the .jar filesin the Teamcenter_ROOT\bhm directory to the Java build path libraries.
• If you are using MATLAB, ensure that you add the following entries to the PATH variable:
o MATLAB_ROOT\bin\win64
o MATLAB_ROOT\sys\jxbrowser\win64\lib
• Before using the APIs, you must establish a Teamcenter session using the login API.
  •     Use the utility functions to generate the xml input strings for the Save and the Open APIs.
        This utility is available in the BHMOperationData and the BHMDesign classes located in the
        com.teamcenter.behaviormodeling.common.xml package.
        You can use the Pre-save API to generate input files for the Save API. The xml file that the
        Pre-save API generates does not contain information about additional data. To save additional
        data, you must explicitly update the xml file.
                    Example
                    The Save API requires an XML string as input. This string contains information
                    about the models to be saved. This XML string can be based on the
                    BHMOperationsSchema.xsd file as follows:
                    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                    <BHMOperations xmlns="http://www.plmxml.org/Schemas/bhm">
                     <operationData modelPath="D:\HSNModels">
                      <modelInfo>
                       <Model createdDate="Mon Sep 02 12:35:30 2013"
                        tcType="Bhm0BehaviorModlRevision"
                        instanceType="ModelReference" tcItemName="SingleModel"
                        tcrevId="H"
                        tcitemId="000205" tcuid="" modelIdentifier="SingleModel"
                        modelName="SingleModel">
                        <Attributes>
                         <Key name="object_desc">
                          <Value>My Desc</Value>
                         </Key>
                         <RevisionAttributes />
                        </Attributes>
                       </Model>
                      </modelInfo>
                      <options>
                       <saveOperationOptions folderUID="g9UJCdVLopK8AC"
                     checkIn="false" addAdditionalData="false" />
                      </options>
                     </operationData>
                    </BHMOperations
Operations API
This API is an overloaded constructor that accepts a Teamcenter connection object. The Teamcenter
connection object passed through this constructor is used for all Behavior Modeling operations. If you
are using this API, you need not use the bhmLogin API.
    public OperationsAPIs (Connection connection, String serverURL, String toolType)
Inputs
    connection
    Specifies the Teamcenter connection object.
    serverURL
    Specifies the URL to the Teamcenter server.
    toolType
    Specifies the behavior modeling tool, for example, MATLAB.
bhmLogin API
You must start a Teamcenter session, using the bhmLogin API before using the Open and Save APIs.
    BHMOperationOutput bhmLogin (String userName, String password,
     String group, String toolType)
Inputs
    username
    Specifies the Teamcenter user ID.
    password
    Specifies the password of the Teamcenter user.
    group
    (Optional) Specifies the group associated with the user.
    toolType
    Specifies the behavior modeling tool, for example, MATLAB.
Example
    BHMOperationOutput bhmLogin (“infodba”, “infodba”, “”, “MATLAB”);
bhmOpenOperation API
Opens behavior models from Teamcenter.
    List<BHMOperationOutput> bhmOpenOperation(List<String> dataOpenInputXML,
     String toolType)
  Inputs
        dataOpenInputXML
        Specifies a list of input strings that are based on the BHMOperationsSchema.xsd file.
        You can generate the xml string, using the JAXB utility available with the BHMOperationData
        and BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
        toolType
        Specifies the behavior modeling tool, for example, MATLAB.
• In the Model element, specify the values for modelName, modelIdentifier, and tcuid.
        o     checkOutAll
              To check out all submodels of the root model, set the value to true.
        o     addAdditionalData
              To download additional data, set the value to true.
  Outputs
  The output is a list of BHMOperationOutput objects.
  The BHMOperationOutput class is available in the com.teamcenter.behaviormodeling.common
  package.
  Each BHMOperationOutput object in the list corresponds to the input XML strings sent through the
  input parameter dataOpenInputXML.
Example
Pass the following string to the dataOpenInputXML argument of the bhmOpenOperation API to
load and check out a model.
To load multiple models, you must pass separate input XMLs to dataOpenInputXML.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <BHMOperations rootModelName="test" rootModelIdentifier="test"
    xmlns="http://www.plmxml.org/Schemas/bhm">
      <modelInfo>
        <Model modelName="test" modelIdentifier="test" tcuid="Q2TJlnST4BflXC" />
      </modelInfo>
      <options>
        <openOperationOptions checkOut="true" checkOutAll="false"
         addAdditionalData="false" />
        </options></BHMOperations>
bhmPreSaveOperation API
This API generates an XML string that can be used as the input XML string for the Save API.
    List<BHMOperationOutput> bhmPreSaveOperation(List<String>
     lstRootModelFullFilePath, String toolType)
Inputs
    lstRootModelFullFilePath
    Specifies the full path of the root model.
    toolType
    Specifies the behavior modeling tool, for example, MATLAB.
Outputs
The output is a list of BHMOperationOutput objects.
The BHMOperationOutput class is available in the com.teamcenter.behaviormodeling.common
package.
Each BHMOperationOutput object in the list corresponds to the input XML strings sent through
the input parameter lstRootModelFullFilePath.
  Example
  To generate XML files for two root model files, you can define the paths as follows:
        List<String> paths = new ArrayList<String>();
           paths.add("D:\\matlabModels\\myModel11.slx");
           paths.add("D:\\matlabModels\\myModel21.slx");
  bhmSaveOperation API
  Use the following API to save and check in models to Teamcenter.
        List<BHMOperationOutput> bhmSaveOperation (List<String> dataSaveInputXML,
         String toolType)
  Inputs
        dataSaveInputXML
        Specifies a list of input strings that are based on the BHMOperationsSchema.xsd file.
        You can generate the xml string using the JAXB utility available with the BHMOperationData and
        BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
        toolType
        Specifies the behavior modeling tool, for example, MATLAB.
  •     In the Attributes element, specify the value of the item_id for items and revisions. If you do
        not specify the IDs, Teamcenter automatically generates them.
        Do not specify values for tcrevId and tcitemId as they are for internal use.
           <Attributes>
             <Key name="item_id">
               <Value>001001</Value>
             </Key>
             <RevisionAttributes>
               <Key name=" item_id ">
                 <Value>P</Value>
               </Key>
             </RevisionAttributes>
           </Attributes>
You can also specify the description of the model in the Attributes element as follows:
           <Attributes>
             <Key name="object_desc">
               <Value>This is S1 Desc</Value>
             </Key>
           </Attributes>
    o    checkIn
         To check in the root model, set the value to true.
    o    addAdditionalData
         To attach additional data, set the value to true, and specify the additional data details in the
         AdditionalData element.
Outputs
  Example
  To save a new model to Teamcenter, you can pass the following string through the dataSaveInputXML
  list of the bhmSaveOperation API.
        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <BHMOperations xmlns="http://www.plmxml.org/Schemas/bhm"
          rootModelFolder="D:\Models\MatlabModels" rootModelName="MyModel"
          rootModelIdentifier="MyModel">
          <modelInfo>
            <Model toolId="" teamcenterVersion="1.1" tcType="Bhm0BehaviorModlRevision"
              tcItemName="MyModel" tcrevId="" tcitemId="" tcuid=""
              modelIdentifier="MyModel"
              modelName="MyModel">
              <Attributes>
                <Key name="object_name">
                  <Value>MyModel</Value>
                </Key>
                <Key name="object_desc">
                  <Value></Value>
                </Key>
                <Key name="item_id">
                  <Value>000041</Value>
                </Key>
                <RevisionAttributes>
                  <Key name="item_revision_id">
                    <Value>A</Value>
                  </Key>
                </RevisionAttributes>
              </Attributes>
              <AdditionalData>
                <File description="" relationType="Bhm0AdditionalData"
                  reservation="true" path="D:\Models\MatlabModels\AdditionalData"
                  fileext="txt" fileName="ReviewComments.txt" namedReferenceType="Text"
                  tcDatasetType="Text" tcuid="" action="add" />
              </AdditionalData>
          <Contents>
            <ModelElements>
              <ModelElement parent="S1" tcType="Bhm0BehaviorModlRevision"
                instanceType="MATLAB:ModelReference" instanceUid="" tcuid=""
                modelIdentifier="MyChild" modelName="MyChild" name="Model">
                <Attributes>
                  <Key name="object_name">
                    <Value>MyChild</Value>
                  </Key>
                  <Key name="object_desc">
                    <Value>This is MyChild Desc</Value>
                  </Key>
                  <Key name="item_id">
                     <Value>001003</Value>
                  </Key>
                  <RevisionAttributes>
                     <Key name="item_revision_id">
                       <Value>Q</Value>
                     </Key>
                  </RevisionAttributes>
                </Attributes>
              </ModelElement>
            </ModelElements>
          </Contents>
        </Model>
      </modelInfo>
      <options>
        <saveOperationOptions folderUID="" checkIn="true"
          addAdditionalData="true" />
      </options>
    </BHMOperations>
bhmSaveAsOperation API
Use the following API to create a copy of an existing model and save it to Teamcenter.
If the model has reusable blocks, the SaveAs operation creates new copies of the reusable blocks.
    List<BHMOperationOutput> bhmSaveAsOperation (List<String> dataSaveAsInputXMLs,
     String toolType)
Inputs
    dataSaveInputXML
    Specifies a list of input strings that are based on the BHMOperationsSchema.xsd file.
    You can generate the xml string using the JAXB utility available with the BHMOperationData and
    BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
                   Note
                   You can also generate the input XML string, using the bhmPreSaveOperation API.
                   Provide the details of the model to be copied, such as the staging directory, and
                   generate the XML file and update the output of this API.
         toolType
         Specifies the behavior modeling tool, for example, MATLAB.
  •      In the Attributes element, specify the value of item_id, item_revision_id, and object_name. If
         you do not specify these IDs, Teamcenter automatically generates them.
              <Attributes>
                <Key name="item_id">
                  <Value>000300</Value>
                </Key>
                <RevisionAttributes>
                  <Key name="object_name">
                    <Value>M11SaveAs</Value>
                  </Key>
                  <Key name="item_revision_id">
                    <Value>D</Value>
                  </Key>
                </RevisionAttributes>
              </Attributes>
         o    checkIn
              Set the value to false as you cannot check in a new model.
         o    addAdditionalData
              To copy additional data from the original model to the new model, set the value to true.
Outputs
The output is a list of BHMOperationOutput objects.
The BHMOperationOutput class is available in the com.teamcenter.behaviormodeling.common
package.
Each BHMOperationOutput object in the list corresponds to the input XML strings sent through the
input parameter dataSaveInputXML.
Example
To create a copy of a model and save it to Teamcenter, you can pass the following string through the
dataSaveInputXML list of the bhmSaveOperation API.
            </Attributes>
            <Contents>
           <ModelElements/>
            </Contents>
          </Model>
           </modelInfo>
           <options>
             <saveOperationOptions folderUID="AWSdOLciIvwBJA" checkIn="false"
             addAdditionalData="true"/>
           </options>
         </BHMOperations>
  bhmOpenBlockLibrary API
  Opens behavior library models from Teamcenter.
         List<BHMOperationOutput> bhmOpenBlockLibrary(List<String> dataOpenInputXML,
          String toolType)
Inputs
         dataOpenInputXML
         Specifies a list of input strings that are based on the BHMOperationsSchema.xsd file.
         You can generate the xml string, using the JAXB utility available with the BHMOperationData
         and BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
         toolType
         Specifies the behavior modeling tool, for example, MATLAB.
• In the Model element, specify the values for modelName, modelIdentifier, and tcuid.
         o    checkOutAll
              To check out all submodels of the root model, set the value to true.
         o    addAdditionalData
              To download additional data, set the value to true.
Outputs
Example
Pass the following string to the dataOpenInputXML argument of the bhmOpenOperation API to
load and check out a library model.
To load multiple library models, you must pass separate input XMLs to dataOpenInputXML.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <BHMOperations rootModelName="test" rootModelIdentifier="test"
    xmlns="http://www.plmxml.org/Schemas/bhm">
      <modelInfo>
        <Model modelName="test" modelIdentifier="test" tcuid="Q2TJlnST4BflXC" />
      </modelInfo>
      <options>
        <openOperationOptions checkOut="true" checkOutAll="false"
         addAdditionalData="false" />
        </options></BHMOperations>
bhmSaveBlockLibrary API
Use the following API to save and check in library models to Teamcenter.
    List<BHMOperationOutput> bhmSaveBlockLibrary (List<String> dataSaveInputXML,
     String toolType)
Inputs
    dataSaveInputXML
    Specifies a list of input strings that are based on the BHMOperationsSchema.xsd file.
         You can generate the xml string using the JAXB utility available with the BHMOperationData and
         BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
         toolType
         Specifies the behavior modeling tool, for example, MATLAB.
  •      In the Attributes element, specify the value of item_id for items and revisions. If you do not
         specify values for these, Teamcenter automatically generates them.
         If you do not specify values for tcrevId and tcitemId as they are for internal use.
                 <Attributes>
                   <Key name="item_id">
                     <Value>001001</Value>
                   </Key>
                   <RevisionAttributes>
                     <Key name=" item_id ">
                       <Value>P</Value>
                     </Key>
                   </RevisionAttributes>
                 </Attributes>
         You can also specify a description for the model in the Attributes element as follows:
                 <Attributes>
                   <Key name="object_desc">
                     <Value>This is S1 Desc</Value>
                   </Key>
                 </Attributes>
o checkIn
    o    addAdditionalData
         Attaches additional data when the the value is set to true, and specify the additional data
         details in the AdditionalData element.
Outputs
The output is a list of BHMOperationOutput objects.
The BHMOperationOutput class is available in the com.teamcenter.behaviormodeling.common
package.
Each BHMOperationOutput object in the list corresponds to the input XML strings sent through the
input parameter dataSaveInputXML.
Example
To save a new library model to Teamcenter, you can pass the following string through the
dataSaveInputXML list of the bhmSaveBlockLibrary API.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <BHMOperations xmlns="http://www.plmxml.org/Schemas/bhm"
      rootModelFolder="D:\Models\MatlabModels" rootModelName="MyModel"
      rootModelIdentifier="MyModel">
      <modelInfo>
        <Model toolId="" teamcenterVersion="1.1" tcType="Bhm0BehaviorModlRevision"
          tcItemName="MyModel" tcrevId="" tcitemId="" tcuid=""
          modelIdentifier="MyModel"
          modelName="MyModel">
          <Attributes>
            <Key name="object_name">
              <Value>MyModel</Value>
            </Key>
            <Key name="object_desc">
              <Value></Value>
                 </Key>
                 <Key name="item_id">
                   <Value>000041</Value>
                 </Key>
                 <RevisionAttributes>
                   <Key name="item_revision_id">
                     <Value>A</Value>
                   </Key>
                 </RevisionAttributes>
               </Attributes>
               <AdditionalData>
                 <File description="" relationType="Bhm0AdditionalData"
                   reservation="true" path="D:\Models\MatlabModels\AdditionalData"
                   fileext="txt" fileName="ReviewComments.txt" namedReferenceType="Text"
                   tcDatasetType="Text" tcuid="" action="add" />
               </AdditionalData>
               <Contents>
                 <ModelElements>
                   <ModelElement parent="S1" tcType="Bhm0BehaviorModlRevision"
                     instanceType="MATLAB:ModelReference" instanceUid="" tcuid=""
                     modelIdentifier="MyChild" modelName="MyChild" name="Model">
                     <Attributes>
                        <Key name="object_name">
                          <Value>MyChild</Value>
                        </Key>
                        <Key name="object_desc">
                          <Value>This is MyChild Desc</Value>
                        </Key>
                        <Key name="item_id">
                          <Value>001003</Value>
                        </Key>
                        <RevisionAttributes>
                          <Key name="item_revision_id">
                            <Value>Q</Value>
                          </Key>
                        </RevisionAttributes>
                     </Attributes>
                   </ModelElement>
                 </ModelElements>
               </Contents>
             </Model>
           </modelInfo>
           <options>
             <saveOperationOptions folderUID="" checkIn="true"
               addAdditionalData="true" />
           </options>
         </BHMOperations>
  bhmExportOperation API
  Downloads behavior models, related datasets, additional data, and referenced models from
  Teamcenter to the specified folder. This API also restores the original folder structure and unzips
  the additional data that was zipped during the save operation.
         List<BHMOperationOutput> bhmExportOperation(List<String> dataExportInputXMLs)
Input
      dataExportInputXMLs
      Specifies a list of xml input strings that are based on the BHMOperationsSchema.xsd file.
      You can generate the xml string, using the JAXB utility available with the BHMOperationData
      and BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
•     In the modelInfo element, specify values for the following variables: applicationName and tcuid.
      o   applicationName
          Specifies the name of the behavior modeling application, for example, MATLAB.
      o   tcuid
          Specifies the Teamcenter ID of the model.
Output
  Example
  Pass the following string to the dataExportInputXML argument of the bhmExportOperation API to
  export a model.
  To load multiple models, you must pass separate input XMLs to dataOpenInputXML.
         <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
         <BHMOperations xmlns="http://www.plmxml.org/Schemas/bhm rootModelFolder="test">
           <modelInfo applicationName="MATLAB">
             <Model tcuid="Q2TJlnST4BflXC" />
           </modelInfo>
           <options>
             <openOperationOptions checkOut="true" checkOutAll="false"
              addAdditionalData="false" />
             </options></BHMOperations>
  bhm0GetModelOrgData API
  This is a server API that returns the model organization data that is saved in the model object in
  Teamcenter. The model organization data consists of a model folder name, relative paths of all the
  submodel files, and model-configured data. This API is available for the Bhm0BehaviorModelRevision
  and Bhm0CompRepositoryRevision objects and all inherited business objects.
  The model organization information is returned for the model object on which the API is invoked.
  To obtain the organization information for all the submodels, the API should be invoked recursively
  on all the submodels.
         int bhm0GetModelOrgData ( behaviormodeling::BhmModelOrgDataS *modelOrgData )
  Inputs
         BhmModelOrgDataS
         Specifies a reference to an empty BhmModelOrgDataS structure object. The API returns model
         organization data in this input structure object.
  Outputs
  The API outputs the model organization data in the BhmModelOrgDataS structure object.
  The BhmModelOrgDataS structure object returns the following:
  Example
  Assume that your model organization appears as follows in the staging directory and the rich client.
 modelName                               ModelSub02
 modelFolderPath                         02emodelSub2-a01-00-a
   modelName                                          ModelParent11
   modelFolderPath                                    11emodelParent-a01-00-a
   configFilesFolderPath                              ./ const / SomeDataModel.mat
                                                      ./ simdata /SimDataSpec.doc
                                                      ./pic/SimResult.jpg
                                                      ./extern/ExternDataModel.m
   mapSubModelFilesFolderPath                         ModelSub12 - ../
   modelName                                          ModelSub12
   modelFolderPath                                    12emodelSub1-a01-00-a
   configFilesFolderPath                              ./ const / SomeDataModel.mat
                                                      ./ simdata /SimDataSpec.doc
                                                      ./pic/SimResult.jpg
                                                      ./extern/ExternDataModel.m
   mapSubModelFilesFolderPath
  bhmReviseOperation API
  Use the following API to revise models that are managed in Teamcenter.
         List<BHMOperationOutput> bhmReviseOperation (List<String> dataReviseInputXML,
          String toolType)
  Inputs
         dataReviseInputXML
         Specifies a list of input strings that are based on the BHMOperationsSchema.xsd file.
         You can generate the xml string, using the JAXB utility available with the BHMOperationData
         and BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
         toolType
         Specifies the behavior modeling tool, for example, MATLAB.
• In the BHMOperations element, specify the values for rootModelName and rootModelIdentifier.
• In the Model element, specify the values for modelName, modelIdentifier, and tcuid.
      o   carryForwardAdditionalData
          Specifies whether additional data must be revised and carried forward to the revised model.
          The value of this variable is a boolean parameter. If the value if true, additional data is carried
          forward. If not, the revised model will not have any additional data.
Output
The output is a list of BHMOperationOutput objects.
The BHMOperationOutput class is available in the com.teamcenter.behaviormodeling.common
package.
Each BHMOperationOutput object in the list corresponds to the input XML strings sent through the
input parameter dataReviseInputXML.
Example
To revise a model, you can pass the following string through the dataReviseInputXML list of the
bhmReviseOperation API.
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <BHMOperations rootModelName="test" rootModelIdentifier="test"
         xmlns="http://www.plmxml.org/Schemas/bhm">
        <modelInfo>
bhmCancelCheckOutOperation API
  Use the following API to cancel the checkout of a model saved in Teamcenter.
         List<BHMOperationOutput> bhmCancelCheckOutOperation
         (List<String> dataCancelCheckOutInputXML, String toolType)
Inputs
         dataCancelCheckOutInputXML
         Specifies a list of input strings with information about the models whose checkout must be
         canceled. These strings are based on the BHMOperationsSchema.xsd file.
         You can generate the xml string, using the JAXB utility available with the BHMOperationData
         and BHMDesign classes in the com.teamcenter.behaviormodeling.common.xml package.
         toolType
         Specifies the behavior modeling tool, for example, MATLAB.
Output
  Each BHMOperationOutput object in the list corresponds to the input XML strings sent through the
  input parameter dataCancelCheckOutInputXML.
Example
To cancel a checkout, you can pass the following string through the dataCancelCheckOutInputXML
list of the bhmCancelCheckOutOperation API.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <BHMOperations rootModelFolder="D:\staging_11\M11_000260_A\M112"
    rootModelIdentifier="M11"
    xmlns="http://www.plmxml.org/Schemas/bhm">
      <modelInfo applicationName="MATLAB">
        <Model modelName="M11" modelIdentifier="M11" tcuid="g_Zhgh35IvwBJA">
       <Attributes/>
       <Contents>
      <ModelElements/>
       </Contents>
     </Model>
      </modelInfo>
      <options>
        <reservationOperationOptions backUpExistingModel="true/>
      </options>
    </BHMOperations>
bhmLogout API
Use this API to end the Teamcenter session from the behavior modeling integration.
    BHMOperationOutput bhmLogout()
BHMOperations API
    BHMOperations (String strToolType, TCComponent modelrevision)
  This API is an abstract base class for all the behavior modeling operations supported through the rich
  client. The constructor considers the model tool name and the model revision object for which the
  behavior modeling operations are to be performed.
  Inputs
         strToolType
         Specifies the name of the modeling tool, for example, MATLAB.
         modelrevision
         Specifies a reference to a model revision or a BOMLine of the model revision.
  BHMModelOrgOperations::bhmSetFolderName API
         void setFolderName( String strFolderName ) throws TCException, BHMCommonException,
                 JAXBException
  Using this API, a custom environment can update the folder organization metadata for new files that
  are associated to a model and that are expected to be downloaded in the configured folders.
  If the input folder name and the relation with which the dataset is associated to the model revision
  object do not match, an error is displayed. The API supports the model revision object or the
  BOMLine of a model revision object.
  Inputs
         strFolderName
         Specifies the name of the folder.
  BHMModelOrgOperations::bhmSetFileRelativePath API
         void setFileRelativePath( TCComponent dataset, String configFolderName,
         String relativePath )
          throws BHMCommonException, TCException, JAXBException
  Using this API, a custom environment can update the file organization meta-data for new files that are
  associated to a model and that are expected to be downloaded in the configured folders.
  If the input folder name and the relation with which the dataset is associated to the model revision
  object do not match, an error is displayed. The API supports the model revision object or the
  BOMLine of a model revision object.
  Inputs
         dataset
         Specifies the dataset corresponding to the file.
         configFolderName
         Specifies the name of the configured folder. This folder name must match the folder name
         from the integration definition file.
         relativePath
         Specifies the relative location of the file with the relation to the model folder.
tcmeImportModelsToBranch API
Imports models and associated data from the user workstation to the specified branch in Teamcenter.
    ProjectDataOperationStatus tcmeImportModelsToBranch(String branchName,
    String projectRootDirectory)
Input
    branchName
    Specifies the name of the banch object to be created in Teamcenter.
    projectRootDirectory
    Specifies the context folder or location from which the models will be imported.
Output
    ProjectDataOperationStatus
    Indicates the status of the branch import operation.
Example
tcmeExportModelsFromBranch API
Exports the contents of a specified branch from Teamcenter to the local file system.
    ProjectDataOperationStatus tcmeExportModelsFromBranch(String branchUid,
    String strExportDirectoryOfBranch)
Inputs
    branchUid
    Specifies the unique indentifier of the branch to be exported.
    strExportDirectoryOfBranch
    Specifies the location where the branch data must be exported. This is an optional argument. If
    this argument is not specified, the branch contents are exported to the staging directory.
Output
    ProjectDataOperationStatus
    Indicates the status of the branch import operation.
Example
  tcmeCheckoutModelFromBranch API
  Checks out the specified model from a branch in Teamcenterr.
         ProjectDataOperationStatus tcmeCheckoutModelFromBranch(String branchUid,
         List<String> lstFilePath)
  Inputs
         branchUid
         Specifies the unique indentifier of the branch to be checked out.
         lstFilePath
         Specifies the names of an input folder or file to be checked out.
  Output
         ProjectDataOperationStatus
         Indicates the status of the checkout operation.
Example
  tcmeUpdatetModels API
  Updates specified models from a branch in Teamcenter. This API also checks in the model to
  Teamcenter.
         ProjectDataOperationStatus tcmeUpdatetModels(List<String> lstModelFilePaths, boolean
  Inputs
         lstModelFilePaths
         Specifies the list of model files to be updated.
         isModelToBeCheckedIn
         Specifies if the model is to be checked in.
Output
    ProjectDataOperationStatus
    Indicates the status of the update operation.
Example
Inputs
    InputRevisions
    Specifies a vector of the anyalsis request revision UIDs, study revision UIDs, or a mix of both.
Output
    operationStatus
    Specifies the following:
    •    Status of the operation
setAnalysisRequestData API
This API updates the attribute values based on the simulation results in Teamcenter. It also uploads
result data in the form of result files. These files are then associated with the analysis request or the
study revision.
Inputs
    InputAttributeData
    Specifies a vector of attribute values. These values are generated after the simulation. The
    attribute values are grouped per analysis request or study revision. You can also specify SMC
    files to be associated with the analysis request of study objects.
Outputs
         operationStatus
         Specifies the following:
  getAnalysisRequestData API
  This API is a wrapper around the Teamcenter SOA that extracts the analysis request data. The API
  returns the entire analysis request data, including the input-output objects, input-output attributes,
  all study objects and their data, end objects that are assoicated through trace links to the system
  blocks that are added to the analysis request, analysis request system blocks hierarchy up to the
  root node, and the associated data such as requirements and test cases. The API also provides
  an option to filter the unwanted data.
Inputs
         InputRevisions
         Specifies a vector of anyalsis request revision UIDs, study revision UIDs, or a mix of both.
         ARDataFilter
         Specifies an argument to filter unwanted data.
Outputs
         operationStatus
         Specifies the following:
  createOrUpdateDictionary API
  This API creates or updates a list of dictionary objects in Teamcenter.
Inputs
         CreateOrUpdateDictionaryInputData
         Specifies an array of the CreateOrUpdateDictionaryInputData class elements that contains
         information such as the dictionary name, description, and file path.
Outputs
    operationStatus
    Specifies the following outputs based on the TCMEOperationOutput class:
    •    Status of the operation
    •    Response data corresponding to the new dictionary object UIDs. The response data is based
         on the class SystemSynthesisModelingResponseData.
createOrUpdateTemplateContainer API
This API creates or updates a list of Teamcenter Library objects in Teamcenter.
Inputs
    CreateOrUpdateTemplateLibraryInputData
    Specifies an array of the CreateOrUpdateTemplateLibraryInputData class that contains
    information such as the file path, proxy objects, related secondary objects.
Output
    operationStatus
    Specifies the following outputs based on the TCMEOperationOutput class:
    •    Status of the operation
    •    Response data corresponding to the object UIDs of the new template container. The
         response data is based on the class CreateOrUpdateTemplateLibraryResponseData.
createOrUpdateBaseArchitecture API
This API creates or updates a list of base architecture objects in Teamcenter.
Inputs
    CreateOrUpdateBaseArchitectureInputData
    Specifies an array of the CreateOrUpdateBaseArchitectureInputData class that contains
    information such as the file path, related secondary object UIDs.
Output
    operationStatus
    Specifies the following outputs based on the TCMEOperationOutput class:
    •    Status of the operation
    •    Response data corresponding to the new base architecture object UIDs. The response data
         is based on the class SystemSynthesisModelingResponseData.
createOrUpdateModelContainer API
This API creates or updates a list of model container objects in Teamcenter.
  Inputs
         CreateOrUpdateModelContainerInputData
         Specifies an array of the CreateOrUpdateModelContainerInputData class elements that
         contains information such as the file path, proxy objects, and secondary object UIDs.
  Output
         operationStatus
         Specifies the following outputs based on the TCMEOperationOutput class:
         •    Status of the operation
         •    Response data corresponding to the new container object UIDs. The response data is based
              on the class CreateOrUpdateModelContainerResponseData.
  createOrUpdateProject API
  This API creates or updates a list of project objects in Teamcenter.
  Inputs
         CreateOrUpdateProjectInputData
         Specifies an array of the CreateOrUpdateProjectInputData class that contains information such
         as the file path, proxy objects, secondary object UIDs.
  Output
         operationStatus
         Specifies the following outputs based on the TCMEOperationOutput class:
         •    Status of the operation
         •    Response data corresponding to the new project object UIDs. The response data is based
              on the class CreateOrUpdateProjectResponseData.
  getDictionaries API
  This API gets dictionary information from Teamcenter.
  Inputs
         GetSystemSynthesisModelingDataFilter
         Specifies an array of the CreateOrUpdateDictionaryInputData class to define related data
         to be downloaded along with the dictionary.
  Outputs
         operationStatus
         Specifies the following outputs based on the TCMEOperationOutput class:
         •    Status of the operation
    •    Response data corresponding to the dictionary information. The response data is based
         on the class PrimaryObjectData.
getTemplateLibraries API
This API retrieves information about template libraries from Teamcenter.
Inputs
    GetSystemSynthesisModelingDataFilter
    Specifies an array of the GetSystemSynthesisModelingDataFilter class elements that defines
    related data to be downloaded along with the template libraries.
Outputs
    operationStatus
    Specifies the following outputs based on the TCMEOperationOutput class:
    •    Status of the operation
    •    Response data corresponding to information about template libraries. The response data
         is based on the class PrimaryObjectData.
getBaseArchitectures API
This API retrieves information about base architectures from Teamcenter.
Inputs
    GetSystemSynthesisModelingDataFilter
    Specifies an array of the GetSystemSynthesisModelingDataFilter class that defines related
    data to be downloaded along with the base architecture.
Output
    operationStatus
    Specifies the following outputs based on the TCMEOperationOutput class:
    •    Status of the operation
    •    Response data corresponding to information about the base architecture. The response data
         is based on the class PrimaryObjectData.
getModelContainers API
This API retrieves information about model containers from Teamcenter.
Inputs
    GetSystemSynthesisModelingDataFilter
    Specifies an array of the GetSystemSynthesisModelingDataFilter class that defines related
    data to be downloaded along with the model containers.
  Outputs
         operationStatus
         Specifies the following outputs based on the TCMEOperationOutput class:
         •    Status of the operation
         •    Response data corresponding to information about model containers. The response data
              is based on the class PrimaryObjectData.
  getProjects API
  This API retrieves information about projects from Teamcenter.
  Inputs
         GetSystemSynthesisModelingDataFilter
         Specifies an array of the GetSystemSynthesisModelingDataFilter class that defines related
         data to be downloaded along with the projects.
  Output
         operationStatus
         Specifies the following outputs based on the TCMEOperationOutput class:
         •    Status of the operation
         •    Response data corresponding to information about projects. The response data is based
              on the class PrimaryObjectData.
  ReviseSystemSynthesisObjects API
  This API revises a list of Simcenter System Synthesis objects in Teamcenter.
  Inputs
         ReviseOrSaveAsInputData
         Specifies an array of the ReviseOrSaveAsInputData class that contains information such as the
         new revision ID to revise a Simcenter System Synthesis object.
  Outputs
         operationStatus
         Specifies the following outputs based on the TCMEOperationOutput class:
         •    Status of the operation
         •    Response data corresponding to the new revision UIDs. The response data is based on the
              class SystemSynthesisModelingResponseData.
  saveAsSystemSynthesisObjects API
  This API creates copies of a list of Simcenter System Synthesis objects in Teamcenter.
Inputs
    vecSaveAsInputs
    Specifies an array of the ReviseOrSaveAsInputData class that contains information such as
    new object name and description.
Outputs
    operationStatus
    Specifies the following outputs based on the TCMEOperationOutput class:
    •    Status of the operation
    •    Response data corresponding to the new revision UIDs. The response data is based on the
         class SystemSynthesisModelingResponseData.
deleteSystemSynthesisObjects API
This API deletes a list of Simcenter System Synthesis objects in Teamcenter.
Inputs
    vecObjectUids
    Specifies an array of object UIDs to be deleted.
Outputs
    operationStatus
    Specifies the status of the operation based on the TCMEOperationOutput class:
checkOut API
This API checks out a list of Simcenter System Synthesis objects from Teamcenter.
Inputs
    vecObjectUids
    Specifies an array of object IDs to be checked out.
    comments
    (Optional) Specifies any comments for the check-out operation.
    changeId
    (Optional) Specifies a change ID for the check-out operation.
Outputs
    operationStatus
    Specifies the operation status based on the TCMEOperationOutput class.
  checkIn API
  This API checks in a list of Simcenter System Synthesis objects in Teamcenter.
  Inputs
         objectUids
         Specifies an array of object IDs to be checked out.
  Outputs
         operationStatus
         Specifies the operation status based on the TCMEOperationOutput class.
  cancelCheckout API
  This API cancels a checkout on a list of Simcenter System Synthesis objects from Teamcenter.
  Inputs
         ObjectUids
         Specifies an array of object IDs whose checkout must be canceled.
  Outputs
         operationStatus
         Specifies the operation status based on the TCMEOperationOutput class.
• Save-as
• Open
• Insert
  Extension points are available for the following concurrent modeling operations:
  •      Import
• Export
• Add to branch
• Update
You can implement these extensions as java programs, tool-specific scripts, or batch files.
The PRE_UI_ACTION and PRE_UI_INSERT extensions take the input as an XML string that is
based on the BHMOperationsSchema.xsd file. The PRE_CONDITION, PRE_ACTION, and
POST_ACTION extensions take the input as an XML string based on the BHMDesignSchema.xsd
file.
Configuring extensions
Update the TOOL-NAME_BHMIntegrationDefinition.xml file with information about
the extensions. If you are configuring the concurrent modeling extensions, update the
PROJECT_IntegrationDefinition.xml file.
For example, for integration with MATLAB, you can update the Matlab_BHMIntegrationDefinition.xml
file as follows:
<Extensions>
 <Extension operationName="SAVE" extensionPoint="PRE_UI_ACTION" >
      <Impl type="JAVA" location="" name="com.teamcenter.matlabcustom.SaveCustom" />
    </Extension>
 <Extension operationName="SAVE" extensionPoint="PRE_CONDITION" >
      <Impl type="SCRIPT" location="" name="SAVE_PRE_CONDITION" />
    </Extension>
    <Extension operationName="SAVE" extensionPoint="PRE_ACTION" >
      <Impl type="BATCH" location="D:\temp" name="RunMe.bat" />
    </Extension>
    <Extension operationName="SAVE" extensionPoint="POST_ACTION" >
      <Impl type="JAVA" location="" name="com.teamcenter.matlabcustom.SaveCustom" />
    </Extension>
</Extensions>
  •      operationName
         Specifies the name of the operations that the extension point supports.
         The extension points support Save, Save as, Open, and Insert operations.
         The PRE_UI_ACTION extension supports only the Save and Save as operations.
  •      extensionPoint
         Specifies the name of the extension points such as PRE_UI_ACTION, PRE_CONDITION,
         PRE_ACTION or POST_ACTION.
  •      implType
         Specifies how the extensions are implemented.
         implType can have the following values:
         o    JAVA
              Specifies that the extension is implemented in Java.
              The Java implementation must either implement the
              com.teamcenter.behaviormodeling.common.bhminterface.IBHMOperations
              Extendable interface or extend the
              com.teamcenter.behaviormodeling.common.DefaultBHMOperations
              Extendable class.
              The PRE_UI_ACTION extension point supports only Java as the implementation type.
         o    BATCH
              Specifies that the extension is implemented as a batch file.
         o    SCRIPT
              Specifies that the extension is implemented in the behavior modeling tool-specific script file.
  •      location
         Specifies the location of the batch file. You must set a value for this variable only when the
         implType is BATCH.
  •      name
         o    Specifies the class name when the implType is Java.
              The class must be in a JAR file named customjars that is located in the bhm folder of
              the Teamcenter installation.
o Specifies the name of the batch file when the implType is BATCH.
         o    Specifies the command ID of the script file when the implType is SCRIPT.
              The script file name corresponding to the command ID is defined in the
              MATLAB_BHMConnectorCommands.xml file.
•   The input string of the BHMExtensionOutput executePreUIAction method is an XML file based
    on the BHMOperationSchema.xsd schema.
•   Use the JAXB utility to generate the XML input strings. This utility is available
    in the BHMOperationData and the BHMDesign classes located in the
    com.teamcenter.behaviormodeling.common.xml package.
o Sets the XML file as the output in the XML field of the BHMOperationOutput object.
•   In the input XML file, you can provide two types of UIDs. These UIDs will be used to populate
    the Insert dialog box.
    o    The list of UIDs for the insert search operation. In the Insert dialog box, you can search using
         Teamcenter folders or Classification, or you can use Teamcenter search. You can provide
         UIDs only for one out of the three search options.
    o    The list of UIDs for the behavior models that you want to appear in the Model selected for
         Insert list of the Insert dialog box.
               </BrowseList>
            <!-- Specifies the UIDs of objects that will be displayed
                       in the Models selected for insert list
            -->
               <SelectList>
                 <UID>A6URBk7FI2ELbD</UID>
               </SelectList>
             </insertOperationOptions>
           </options>
         </BHMOperations>
  •      UIDs of objects that must always appear in the Models selected for insert list are added in the
         SelectList element.
  GT-POWER objects
  The following GT-POWER objects and relations are available once you install the Behavior Modeling
  integration features:
Headquarters
                                                              Europe
Granite Park One
                                                              Stephenson House
5800 Granite Parkway
                                                              Sir William Siemens Square
Suite 600
                                                              Frimley, Camberley
Plano, TX 75024
                                                              Surrey, GU16 8QD
USA
                                                              +44 (0) 1276 413200
+1 972 987 3000
                                                              Asia-Pacific
Americas
                                                              Suites 4301-4302, 43/F
Granite Park One
                                                              AIA Kowloon Tower, Landmark East
5800 Granite Parkway
                                                              100 How Ming Street
Suite 600
                                                              Kwun Tong, Kowloon
Plano, TX 75024
                                                              Hong Kong
USA
                                                              +852 2230 3308
+1 314 264 8499