IBM Support

Adding a SysML Block Definition Diagram using the Rhapsody Java API

Question & Answer


Question

How do you add a SysML Block Definition Diagram using the Rhapsody Java API in IBM Rational Rhapsody?

Cause

You want to use the API to automate diagram creation but you cannot find the metaclass for the Block Definition Diagram

Answer




Download example source code here:

AddBddTest.javaAddBddTest.java

[{"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":"7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;7.6.1.5;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;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg22009251