{"action":"closed","number":41,"pull_request":{"url":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/41","id":90441433,"html_url":"https://github.com/OpenModelica/OMEdit/pull/41","diff_url":"https://github.com/OpenModelica/OMEdit/pull/41.diff","patch_url":"https://github.com/OpenModelica/OMEdit/pull/41.patch","issue_url":"https://api.github.com/repos/OpenModelica/OMEdit/issues/41","number":41,"state":"closed","locked":false,"title":"Show simulation results in model diagram","user":{"login":"rfranke","id":4224368,"avatar_url":"https://avatars.githubusercontent.com/u/4224368?v=3","gravatar_id":"","url":"https://api.github.com/users/rfranke","html_url":"https://github.com/rfranke","followers_url":"https://api.github.com/users/rfranke/followers","following_url":"https://api.github.com/users/rfranke/following{/other_user}","gists_url":"https://api.github.com/users/rfranke/gists{/gist_id}","starred_url":"https://api.github.com/users/rfranke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfranke/subscriptions","organizations_url":"https://api.github.com/users/rfranke/orgs","repos_url":"https://api.github.com/users/rfranke/repos","events_url":"https://api.github.com/users/rfranke/events{/privacy}","received_events_url":"https://api.github.com/users/rfranke/received_events","type":"User","site_admin":false},"body":"- build on existing replacement of %par macros in annotation texts\r\n- only enabled when staying in modeling pane after simulation, i.e.\r\n  if switch to plot pane is disabled in simulation options\r\n- remove results from model diagram by removing them from variables browser\r\n\r\nSee the following example:\r\n```\r\npackage IconsWithValues\r\n  model Component\r\n    parameter Real p;\r\n    output Real y = sqrt(p);\r\n    annotation(Icon(graphics = {Text(origin = {-57, 36}, extent = {{-35, 16}, {149, -30}}, textString = \"p = %p\", fontName = \"DejaVu Sans Mono\"),  Rectangle(origin = {0, -1}, extent = {{-94, 93}, {94, -93}}), Text(origin = {-57, -30}, extent = {{-35, 16}, {149, -30}}, textString = \"y = %y\", fontName = \"DejaVu Sans Mono\")}, coordinateSystem(initialScale = 0.1)));\r\n  end Component;\r\n  model Test1\r\n    Component component1(p = 4) annotation(Placement(visible = true, transformation(origin = {3, 51}, extent = {{-43, -43}, {43, 43}}, rotation = 0)));\r\n  end Test1;\r\n  model Test2\r\n    extends Test1;\r\n    Component component2(p = 9)  annotation(Placement(visible = true, transformation(origin = {3, -47}, extent = {{-43, -43}, {43, 43}}, rotation = 0)));\r\n  end Test2;\r\nend IconsWithValues;\r\n```\r\n\r\nYou may:\r\n1. Disable \"Switch to plotting perspective after simulation\" under Tools->Options->Simulation\r\n2. Open and simulate Test1 or/and Test2 -- **results show up in the model diagram**\r\n3. Change parameters in the Variables browser and re-simulate -- **updates the model diagram**\r\n4. Remove results from variables browser -- **model diagram removes results as well**\r\n\r\n","created_at":"2016-10-21T20:48:28Z","updated_at":"2016-10-25T21:52:35Z","closed_at":"2016-10-25T21:52:35Z","merged_at":"2016-10-25T21:52:35Z","merge_commit_sha":"b522fda14c87e43015074c350b739276cd97bf5f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/41/commits","review_comments_url":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/41/comments","review_comment_url":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenModelica/OMEdit/issues/41/comments","statuses_url":"https://api.github.com/repos/OpenModelica/OMEdit/statuses/8b33d1fdfe19991156fbe53334dc0bdda5998110","head":{"label":"rfranke:dyntext","ref":"dyntext","sha":"8b33d1fdfe19991156fbe53334dc0bdda5998110","user":{"login":"rfranke","id":4224368,"avatar_url":"https://avatars.githubusercontent.com/u/4224368?v=3","gravatar_id":"","url":"https://api.github.com/users/rfranke","html_url":"https://github.com/rfranke","followers_url":"https://api.github.com/users/rfranke/followers","following_url":"https://api.github.com/users/rfranke/following{/other_user}","gists_url":"https://api.github.com/users/rfranke/gists{/gist_id}","starred_url":"https://api.github.com/users/rfranke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfranke/subscriptions","organizations_url":"https://api.github.com/users/rfranke/orgs","repos_url":"https://api.github.com/users/rfranke/repos","events_url":"https://api.github.com/users/rfranke/events{/privacy}","received_events_url":"https://api.github.com/users/rfranke/received_events","type":"User","site_admin":false},"repo":{"id":51476755,"name":"OMEdit","full_name":"rfranke/OMEdit","owner":{"login":"rfranke","id":4224368,"avatar_url":"https://avatars.githubusercontent.com/u/4224368?v=3","gravatar_id":"","url":"https://api.github.com/users/rfranke","html_url":"https://github.com/rfranke","followers_url":"https://api.github.com/users/rfranke/followers","following_url":"https://api.github.com/users/rfranke/following{/other_user}","gists_url":"https://api.github.com/users/rfranke/gists{/gist_id}","starred_url":"https://api.github.com/users/rfranke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfranke/subscriptions","organizations_url":"https://api.github.com/users/rfranke/orgs","repos_url":"https://api.github.com/users/rfranke/repos","events_url":"https://api.github.com/users/rfranke/events{/privacy}","received_events_url":"https://api.github.com/users/rfranke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rfranke/OMEdit","description":"A Modelica connection editor for OpenModelica.","fork":true,"url":"https://api.github.com/repos/rfranke/OMEdit","forks_url":"https://api.github.com/repos/rfranke/OMEdit/forks","keys_url":"https://api.github.com/repos/rfranke/OMEdit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rfranke/OMEdit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rfranke/OMEdit/teams","hooks_url":"https://api.github.com/repos/rfranke/OMEdit/hooks","issue_events_url":"https://api.github.com/repos/rfranke/OMEdit/issues/events{/number}","events_url":"https://api.github.com/repos/rfranke/OMEdit/events","assignees_url":"https://api.github.com/repos/rfranke/OMEdit/assignees{/user}","branches_url":"https://api.github.com/repos/rfranke/OMEdit/branches{/branch}","tags_url":"https://api.github.com/repos/rfranke/OMEdit/tags","blobs_url":"https://api.github.com/repos/rfranke/OMEdit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rfranke/OMEdit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rfranke/OMEdit/git/refs{/sha}","trees_url":"https://api.github.com/repos/rfranke/OMEdit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rfranke/OMEdit/statuses/{sha}","languages_url":"https://api.github.com/repos/rfranke/OMEdit/languages","stargazers_url":"https://api.github.com/repos/rfranke/OMEdit/stargazers","contributors_url":"https://api.github.com/repos/rfranke/OMEdit/contributors","subscribers_url":"https://api.github.com/repos/rfranke/OMEdit/subscribers","subscription_url":"https://api.github.com/repos/rfranke/OMEdit/subscription","commits_url":"https://api.github.com/repos/rfranke/OMEdit/commits{/sha}","git_commits_url":"https://api.github.com/repos/rfranke/OMEdit/git/commits{/sha}","comments_url":"https://api.github.com/repos/rfranke/OMEdit/comments{/number}","issue_comment_url":"https://api.github.com/repos/rfranke/OMEdit/issues/comments{/number}","contents_url":"https://api.github.com/repos/rfranke/OMEdit/contents/{+path}","compare_url":"https://api.github.com/repos/rfranke/OMEdit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rfranke/OMEdit/merges","archive_url":"https://api.github.com/repos/rfranke/OMEdit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rfranke/OMEdit/downloads","issues_url":"https://api.github.com/repos/rfranke/OMEdit/issues{/number}","pulls_url":"https://api.github.com/repos/rfranke/OMEdit/pulls{/number}","milestones_url":"https://api.github.com/repos/rfranke/OMEdit/milestones{/number}","notifications_url":"https://api.github.com/repos/rfranke/OMEdit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rfranke/OMEdit/labels{/name}","releases_url":"https://api.github.com/repos/rfranke/OMEdit/releases{/id}","deployments_url":"https://api.github.com/repos/rfranke/OMEdit/deployments","created_at":"2016-02-10T22:19:18Z","updated_at":"2016-02-10T22:19:20Z","pushed_at":"2016-10-25T10:47:52Z","git_url":"git://github.com/rfranke/OMEdit.git","ssh_url":"git@github.com:rfranke/OMEdit.git","clone_url":"https://github.com/rfranke/OMEdit.git","svn_url":"https://github.com/rfranke/OMEdit","homepage":null,"size":9254,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenModelica:master","ref":"master","sha":"05d565c39313f371dff5acf878b136ac3bb4031d","user":{"login":"OpenModelica","id":4006504,"avatar_url":"https://avatars.githubusercontent.com/u/4006504?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenModelica","html_url":"https://github.com/OpenModelica","followers_url":"https://api.github.com/users/OpenModelica/followers","following_url":"https://api.github.com/users/OpenModelica/following{/other_user}","gists_url":"https://api.github.com/users/OpenModelica/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenModelica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenModelica/subscriptions","organizations_url":"https://api.github.com/users/OpenModelica/orgs","repos_url":"https://api.github.com/users/OpenModelica/repos","events_url":"https://api.github.com/users/OpenModelica/events{/privacy}","received_events_url":"https://api.github.com/users/OpenModelica/received_events","type":"Organization","site_admin":false},"repo":{"id":34974921,"name":"OMEdit","full_name":"OpenModelica/OMEdit","owner":{"login":"OpenModelica","id":4006504,"avatar_url":"https://avatars.githubusercontent.com/u/4006504?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenModelica","html_url":"https://github.com/OpenModelica","followers_url":"https://api.github.com/users/OpenModelica/followers","following_url":"https://api.github.com/users/OpenModelica/following{/other_user}","gists_url":"https://api.github.com/users/OpenModelica/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenModelica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenModelica/subscriptions","organizations_url":"https://api.github.com/users/OpenModelica/orgs","repos_url":"https://api.github.com/users/OpenModelica/repos","events_url":"https://api.github.com/users/OpenModelica/events{/privacy}","received_events_url":"https://api.github.com/users/OpenModelica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenModelica/OMEdit","description":"A Modelica connection editor for OpenModelica.","fork":false,"url":"https://api.github.com/repos/OpenModelica/OMEdit","forks_url":"https://api.github.com/repos/OpenModelica/OMEdit/forks","keys_url":"https://api.github.com/repos/OpenModelica/OMEdit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenModelica/OMEdit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenModelica/OMEdit/teams","hooks_url":"https://api.github.com/repos/OpenModelica/OMEdit/hooks","issue_events_url":"https://api.github.com/repos/OpenModelica/OMEdit/issues/events{/number}","events_url":"https://api.github.com/repos/OpenModelica/OMEdit/events","assignees_url":"https://api.github.com/repos/OpenModelica/OMEdit/assignees{/user}","branches_url":"https://api.github.com/repos/OpenModelica/OMEdit/branches{/branch}","tags_url":"https://api.github.com/repos/OpenModelica/OMEdit/tags","blobs_url":"https://api.github.com/repos/OpenModelica/OMEdit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenModelica/OMEdit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenModelica/OMEdit/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenModelica/OMEdit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenModelica/OMEdit/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenModelica/OMEdit/languages","stargazers_url":"https://api.github.com/repos/OpenModelica/OMEdit/stargazers","contributors_url":"https://api.github.com/repos/OpenModelica/OMEdit/contributors","subscribers_url":"https://api.github.com/repos/OpenModelica/OMEdit/subscribers","subscription_url":"https://api.github.com/repos/OpenModelica/OMEdit/subscription","commits_url":"https://api.github.com/repos/OpenModelica/OMEdit/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenModelica/OMEdit/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenModelica/OMEdit/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenModelica/OMEdit/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenModelica/OMEdit/contents/{+path}","compare_url":"https://api.github.com/repos/OpenModelica/OMEdit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenModelica/OMEdit/merges","archive_url":"https://api.github.com/repos/OpenModelica/OMEdit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenModelica/OMEdit/downloads","issues_url":"https://api.github.com/repos/OpenModelica/OMEdit/issues{/number}","pulls_url":"https://api.github.com/repos/OpenModelica/OMEdit/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenModelica/OMEdit/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenModelica/OMEdit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenModelica/OMEdit/labels{/name}","releases_url":"https://api.github.com/repos/OpenModelica/OMEdit/releases{/id}","deployments_url":"https://api.github.com/repos/OpenModelica/OMEdit/deployments","created_at":"2015-05-03T05:30:43Z","updated_at":"2016-05-15T22:24:33Z","pushed_at":"2016-10-25T21:52:35Z","git_url":"git://github.com/OpenModelica/OMEdit.git","ssh_url":"git@github.com:OpenModelica/OMEdit.git","clone_url":"https://github.com/OpenModelica/OMEdit.git","svn_url":"https://github.com/OpenModelica/OMEdit","homepage":null,"size":9877,"stargazers_count":6,"watchers_count":6,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":4,"forks":17,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/41"},"html":{"href":"https://github.com/OpenModelica/OMEdit/pull/41"},"issue":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/issues/41"},"comments":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/OpenModelica/OMEdit/statuses/8b33d1fdfe19991156fbe53334dc0bdda5998110"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lenaRB","id":13718289,"avatar_url":"https://avatars.githubusercontent.com/u/13718289?v=3","gravatar_id":"","url":"https://api.github.com/users/lenaRB","html_url":"https://github.com/lenaRB","followers_url":"https://api.github.com/users/lenaRB/followers","following_url":"https://api.github.com/users/lenaRB/following{/other_user}","gists_url":"https://api.github.com/users/lenaRB/gists{/gist_id}","starred_url":"https://api.github.com/users/lenaRB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenaRB/subscriptions","organizations_url":"https://api.github.com/users/lenaRB/orgs","repos_url":"https://api.github.com/users/lenaRB/repos","events_url":"https://api.github.com/users/lenaRB/events{/privacy}","received_events_url":"https://api.github.com/users/lenaRB/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":4,"additions":133,"deletions":25,"changed_files":6}}
{"actor":{"display_login":"lenaRB"}}