IBM Support

How to generate Interop.rhapsody.dll when calling Rhapsody COM API

Question & Answer


Question

How can you generate Interop.rhapsody.dll when calling IBM Rational Rhapsody COM API?

Cause

Rhapsody Repository API consists of a set of COM interface that supports dual interfaces (COM and automation) which allow access from Visual Basic and any language implemented with COM bindings.

Like all COM-based APIs, user application developed by VB or other language need to refer to corresponding Interop assembly library to understand Rhapsody MetaData.

Answer

You can generate Interop.rhapsody.dll by adding the Rhapsody type library file (rhapsody.tlb) to your VB application as per steps explained Microsoft Article How to: Add References to Type Libraries.

Once rhapsody.tlb becomes available, Visual Studio would automatically generate MetaData assembly file (Interop.rhapsody.dll).

  1. Install the COM DLL or EXE file on your computer, unless a Windows Setup.exe file performs the installation for you.

  2. From the Project menu, select References

  3. Select the COM tab

  4. Select the type library from the Available References list, or browse for the rhapsody.tlb file

    Note: File rhapsody.tlb is bundled with the product and can be found under the Rhapsody installation root directory

  5. Click OK

  6. Right-click the newly added reference, and then click Properties

  7. In the Properties window, make sure that the Embed Interop Types property is set to True. This causes Visual Studio to embed type information for COM types in your executable, eliminating the need to deploy primary interop assemblies with your application.

Note: Beyond the info mentioned above, there are other options available to you for generating an Interop assembly containing type MetaData. Refer to Microsoft Article Importing a Type Library as an Assembly for details.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.0.1;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.5.3.3;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21639424