{"id":2701,"date":"2017-11-15T19:08:50","date_gmt":"2017-11-16T00:08:50","guid":{"rendered":"https:\/\/www.tmurgent.com\/TmBlog\/?p=2701"},"modified":"2017-11-15T19:55:58","modified_gmt":"2017-11-16T00:55:58","slug":"sequencing-autocad-20162017","status":"publish","type":"post","link":"https:\/\/www.tmurgent.com\/TmBlog\/?p=2701","title":{"rendered":"Sequencing AutoCad 2016\/2017"},"content":{"rendered":"<p>My general recipe for sequencing AutoCAD 2015 is found in this post from a couple of years ago:\u00a0<a href=\"https:\/\/www.tmurgent.com\/TmBlog\/?p=2268 \" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.tmurgent.com\/TmBlog\/?p=2268<\/a><\/p>\n<p>Today, Patrick Mangan reminded me that he had to modify that recipe to handle AutoCAD 2016 and 2017.<\/p>\n<p>In the original recipe, we handle the problem of the runtime AutoCAD writing a dll file outside of the virtual environment to a folder in the user&#8217;s AppData\\Local\\Autodesk folder by making that folder as Merge With Local in our package.<\/p>\n<p>Although this is still needed for the 2016\/2017 version of AutoCAD, Patrick found that if the external folder didn&#8217;t already exist, the file creation fails.\u00a0 So we need to adjust the recipe further.\u00a0 My recommendation is an Add-Package script.\u00a0 In the sequence editor, I would first change the folder to merge with local, then add the <a href=\"https:\/\/www.tmurgent.com\/appv\/en\/resources\/tools-downloads\/tools-downloads-appv5\/89-tools\/app-v-5-tools\/169-scriptlauncher-for-app-v-5\" target=\"_blank\" rel=\"noopener noreferrer\">ScriptLauncher<\/a> tool into my package scripts folder, and then export the AppXManfest file to edit it with the <a href=\"https:\/\/www.tmurgent.com\/appv\/en\/resources\/tools-downloads\/tools-downloads-appv5\/89-tools\/app-v-5-tools\/348-avme\" target=\"_blank\" rel=\"noopener noreferrer\">AppxManifestEditor<\/a> tool to add in the user publish script and finally import the saved file back to the package.<\/p>\n<p>The problem with user publishing scripts is that the script doesn&#8217;t know the correct answer to user based environment variables you often want to use.\u00a0 By making the script run ScriptLauncher.exe and having it run cmd.exe with the mkdir command, we can reference the folder we need to create as &#8220;C:\\Users\\%EffectiveUserName%\\AppData\\Local\\Autodesk\\&#8230;&#8221; and it will resolve correctly.<\/p>\n<p>Patrick also told me that he is using the current sequencer version, so apparently whatever the issue was that caused us to need to use the older sequencer version has been resolved by a later sequencer fix.<\/p>\n<p>Thank you Patrick!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My general recipe for sequencing AutoCAD 2015 is found in this post from a couple of years ago:\u00a0https:\/\/www.tmurgent.com\/TmBlog\/?p=2268 Today, Patrick Mangan reminded me that he had to modify that recipe to handle AutoCAD 2016 and 2017. In the original recipe, we handle the problem of the runtime AutoCAD writing a dll file outside of the&hellip; <a class=\"more-link\" href=\"https:\/\/www.tmurgent.com\/TmBlog\/?p=2701\">Continue reading <span class=\"screen-reader-text\">Sequencing AutoCad 2016\/2017<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[47,48],"tags":[],"class_list":["post-2701","post","type-post","status-publish","format-standard","hentry","category-appv5","category-sequencing","entry"],"_links":{"self":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/2701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2701"}],"version-history":[{"count":5,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/2701\/revisions"}],"predecessor-version":[{"id":2707,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=\/wp\/v2\/posts\/2701\/revisions\/2707"}],"wp:attachment":[{"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tmurgent.com\/TmBlog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}