{"id":723,"date":"2014-03-26T16:34:15","date_gmt":"2014-03-26T16:34:15","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=723"},"modified":"2022-02-03T11:25:02","modified_gmt":"2022-02-03T17:25:02","slug":"bentley-search-path-ebs-files","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/","title":{"rendered":"Bentley Search Path for .ebs files"},"content":{"rendered":"<p>When I was making new components from scratch, I made an error in the search path and got an error popup &#8211; but it revealed something I suspected &#8211; an object oriented structure of Bentley where you could override and add classes and associated files &#8211; in this case .ebs files. This lists the search paths it uses for finding ebs files. Interestingly, it FIRST searches a directory with the same name as the spec IN THE SPECS directory. This means &#8230; that if you have ebs files you can have them travel with the spec independent of the project.<\/p>\n<p>In the context I am working with &#8211; I was told &#8211; no this cannot \u00a0be done (even though it clearly can)\u00a0so rather than change the world leaps at a time, I stayed safe and put things on the CableT\\modules directory instead &#8211; a leaf in the project because of the people in the project &#8211; they are VERY conservative and they don&#8217;t delve into this level.<\/p>\n<p>Looking below &#8211; we also see that if you have a company wide change for EVERY project &#8211; putting it on the c: drive is ok too. DO NOT put it in multiple places because you might drive the following group(s) who use this project insane when they delete functionality and it&#8230; it does not disappear!<\/p>\n<p>Search path order:<\/p>\n<ul>\n<li>%APPROJDB%\\Spec\\Mmlights<\/li>\n<li>&lt;project dir&gt;\\Config\\modules\\cablet<\/li>\n<li>c:\\Program Files (x86)\\Bentley\\Plant V8i\\Modules\\cablet<\/li>\n<li>&lt;project dir&gt;\\Config\\modules\\base<\/li>\n<li>c:\\Program Files (x86)\\Bentley\\Plant V8i\\Modules\\base<\/li>\n<\/ul>\n<p><!--more-->Other information is that classes can be overwritten because if you look at that similar search path, the class.ini, spec.ini, methods.ini files are all along those search paths too &#8211; so the WHOLE class structure that you see in the class editor program is constructed from these .ini files along the way.<\/p>\n<p>Your .ini files have to be in place for specification generator (spec gen), class editor and the project to properly run.<\/p>\n<p>Other Links:<\/p>\n<ul>\n<li><a href=\"http:\/\/elbsolutions.com\/projects\/notes-on-making-a-new-class-for-bentley-autoplant-electrical-components-raceway\/\" target=\"_blank\" rel=\"noopener noreferrer\">see my step by step article from which this info came<\/a> &#8211; I thought I would pull it out explicitly with some discussion about paths<\/li>\n<li><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When I was making new components from scratch, I made an error in the search path and got an error popup &#8211; but it revealed something I suspected &#8211; an object oriented structure of Bentley where you could override and add classes and associated files &#8211; in this case .ebs files. This lists the search [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-bentley-autoplant"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bentley Search Path for .ebs files - ELB Solutions.com Inc.<\/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:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bentley Search Path for .ebs files - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"When I was making new components from scratch, I made an error in the search path and got an error popup &#8211; but it revealed something I suspected &#8211; an object oriented structure of Bentley where you could override and add classes and associated files &#8211; in this case .ebs files. This lists the search [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-26T16:34:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:25:02+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\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:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Bentley Search Path for .ebs files\",\"datePublished\":\"2014-03-26T16:34:15+00:00\",\"dateModified\":\"2022-02-03T17:25:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/\"},\"wordCount\":375,\"articleSection\":[\"B-AutoPLANT\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/\",\"name\":\"Bentley Search Path for .ebs files - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2014-03-26T16:34:15+00:00\",\"dateModified\":\"2022-02-03T17:25:02+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/bentley-search-path-ebs-files\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bentley Search Path for .ebs files\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bentley Search Path for .ebs files - ELB Solutions.com Inc.","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:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/","og_locale":"en_US","og_type":"article","og_title":"Bentley Search Path for .ebs files - ELB Solutions.com Inc.","og_description":"When I was making new components from scratch, I made an error in the search path and got an error popup &#8211; but it revealed something I suspected &#8211; an object oriented structure of Bentley where you could override and add classes and associated files &#8211; in this case .ebs files. This lists the search [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2014-03-26T16:34:15+00:00","article_modified_time":"2022-02-03T17:25:02+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Bentley Search Path for .ebs files","datePublished":"2014-03-26T16:34:15+00:00","dateModified":"2022-02-03T17:25:02+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/"},"wordCount":375,"articleSection":["B-AutoPLANT"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/","url":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/","name":"Bentley Search Path for .ebs files - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2014-03-26T16:34:15+00:00","dateModified":"2022-02-03T17:25:02+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/bentley-search-path-ebs-files\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Bentley Search Path for .ebs files"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=723"}],"version-history":[{"count":4,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":2813,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/723\/revisions\/2813"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}