{"id":2705,"date":"2018-05-17T09:32:18","date_gmt":"2018-05-17T07:32:18","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=2705"},"modified":"2018-06-07T08:31:18","modified_gmt":"2018-06-07T06:31:18","slug":"sparx-systems-enterprise-architect-sql-to-get-xy-coordinates-width-and-height-of-diagram-objects","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=2705","title":{"rendered":"Sparx Systems Enterprise Architect: SQL To get (x,y) Coordinates , width and height of Diagram Objects"},"content":{"rendered":"<h1>Problem<\/h1>\n<p>A SQL Statement is needed to get the coordinates of Diagram Object like Activities, Classes, Lanes and so on&#8230;<br \/>\nIn this statement only the stereotypes &#8218;Project Phase&#8216;, &#8218;Gate&#8216;, &#8218;Product Maturity&#8216;, &#8218;Lane&#8216; of the diagram &#8218;Product Creation Process&#8216; will be selected<\/p>\n<h1>Approach<\/h1>\n<p>Usage of MDB Plus or another SQL Tool<\/p>\n<h1>Solution<\/h1>\n<p>This example is for Access \/ .eap-Files<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT  dia.Name As Diagram,\r\n                objstart.stereotype,\r\n                diaobj.RectLeft As x,\r\n                diaobj.RectTop As y,\r\n                diaobj.RectRight-diaobj.RectLeft As Width,\r\n                Abs(diaobj.RectBottom-diaobj.RectTop) As Height,\r\n                objstart.Object_ID,                               \r\n                objstart.Alias,\r\n                objstart.&#x5B;Name] As ProcessStep\r\nFROM                                                 \r\n((\r\n                &#x5B;t_diagram] dia LEFT JOIN (Select Diagram_ID, Object_ID, RectLeft, RectTop, RectRight, RectBottom from &#x5B;t_diagramobjects]) diaobj ON dia.&#x5B;Diagram_ID]=diaobj.&#x5B;Diagram_ID])\r\n                                LEFT JOIN &#x5B;t_object] objstart ON objstart.&#x5B;Object_ID]=diaobj.&#x5B;Object_ID])\r\nWHERE dia.Name='Product Creation Process'\r\nAND objstart.stereotype IN ('Project Phase', 'Gate', 'Product Maturity', 'Lane')\r\nORDER BY 1,2,3,4,5,6,7,8,9                                                                                                           \r\n<\/pre>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D2705&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem A SQL Statement is needed to get the coordinates of Diagram Object like Activities, Classes, Lanes and so on&#8230; In this statement only the stereotypes &#8218;Project Phase&#8216;, &#8218;Gate&#8216;, &#8218;Product Maturity&#8216;, &#8218;Lane&#8216; of the diagram &#8218;Product Creation Process&#8216; will be selected Approach Usage of MDB Plus or another SQL Tool Solution This example is for &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=2705\" class=\"more-link\"><span class=\"screen-reader-text\">Sparx Systems Enterprise Architect: SQL To get (x,y) Coordinates , width and height of Diagram Objects<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16,10,11,28,43],"tags":[],"class_list":["post-2705","post","type-post","status-publish","format-standard","hentry","category-access","category-datenbanken","category-ms-sql-server","category-sparx-systems-enterprise-architect","category-sql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-HD","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2705"}],"version-history":[{"count":2,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2705\/revisions"}],"predecessor-version":[{"id":2709,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2705\/revisions\/2709"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}