ADD_INTERREF to modelADD_INTERREF to modelRE: ADD_INTERREF to modelMateusz Dziedzichttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=14384902018-12-10T11:18:01Z2018-12-10T11:17:02ZDear Valentina,<br /><br />If you have defined a object or model reference only for one model type, then only the models of the specified model type will be shown. Thus, you need to define a reference for each model type.<br /><br />Example: Only for model type “Practice”:<div class="code"><span class="code-lines">1</span>OBJREF<br /><span class="code-lines">2</span> mt:"Practice"<br /><span class="code-lines">3</span> c:"B"<br /><span class="code-lines">4</span> max:100<br /></div><br />Example: For model type “Practice” and “Sample”: <div class="code"><span class="code-lines">1</span>OBJREF<br /><span class="code-lines">2</span> mt:"Practice"<br /><span class="code-lines">3</span> c:"B"<br /><span class="code-lines">4</span> max:100<br /><span class="code-lines">5</span>OBJREF<br /><span class="code-lines">6</span> mt:"Sample"<br /><span class="code-lines">7</span> c:"A"<br /><span class="code-lines">8</span> max:100<br /></div>Mateusz Dziedzic2018-12-10T11:17:02ZRE: ADD_INTERREF to modelValentina Tessahttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=14181822018-11-17T16:35:13Z2018-11-17T16:35:13Z!!!UPDATE!!!<br /><br />Hi all,<br /><br />I menaged to reference a object as well as a model - both work now. However, I realized that the problem is the fact that the model I want to reference to is not visible when I click on the "+" button to add a reference. Thus, it also does not work when I try to add the reference with ADD_INTERREF instead of doing it manually. Why are only some models shown when I try to add an interref and not all the ones I have in my project?<br /><br />Thanks a lot again in advance!<br /><br />Regards<br />ValentinaValentina Tessa2018-11-17T16:35:13ZADD_INTERREF to modelValentina Tessahttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=14088692018-11-05T12:35:33Z2018-11-05T12:33:59ZDear Team,<br /><br />I have a first model called Map, where the class Arm has 2 interref attributes called (1) <em>Device </em>and (2) <em>Capabilities</em>. The user should be able to model an object of class Arm in the Map Model and choose the instance of the arm, which is modelled in the Laboratory Model, through the <em>Device </em>attribute. The instance of the robots in the Labotory Model contains an interref attribute also called <em>Capabilities</em>, which points to various other models where the capabilities are modelled. <br /><br />Now, my idea is that, when the user selects the instance of the arm (i.e. Arm1) from the <em>Device </em>attribute in the Map model, automatically the attribute <em>Capabilitites </em>(of the map model) should show the same references to the capabilities as shown in the <em>Capabilities </em>attribute of the Laboratory model for the reffered arm object.<br />I now used GET_INTERREF to get all the referenced model from the Arm of the Laboratory model (this works fine) but I am having troubles in adding them into the interref attribute of the Arm in the Map Model. If I understand right, ADD_INTERREF only works for getting references to instances and not for references to models. I could not figure out how to solve this. <br /><br />Thanks in advance for your help<br />Regards<br />ValentinaValentina Tessa2018-11-05T12:33:59Z