Change GraphRep based on countChange GraphRep based on countRE: Change GraphRep based on countPascal Siboldhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7284812016-12-05T15:42:01Z2016-12-05T15:20:52ZIf there is a solution, which scales better (e.g. on count of amount of clicked checkboxes), I would still be interested. For the example with the checkboxes I have shown, there are just too many possibilities.Pascal Sibold2016-12-05T15:20:52ZRE: Change GraphRep based on countPascal Siboldhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7284392016-12-05T13:48:27Z2016-12-05T13:35:31ZHello<br /><br />I also solved it myself today with nearly the same solution but yours is even better with referencing to the .leo file only.<br /><br />Thanks a lot!<br /><br />Regards,<br />PascalPascal Sibold2016-12-05T13:35:31ZRE: Change GraphRep based on counthttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7283702016-12-05T12:00:16Z2016-12-05T11:59:07ZDear Pascal,<br />One way to do this is to include files with the GraphRep Code depending on the values of the attributes. <br />For an example I will take the second group “Physical Transfer Status”.<br /> In the AttrRep you have the following attributes:<br /> GROUP "Physical Transfer Status"<br /> ATTR "Hospital approval" ctrltype:check checked-value:"Yes" unchecked-value:"No"<br /> ATTR "Reha approval" ctrltype:check checked-value:"Yes" unchecked-value:"No"<br /> ATTR "Patient in reha" ctrltype:check checked-value:"Yes" unchecked-value:"No"<br /> ENDGROUP<br /><br />To achieve the change of the appearance depending on checked boxes you can operate with If...Else statements. The GraphRep of your modelling element could look as follows:<br /> GRAPHREP<br /><br />AVAL hoap:"Hospital approval"<br /> AVAL reap:"Reha approval"<br /> AVAL painre:"Patient in reha"<br /><br />IF (hoap="Yes" AND reap="Yes" AND painre="Yes") {<br /> @INCLUDE "db:\\appearance1_GraphRep.leo"<br /> }<br /> ELSIF (hoap="No" AND reap="Yes" AND painre="Yes") {<br /> @INCLUDE "db:\\appearance2_GraphRep.leo"<br /> }<br /> ELSE {<br /> @INCLUDE "db:\\appearance3_GraphRep.leo"<br /> }<br /><br />I hope I could help.2016-12-05T11:59:07ZRE: Change GraphRep based on countPascal Siboldhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7252472016-12-01T14:07:38Z2016-12-01T14:07:31ZHere an example of the checkboxes on the element:Pascal Sibold2016-12-01T14:07:31ZChange GraphRep based on countPascal Siboldhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=7250232016-12-01T13:35:06Z2016-12-01T05:45:43ZHello<br /><br />I have a modelling element, which should change it's appearance based on how many checkboxes are checked while each checkbox is an attribute (enumeration). When adding the modelling element to a new model in the modelling toolkit, the initial shape has to be shown (without any checkboxes checked). Whenever the user does changes on the checkbox, the appearance shall change.<br /><br />Is there any script or anything available to solve this? GraphRep code for each of the different "states" is available.<br /><br />Thanks and best regards,<br />PascalPascal Sibold2016-12-01T05:45:43Z