Engineering System Design

Engineering System Design

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Edit order of types using the API

    Posted 01/22/24 02:41 PM

    Hello,

    I might have uncovered a bug, but found a workaround for it. The sad part is that it seems to require an action which seems possible only using the GUI.

    My use case is: i have created a package containing several types. If i generate code (C++), some of the structs corresponding to the types are declared before some of the struct they depend on, eg:

    struct A {
    
        B b;
    
    };
    
    struct B {
    
        int i;
    
    };

    This code won't compile. If i edit the order of types, though, just moving a type fixes the code: this action seems only possible using the GUI, though. Is there a way to do it programmatically?

    Please note: i'm using Rhapsody 8.1.4,



    ------------------------------
    Francesco Benacci
    ------------------------------


  • 2.  RE: Edit order of types using the API

    Posted 01/23/24 04:11 AM

    Ciao Francesco, puoi scrivermi direttamente a alberto.sardini@it.ibm.com, così cerco di capire meglio il tuo problema.

    Grazie



    ------------------------------
    Alberto Sardini
    ------------------------------