{"id":3016,"date":"2019-03-25T17:42:18","date_gmt":"2019-03-25T20:42:18","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/customizing-powercontrols-lib-library\/"},"modified":"2019-05-07T13:24:16","modified_gmt":"2019-05-07T16:24:16","slug":"customizing-powercontrols-lib-library","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/customizing-powercontrols-lib-library\/","title":{"rendered":"Customizing powercontrols.lib library."},"content":{"rendered":"<div align=\"justify\">\n<p><b>Question:<\/b><\/p>\n<p>Can the screen objects from <b>powercontrols.lib<\/b> library be customized?<\/p>\n<p><b>Solution:<\/b><\/p>\n<p>Yes, this is an open library and it can be edited. However, customizing <b>powercontrols.lib<\/b> requires some precautions. You must remember that this library is developed and maintained by Elipse, which means that if the user customizes any XControl, this customization will be lost once the library is occasionally updated.<\/p>\n<p>This article shows you the recommended way to customize an object from <b>powercontrols.lib<\/b>.<\/p>\n<p>1. Create a new library:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_1.jpg\" alt=\"\" width=\"311\" height=\"426\" align=\"Baseline\" border=\"0\" hspace=\"0\" vspace=\"0\" \/><\/div>\n<p>2. Create a new XControl inside this library:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_2.jpg\" alt=\"\" width=\"310\" height=\"424\" align=\"Baseline\" border=\"0\" hspace=\"0\" vspace=\"0\" \/><\/div>\n<p>3. Instantiate a Breaker object inside the new XControl:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_3.jpg\" alt=\"\" width=\"500\" height=\"262\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>&nbsp;<\/p>\n<div align=\"center\">\n<p><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_%204.jpg\" alt=\"\" width=\"500\" height=\"408\" align=\"Baseline\" border=\"0\" \/><\/p>\n<div align=\"left\">Notice that the object comprises the whole blue rectangle area surrounding the Breaker, and not only it&#8217;s visible part.<\/div>\n<\/div>\n<p>4. Next, perform all changes\/customizations desired (in this case, a circle next to the Breaker):<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_5.jpg\" alt=\"\" width=\"500\" height=\"331\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>Next, create its properties.<\/p>\n<p>5. Create <i>SourceObject <\/i>property (which must be exactly the same as the one from the original XControl):<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_6.jpg\" alt=\"\" width=\"500\" height=\"235\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>6. Link <i>SourceObject <\/i>property to the same internal property in the library. To do so, access MyBreaker&#8217;s <b>Design <\/b>tab; then, right-click Breaker1 and acess <b>Links <\/b>tab. Finally, link Breaker1&#8217;s <i>SourceObject <\/i>property to MyBreaker&#8217;s <i>SourceObject <\/i>property, according to the figure below:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Picture_7.jpg\" alt=\"\" width=\"500\" height=\"560\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>7 After this procedure, create the points referring to the terminals. To do so, use the option <b>Edit Connection Points<\/b>. The first point must be called <i>Terminal1<\/i>, and the suffix must be incremented to as many points as necessary (in this case, <i>Terminal1 <\/i>and <i>Terminal2<\/i>).<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_7.jpg\" alt=\"\" width=\"500\" height=\"62\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>Creating <i>Terminal1<\/i>:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_8.jpg\" alt=\"\" width=\"500\" height=\"311\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>Creating <i>Terminal2<\/i>:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_9.jpg\" alt=\"\" width=\"500\" height=\"312\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>8. After the points referring to the terminals have been created, create the other properties, according to the project&#8217;s needs (in this case, <i>Orientation <\/i>and <i>Show Terminals<\/i> properties):<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_10.jpg\" alt=\"\" width=\"500\" height=\"233\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p><strong>NOTE<\/strong>: For Elipse Power version 4.7 or higher, you will also need to create a <i>ColorMode<\/i> property.<\/p>\n<p>9. Finally, link the properties created here to their library&#8217;s respective internal properties, as seen on this tutorial&#8217;s step 6.<\/p>\n<p>This concludes the customization process. Now you will only need to register the library and use it in the project as needed.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question: Can the screen objects from powercontrols.lib library be customized? Solution: Yes, this is an open library and it can be edited. However, customizing powercontrols.lib requires some precautions. You must&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[825],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Customizing powercontrols.lib library. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Customizing powercontrols.lib library.\" \/>\n<meta property=\"og:description\" content=\"Question: Can the screen objects from powercontrols.lib library be customized? Solution: Yes, this is an open library and it can be edited. However, customizing powercontrols.lib requires some precautions. You must&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:42:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-07T16:24:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_1.jpg\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Customizing powercontrols.lib library.\",\"datePublished\":\"2019-03-25T20:42:18+00:00\",\"dateModified\":\"2019-05-07T16:24:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\"},\"wordCount\":327,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Elipse Power\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\",\"url\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\",\"name\":\"[:pt]Customizing powercontrols.lib library.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:42:18+00:00\",\"dateModified\":\"2019-05-07T16:24:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customizing powercontrols.lib library.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Customizing powercontrols.lib library. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Customizing powercontrols.lib library.[:] - Elipse Knowledgebase","og_description":"Question: Can the screen objects from powercontrols.lib library be customized? Solution: Yes, this is an open library and it can be edited. However, customizing powercontrols.lib requires some precautions. You must&hellip;","og_url":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:42:18+00:00","article_modified_time":"2019-05-07T16:24:16+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4693\/Figura_1.jpg"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Customizing powercontrols.lib library.","datePublished":"2019-03-25T20:42:18+00:00","dateModified":"2019-05-07T16:24:16+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/"},"wordCount":327,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Elipse Power"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/","url":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/","name":"[:pt]Customizing powercontrols.lib library.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:42:18+00:00","dateModified":"2019-05-07T16:24:16+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/customizing-powercontrols-lib-library\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Customizing powercontrols.lib library."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3016"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3016"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3016\/revisions"}],"predecessor-version":[{"id":6174,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3016\/revisions\/6174"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}