{"id":866,"date":"2014-09-08T16:00:05","date_gmt":"2014-09-08T16:00:05","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=866"},"modified":"2022-02-03T11:25:00","modified_gmt":"2022-02-03T17:25:00","slug":"autocad-auto-cleanup-script-close","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/","title":{"rendered":"AutoCAD auto cleanup &#8211; a script on close"},"content":{"rendered":"<p>Research links:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.augi.com\/library\/cleaning-up-autocad-drawings\" target=\"_blank\" rel=\"noopener noreferrer\">talk of general cleanup that one should do<\/a><\/li>\n<li>triggers in AutoCAD are called <a href=\"http:\/\/www.afralisp.net\/visual-lisp\/tutorials\/reactors-part-1.php\" target=\"_blank\" rel=\"noopener noreferrer\">reactors (this is a good starter article)<\/a><\/li>\n<li>A colleague mentioned not to do anything that takes up too much time on a document close reactor &#8211; because it triggers AFTER the close has been issued.\n<ul>\n<li>I suggested on a save? And the answer was yes, overwrite the qsave function and call a qsave at the end of that routine.<\/li>\n<\/ul>\n<\/li>\n<li>we are looking for a <a href=\"http:\/\/knowledge.autodesk.com\/support\/autocad-mechanical\/downloads\/caas\/CloudHelp\/cloudhelp\/2015\/ENU\/AutoCAD-AutoLISP\/files\/GUID-EC61BEC2-39B9-4CD1-BE3B-7781DF1E3530-htm.html\" target=\"_blank\" rel=\"noopener noreferrer\">drawing reactor<\/a> &#8211; when the doc saves. It mentions to use the vlr-types command to return a complete list of available reactor types.<\/li>\n<li>a &#8220;before close&#8221; reactor &#8230; almost exists &#8211; <a href=\"http:\/\/forums.autodesk.com\/t5\/visual-lisp-autolisp-and-general\/beginclose-or-begin-save-reactor\/td-p\/2751198\" target=\"_blank\" rel=\"noopener noreferrer\">read this<\/a>. Yes &#8211; this is the ticket. Change &#8220;CLOSE&#8221; to &#8220;QSAVE&#8221; or &#8220;QUIT&#8221; &#8230; or all 3 if you wish. It works.<\/li>\n<\/ul>\n<p><!--more-->What is being attempted at the end of the day is to overcome shortcomings in Bentley&#8217;s AutoPLANT when components in the dwg model exist and are not synced to the database and vice-versa. Here are some general Bentley clean up articles.<\/p>\n<ul>\n<li><script src=\"\/\/www.google-analytics.com\/analytics.js\" async=\"\" type=\"mce-no\/type\"><\/script><script src=\"\/\/www.google-analytics.com\/analytics.js\" async=\"\" type=\"mce-no\/type\"><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\nwindow.NREUM||(NREUM={});NREUM.info = {\"beacon\":\"\",\"errorBeacon\":\"bam.nr-data.net\",\"licenseKey\":\"\",\"applicationID\":\"\",\"transactionName\":\"MQZXZkoHW0NYVUQNWQhMdGFoSUFYXFtVFxkBEVpHSBUaV1xYVRZfBUxCW1MPRh9JV1cBGAcQRUo=\",\"queueTime\":0,\"applicationTime\":155,\"ttGuid\":\"4CBB231D82237843\",\"agent\":\"\"}\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\"><\/script><script src=\"\/utility\/jquery\/jquery-1.7.2.min.js?LastChanged=634744992400000000\" type=\"mce-text\/javascript\"><\/script><script src=\"\/utility\/jquery\/telligent.glow.min.js?LastChanged=635058807000000000\" type=\"mce-text\/javascript\"><\/script><script src=\"\/utility\/jquery\/jquery.validate.min.js?LastChanged=634745017740000000\" type=\"mce-text\/javascript\"><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\ntry { jQuery.extend(jQuery.validator.messages,{required:'This field is required.',remote:'Please fix this field.',date:'Please enter a valid date.',dateISO:'Please enter a valid date (ISO).',number:'Please enter a valid number.',digits:'Please enter only digits.',creditcard:'Please enter a valid credit card number.',equalTo:'Please enter the same value again.',accept:'Please enter a value with a valid extension.',maxlength:jQuery.validator.format('Please enter no more than {0} characters.'),minlength:jQuery.validator.format('Please enter at least {0} characters.'),rangelength:jQuery.validator.format('Please enter a value between {0} and {1} characters long.'),range:jQuery.validator.format('Please enter a value between {0} and {1}.'),max:jQuery.validator.format('Please enter a value less than or equal to {0}.'),min:jQuery.validator.format('Please enter a value greater than or equal to {0}.')}); } catch(e) { };\n\/\/ ]]><\/script><script src=\"\/utility\/jquery\/telligent.evolution.min.js?LastChanged=635301570580000000\" type=\"mce-text\/javascript\"><\/script><script src=\"\/utility\/images\/glow\/plupload.silverlight.js?LastChanged=634795335340000000\" type=\"mce-text\/javascript\"><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\ntry { jQuery.telligent.evolution.site.configure({baseUrl:'\\\/',isRemote:false,remoteUrlEncodePattern:'',monthNames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],dayNames:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],authorizationCookieName:'AuthorizationCookie',defaultErrorMessage:'An error occurred.  Please try again or contact your administrator.',defaultMultiErrorMessagePrefix:'The following errors occurred:  ',silverlightFileUploadEnabled:true});\njQuery.extend($.fn.evolutionUserFileTextBox.defaults,{removeText:'Remove',selectText:'Select\\\/Upload...',noFileText:'No File Selected'});\njQuery.telligent.evolution.navigationConfirmation.configure({message:'==============================\\r\\nUnless you save before leaving this page, you will lose any changes you have made.\\r\\n=============================='});\njQuery.telligent.evolution.validation.registerExtensions({passwordInvalidMessage:'Password contains invalid chars ...',passwordRegex:'^(.*)$',emailInvalidMessage:'Your email address is invalid.',emailRegex:'^\\\\w+([-+.]\\\\w+)*@\\\\w+([-.]\\\\w+)*\\\\.\\\\w+([-.]\\\\w+)*$',usernameInvalidMessage:'Your sign in name does not meet the requirements for this site.',usernameRegex:'^[a-zA-Z0-9_\\\\- @\\\\.]+$',emailsInvalidMessage:'One or more emails is invalid',urlInvalidMessage:'URL not in correct format',urlRegex:'^((ftp|http|https|mailto|mms):|\\\/|#|~\\\/)'});\njQuery.extend(jQuery.fn.evolutionLike.defaults,{likeText:'Like',unlikeText:'Unlike',modalTitleText:'People who like this',modalShowMoreText:'Show More',whoLikesOtherText:'<a href=\\\"{user_profile_url}\\\" class=\\\"internal-link view-user-profile\\\">{user_display_name}<\\\/a> likes this',whoLikesOtherTwoText:'<a href=\\\"{user_profile_url}\\\" class=\\\"internal-link view-user-profile\\\">{user_display_name}<\\\/a> and <span class=\\\"who-likes\\\">1 other<\\\/span> like this',whoLikesOtherMultipleText:'<a href=\\\"{user_profile_url}\\\" class=\\\"internal-link view-user-profile\\\">{user_display_name}<\\\/a> and <span class=\\\"who-likes\\\">{count} others<\\\/span> like this',whoLikesAccessingText:'You like this',whoLikesAccessingTwoText:'You and <span class=\\\"who-likes\\\">1 other<\\\/span> like this',whoLikesAccessingMultipleText:'You and <span class=\\\"who-likes\\\">{count} others<\\\/span> like this'});\njQuery.extend(jQuery.fn.evolutionInlineTagEditor.defaults,{editButtonText:'Edit tags',selectTagsText:'Select tags',saveTagsText:'Save',cancelText:'Cancel'});\njQuery.extend(jQuery.fn.evolutionStarRating.defaults,{titles:['Terrible','Poor','Fair','Average','Good','Excellent'],ratingMessageFormat:'Average rating: {rating} out of {count} ratings.'});\njQuery.extend(jQuery.fn.evolutionModerate.defaults,{moderateLinkText:'moderate',reportLinkText:'Flag as spam\\\/abuse',reportedLinkText:'Flagged as spam\\\/abuse',reportedNotificationMessageText:'{NAME}\\'s post has been flagged. <strong>Thank you for your feedback.<\\\/strong>'});\njQuery.extend(jQuery.fn.evolutionBookmark.defaults,{deleteBookmarkText:'Unbookmark {content_type_name}',addBookmarkText:'Bookmark this {content_type_name}',processingText:'...'});\n} catch(e) { };\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\n(function($){\n$.telligent.evolution.ui.components['forumreplystory-parent']  = {\n\tadd: function(elm, options) {\n        var elm = $(elm), parent = null;\n\t\telm.bind('click', function(e){\n            e.preventDefault();\n\t\t\tparent = parent || $('#' + elm.data('parent'));\n            if(parent.is(':visible')) {\n                parent.stop().slideUp(150);\n                elm.html('View original post');\n            } else {\n                parent.stop().slideDown(150);\n                elm.html('Hide original post');\n            }\n\t\t});\n\t}\n};\n}(jQuery));\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\n(function($){\n$.telligent.evolution.ui.components['wikipagestory-revisions']  = {\n\tadd: function(elm, options) {\n        var elm = $(elm), revisions;\n\t\telm.bind('click', function(e){\n\t\t\trevisions = revisions || $('#' + elm.data('revisions'));\n            e.preventDefault();\n            if(revisions.is(':visible')) {\n                revisions.stop().slideUp(150);\n                elm.html('Show revision history');\n            } else {\n                revisions.stop().slideDown(150);\n                elm.html('Hide revision history');\n            }\n\t\t});\n\t}\n};\n}(jQuery));\n\/\/ ]]><\/script><script src=\"http:\/\/communities.bentley.com\/callback.ashx?__type=Telligent.Evolution.Extensions.Ideation.Plugins.IdeaHeaderExtension%2C%20Telligent.Evolution.Extensions.Ideation%2C%20Version%3D1.0.102.33348%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull&amp;file=js\" type=\"mce-no\/type\"><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\n(function($){{\n$.extend($.fn.evolutionUpDownVoting.defaults,{voteDownMessage:'Vote against this idea'\n,voteUpMessage:'Vote for this idea'\n,loginMessage:'Sign in to vote on ideas'\n,noPermissionMessage:'You do not have permission to vote for this idea'\n,notGroupMemberMessage:'Join this group to vote on this idea'\n,deleteMessage:'Remove your vote for this idea'\n,readOnlyMessage: 'Voting on this idea has been disabled'\n,switchToDownVoteMessage: 'Vote against this idea instead of for it'\n,switchToUpVoteMessage: 'Vote for this idea instead of against it' });}}(jQuery));\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\n(function($){ $.telligent.evolution.media.defaults.endpoint = 'http:\/\/communities.bentley.com\/callback.ashx?__type=Telligent.Evolution.Api.Plugins.Endpoints.FileViewerEndpoint%2C%20Telligent.Evolution.Api%2C%20Version%3D7.6.10.39027%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'; }(jQuery));\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\n(function($){ $.telligent.evolution.preview.defaults.endpoint = 'http:\/\/communities.bentley.com\/callback.ashx?__type=Telligent.Evolution.Api.Plugins.Endpoints.WebPreviewEndpoint%2C%20Telligent.Evolution.Api%2C%20Version%3D7.6.10.39027%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'; }(jQuery));\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\">\/\/ <![CDATA[\n(function($){ $.telligent.evolution.language.defaults.dateEndpoint = 'http:\/\/communities.bentley.com\/callback.ashx?__type=Telligent.Evolution.Api.Plugins.Endpoints.DateFormattingEndpoint%2C%20Telligent.Evolution.Api%2C%20Version%3D7.6.10.39027%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'; }(jQuery));\n\/\/ ]]><\/script><script src=\"http:\/\/communities.bentley.com\/WebResource.axd?d=XL2kIzM4zUKb2Tg26QMPBa8sJiHnM24-S9DKshN45y8hU58skoJEz_nU4lKj_bZ4CzyQxQ6xUAgf6_8kya8ULxU_CI758278PU5BG8AzkTTUvWe0MR17fQrrfomMVFAMT7tXXUMzINbF3ivwyrq5M5ENG_rZ6ghCh74tifow50jcStee45LycO8-pU3b2GlcQp__aefFQq7E7JiMFB5G7w2&amp;t=634848423940000000\" type=\"mce-text\/javascript\"><\/script><!-- [if lte IE 6]>\n\t<link type=\"text\/css\" rel=\"stylesheet\" href=\"http:\/\/communities.bentley.com\/cfs-filesystemfile.ashx\/__key\/themefiles\/h-000000000bcd1ed5-s-7e987e474b714b01ba29b4336720c446-stylesheetfiles-http-communitiesbentleycom-80\/ie6.css\" \/><![endif]--><script src=\"http:\/\/communities.bentley.com\/cfs-filesystemfile.ashx\/__key\/themefiles\/h-000000000bcd1ed5-s-7e987e474b714b01ba29b4336720c446-jsfiles-http-communitiesbentleycom-80\/analytics.js\" type=\"mce-text\/javascript\"><\/script><script type=\"mce-no\/type\">\/\/ <![CDATA[\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n  })(window,document,'script','\/\/www.google-analytics.com\/analytics.js','ga');\n\n  ga('create', 'UA-12487729-3', 'bentley.com');\n  ga('send', 'pageview');\n\n\/\/ ]]><\/script><script type=\"mce-no\/type\">\/\/ <![CDATA[\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n  })(window,document,'script','\/\/www.google-analytics.com\/analytics.js','ga');\n\n  ga('create', 'UA-17568443-1', 'bentley.com');\n  ga('send', 'pageview');\n\n\/\/ ]]><\/script><script src=\"http:\/\/www.bentley.com\/shared\/Adobe\/Common.js\" type=\"mce-text\/javascript\" language=\"JavaScript\"><\/script><script src=\"http:\/\/www.bentley.com\/shared\/Adobe\/prod\/s_code.js\" type=\"mce-text\/javascript\" language=\"JavaScript\"><\/script><!-- SiteCatalyst code version: H.22.1.\nCopyright 1996-2010 Adobe, Inc. All Rights Reserved\nMore info available at http:\/\/www.omniture.com --><script type=\"mce-text\/javascript\" language=\"JavaScript\">\/\/ <![CDATA[\n\/* You may give each page an identifying name, server, and channel on\n    the next lines. *\/\n    var url = document.location.pathname.toLowerCase(); \/\/ this is the file structure + the file name\n    var host = window.location.hostname.toLowerCase();\n    var lastChar =\"\";\n    var actualPageName=\"\";\n\ns.prop2 = \"communities\";\/\/top channel\ns.channel = \"communities\"; \ns.pageName = \"\";\n\n    if (url) {\n        var temp = s.split(url, '\/');\/\/temp[0] will be \"\"\n\n        if (temp.length > 0) {\n            var langcookie = \"currentlang\";\n            var thiscookie = document.cookie.indexOf(langcookie);\n            if (thiscookie != -1) {\n                var c_start = thiscookie + langcookie.length + 1;\n\n                var region = document.cookie.substring(c_start, c_start + 5);\n                s.prop1 = region.toLowerCase(); \/\/region\n            }\n         }\n    }\nCallBentleySiteCatalystWebService(ServiceCallbackToSendImageRequestToSiteCatalyst);\n\n        \/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************\/\n\/\/ ]]><\/script><script type=\"mce-text\/javascript\" language=\"JavaScript\">\/\/ <![CDATA[\nif (navigator.appVersion.indexOf('MSIE') >= 0) document.write(unescape('%3C') + '\\!-' + '-')\n\/\/ ]]><\/script><!--<noscript>   <img decoding=\"async\" src=\"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0\"\nheight=\"1\" width=\"1\" border=\"0\" alt=\"\" \/><\/noscript>\n<!--\/DO NOT REMOVE\/--> <!-- End SiteCatalyst code version: H.22.1. --> <a href=\"http:\/\/communities.bentley.com\/products\/plant\/design___engineering\/w\/plant_design_and_engineering__wiki\/2854.repairing-missing-component-data-in-autoplant-3d-2004-edition-cs.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">Repairing Missing Component Data In AutoPLANT 3D 2004 Edition [CS]<\/a> (it is 2004 but not much has changed I noticed &#8211; the commands referenced in there are being blogged\/discussed in 2009, 2010 and 2011) . It describes the\u00a0the\u00a0<script src=\"\/\/www.google-analytics.com\/analytics.js\" async=\"\"><\/script><script src=\"\/\/www.google-analytics.com\/analytics.js\" async=\"\"><\/script><script type=\"text\/javascript\">\/\/ <![CDATA[\nwindow.NREUM||(NREUM={});NREUM.info = {\"beacon\":\"\",\"errorBeacon\":\"bam.nr-data.net\",\"licenseKey\":\"\",\"applicationID\":\"\",\"transactionName\":\"MQZXZkoHW0NYVUQNWQhMdGFoSUFYXFtVFxkBEVpHSBUaV1xYVRZfBUxCW1MPRh9JV1cBGAcQRUo=\",\"queueTime\":0,\"applicationTime\":155,\"ttGuid\":\"4CBB231D82237843\",\"agent\":\"\"}\n\/\/ ]]><\/script><script type=\"text\/javascript\"><\/script>\u00a0AT_DBPIPE_REPAIRRELATIONSHIPS command which I needed a long time ago.<\/li>\n<li>AT_DBPIPE_RECOVERDATA &#8211; not quite sure what this does yet&#8230;<\/li>\n<li>AT_PROJECTDB_REPAIR &#8211; this is another command to get things synced but seems to be a last ditch effort<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Research links: talk of general cleanup that one should do triggers in AutoCAD are called reactors (this is a good starter article) A colleague mentioned not to do anything that takes up too much time on a document close reactor &#8211; because it triggers AFTER the close has been issued. I suggested on a save? [&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,1],"tags":[],"class_list":["post-866","post","type-post","status-publish","format-standard","hentry","category-bentley-autoplant","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AutoCAD auto cleanup - a script on close - 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\/autocad-auto-cleanup-script-close\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AutoCAD auto cleanup - a script on close - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"Research links: talk of general cleanup that one should do triggers in AutoCAD are called reactors (this is a good starter article) A colleague mentioned not to do anything that takes up too much time on a document close reactor &#8211; because it triggers AFTER the close has been issued. I suggested on a save? [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2014-09-08T16:00:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:25:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"AutoCAD auto cleanup &#8211; a script on close\",\"datePublished\":\"2014-09-08T16:00:05+00:00\",\"dateModified\":\"2022-02-03T17:25:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/\"},\"wordCount\":256,\"image\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/bentleysystems.122.2o7.net\\\/b\\\/ss\\\/bentleysystemsprod\\\/1\\\/H.22.1--NS\\\/0\",\"articleSection\":[\"B-AutoPLANT\",\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/\",\"name\":\"AutoCAD auto cleanup - a script on close - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/bentleysystems.122.2o7.net\\\/b\\\/ss\\\/bentleysystemsprod\\\/1\\\/H.22.1--NS\\\/0\",\"datePublished\":\"2014-09-08T16:00:05+00:00\",\"dateModified\":\"2022-02-03T17:25:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#primaryimage\",\"url\":\"http:\\\/\\\/bentleysystems.122.2o7.net\\\/b\\\/ss\\\/bentleysystemsprod\\\/1\\\/H.22.1--NS\\\/0\",\"contentUrl\":\"http:\\\/\\\/bentleysystems.122.2o7.net\\\/b\\\/ss\\\/bentleysystemsprod\\\/1\\\/H.22.1--NS\\\/0\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/autocad-auto-cleanup-script-close\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AutoCAD auto cleanup &#8211; a script on close\"}]},{\"@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":"AutoCAD auto cleanup - a script on close - 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\/autocad-auto-cleanup-script-close\/","og_locale":"en_US","og_type":"article","og_title":"AutoCAD auto cleanup - a script on close - ELB Solutions.com Inc.","og_description":"Research links: talk of general cleanup that one should do triggers in AutoCAD are called reactors (this is a good starter article) A colleague mentioned not to do anything that takes up too much time on a document close reactor &#8211; because it triggers AFTER the close has been issued. I suggested on a save? [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2014-09-08T16:00:05+00:00","article_modified_time":"2022-02-03T17:25:00+00:00","og_image":[{"url":"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0","type":"","width":"","height":""}],"author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"AutoCAD auto cleanup &#8211; a script on close","datePublished":"2014-09-08T16:00:05+00:00","dateModified":"2022-02-03T17:25:00+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/"},"wordCount":256,"image":{"@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#primaryimage"},"thumbnailUrl":"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0","articleSection":["B-AutoPLANT","General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/","url":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/","name":"AutoCAD auto cleanup - a script on close - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#primaryimage"},"image":{"@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#primaryimage"},"thumbnailUrl":"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0","datePublished":"2014-09-08T16:00:05+00:00","dateModified":"2022-02-03T17:25:00+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#primaryimage","url":"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0","contentUrl":"http:\/\/bentleysystems.122.2o7.net\/b\/ss\/bentleysystemsprod\/1\/H.22.1--NS\/0"},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/autocad-auto-cleanup-script-close\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"AutoCAD auto cleanup &#8211; a script on close"}]},{"@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\/866","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=866"}],"version-history":[{"count":7,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":2789,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/866\/revisions\/2789"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}