IBM Support

What is the method for importing external elements?

Question & Answer


Question

What is the method for importing external elements?

Answer

The "External Elements" section of the Rhapsody User Guide explains the steps in detail for importing the external code and using it in Rhapsody. Below are some additional tips to help with importing external files:
 
* A new component is created for the external elements. When you create this external component, make it a library and make sure that only the external elements are in scope.  Also, make sure the non-external component(s) do have the external elements in scope.
 
* If you are importing the files as Component Files, the path to the files is set by the "Include Path" field of the external component.
 
* Make sure that the CG::File::AddToMakefile property is checked for the file(s) that represents the external class.
 
If you are using an external reference to the External Elements package, also remember the following:
 
* Remember to add the external component into the reference model.
 
* The "Path" field that you see in the features dialog for Package Files is is not preserved when you use the files as a reference. The "Include Path" field of the external component should have the real path to the files because Rhapsody looks for the files in the file system.
 
* It is recommended to add a <<Usage>> dependency of the reference model component on the external component. It will add the needed Include Path on building the reference model component code.
 
* When using Package files, it is important to hold the original package hierarchy in the reference model when adding the reverse engineering packages.
1409AnswerProduct versionPartner ContentInternal ContentCategoryReference IDAuthor

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

10376

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21323676