TeamcenterKnowledge

MBSE Integration Services for Integrating Modeling Tools

updateCollection()

DataManagementImpl::CollectionOutput updateCollection ( const std::string inputData )

updateCollection() is used to:

  • Update properties on the models
  • Add or remove the association of models with other tool-authored artifacts
  • Update the properties of association between models
  • Update the model, submodel structure hierarchy

Use case 1 — Update properties on a model

The following JSON input string is sent to updateCollection to modify the description of the model. In the following example, "tcContainerIdentifier" - "wJa5Z1Ghr8jZAC" is the Teamcenter UID of the already existing item revision object.

{
  "AllContainers": {
    "toolIdentifier": "SAMPLE",
    "Containers": [
      {
        "containerIdentifier": "Battery_Identifier",
        "containerName": "Battery",
        "containerType": "Assembly",
        "tcContainerIdentifier": " wJa5Z1Ghr8jZAC ",
        "action": "update",
        "revAttributes": [
          {
            "attrName": "Revision_Description",
            "tcAttrName": "object_desc",
            "value": [ "This is a updated description" ]
          }
        ]
      }
    ]
  }
}

Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.xid1913857/xid1914678 · retrieved Fri Jul 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)