Skip to content

Commit

Permalink
Merge pull request #67 from Autodesk/update_4.1.6_CNC_exporter
Browse files Browse the repository at this point in the history
Option 'Download CNC exporting post processor' now redirects to the Fusion post library website
  • Loading branch information
george-roberts authored Mar 11, 2024
2 parents ea53e53 + cd862b8 commit 8ce0df2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 146 deletions.
3 changes: 3 additions & 0 deletions vs-code-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log
## 4.1.6
Changed:
- Option 'Download CNC exporting post processor' now redirects to the Fusion post library website
## 4.1.5
Added:
- Added option to use Autodesk's ESLint rules for editing postprocessors
Expand Down
10 changes: 1 addition & 9 deletions vs-code-extension/out/src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,15 +971,7 @@ function checkActiveDocumentForPost() {

/** Downloads the CNC exporting post processor */
function downloadCNCExtractor() {
const ncToCopy = path.join(resLocation, "export cnc file to vs code.cps");
var uri = vscode.Uri.file(ncToCopy);
uri.path = path.join(os.userInfo().homedir.toString(), 'export cnc file to vs code.cps');
vscode.window.showSaveDialog({ filters: { 'Autodesk Post Processor': ['cps'] }, defaultUri: uri }).then(val => {
if (val) {
fs.createReadStream(ncToCopy).pipe(fs.createWriteStream(val.path.substring(1, val.path.length)));
message("Post saved");
}
});
vscode.env.openExternal(vscode.Uri.parse('https://cam.autodesk.com/hsmposts?p=export_cnc_file_to_vs_code'));
}

/** Encrypts or decrypts the post process */
Expand Down
2 changes: 1 addition & 1 deletion vs-code-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "hsm-post-processor",
"displayName": "Autodesk Fusion Post Processor Utility",
"description": "Post processor utility.",
"version": "4.1.5",
"version": "4.1.6",
"icon": "res/icons/logo.png",
"author": {
"name": "Autodesk",
Expand Down
136 changes: 0 additions & 136 deletions vs-code-extension/res/export cnc file to vs code.cps

This file was deleted.

0 comments on commit 8ce0df2

Please sign in to comment.