IBM Support

How to prevent the codeUpdateCGTime timestamp from being added to model unit files in Rational Rhapsody

Question & Answer


Question

How do you disable the codeUpdateCGTime timestamp in IBM Rational Rhapsody?

Cause

When the codeCentric profile is globally applied to the component AND the property CG::General::IncrementalCodeGenAcrossSession[ is set to
true
, the codeUpdateCGTime timestamp is added to the unit file, for example:



- _id = GUID 224aa082-a9ce-439d-a2eb-fa915990358c;
- _myState = 8192;
- _name = "arg1";
- - codeUpdateCGTime = 9.15.2014::18:29:17;
+ - codeUpdateCGTime = 9.15.2014::18:39:0;
- _modifiedTimeWeak = 1.2.1990::0:0:0;
- _typeOf = { IHandle
- _m2Class = "IClass";


Disabling one of these will prevent this timestamp from being written to the repository.

Note, disabling this timestamp may have adverse or unexpected consequences to Code Generation/Roundtrip.

With the timestamp in some cases you experience issues with Diff/Merge and Configuration Management applications.

Answer

To disable the codeUpdateCGTime timestamp in Rational Rhapsody, you must either:

  • Set the property CG::General::IncrementalCodeGenAcrossSession to false in the codeCentric profile globally applied to the component

    or,

  • Not globally apply the codeCentric profile to the component

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21688161