Autodesk HSM Post Editor for Visual Studio Code goes live

Autodesk HSM Post Editor for Visual Studio Code goes live

fonsecr
Alumni Alumni
33,790 Views
135 Replies
Message 1 of 136

Autodesk HSM Post Editor for Visual Studio Code goes live

fonsecr
Alumni
Alumni

Hi all post developers,

 

We just pushed Autodesk HSM Post Editor for Visual Studio Code live as an Open Source project under the MIT license. Check it out at:

https://github.com/Autodesk/cam-posteditor

 

This project is an extension for Visual Studio Code that makes life much easier when developing posts.

 

You can get the installation for Visual Studio Code at:

https://marketplace.visualstudio.com/items?itemName=Autodesk.hsm-post-processor

 

@GeorgeRoberts has been working on this until now. But my hope is that we can work together as a community to make it even better. So if you are interested in contributing make sure to engage. Of course you are welcome to just make requests for the post team also. You can use the post idea station for such requests.

 

Note that you need to sign a small agreement before we can accept contributions.See the README for details.

 

George will post introduction to the extension here.

 


René Fonseca
Software Architect

33,791 Views
135 Replies
Replies (135)
Message 41 of 136

Anonymous
Not applicable

I get two different Errors, i dont know why

maybe the german client is a problem?Error.JPGError2.JPG

0 Likes
Message 42 of 136

GeorgeRoberts
Autodesk
Autodesk

Thanks for the reply.

 

The one issue is asking you to select your post executable, just click the 'browse' button and select the post.exe from your install folder (you can see this in the overview video above).

 

you can only start the extension when the .cps is in the active view, which is why the first image shows it failing.

 

 

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 43 of 136

LibertyMachine
Mentor
Mentor

I finally had time to stopped getting wrapped up in so many other shop tasks and had time to install and start using this. Very nice.

Quick problem I ran into: It's not prompting me for units (MM or IMP), rather it's just posting out in metric. I did a search but did not yield any results

At first I thought it was my post (I've made many edits to it) but it's doing it with otherwise stock posts as well


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 44 of 136

GeorgeRoberts
Autodesk
Autodesk

Glad you got time to try it out! I decided to change the prompt to be a user setting instead. The prompt would be fairly frustrating when you want to just keep the same units.

 

To change the setting, click F1 and type 'user settings', this will open up your settings object. From that, you can add the following:

image.png

 

To use mm, just change IN to MM.

 

Hope this helps!

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
Message 45 of 136

MJK_Performance
Advocate
Advocate

Loving this so far, though I have an issue were it runs perfectly on my PC but on my mac it wont find any functions, variables or anything under the CNC selector, It wont find the post utility either. Its my first time using visual studio Code so I might be doing something wrong on the mac side of things.

0 Likes
Message 46 of 136

GeorgeRoberts
Autodesk
Autodesk

Hi @MJK_Performance,

 

There are some known issues on when running this on a MAC. It's on the plan to properly support the MAC environment

 

Cheers

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 47 of 136

daniel_lyall
Mentor
Mentor

@GeorgeRoberts Question the way the 4th axis code is done in some off the post now like below, how do you post process 4th axis code from Visual studio it just chucks an error

 

 

if (properties.fourthAxisAround != "none") {
var aAxis = createAxis({coordinate:0, table:true, axis:[(properties.fourthAxisAround == "x" ? -1 : 0), (properties.fourthAxisAround == "y" ? -1 : 0), 0], cyclic:true, preference:0});
machineConfiguration = new MachineConfiguration(aAxis);


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 48 of 136

GeorgeRoberts
Autodesk
Autodesk

Hi @daniel_lyall,

 

For this you would currently need to set the property inside of the post processor. I have an idea for how we could better support post properties within VSCode (giving you the ability to set them when posting). I'll discuss it with the team and see if it makes sense to add such support

 

Cheers

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 49 of 136

daniel_lyall
Mentor
Mentor

I tried doing that it failed, I may have set it in the wrong places.


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 50 of 136

GeorgeRoberts
Autodesk
Autodesk

Which post is it you are using? I'll give it a try here

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 51 of 136

daniel_lyall
Mentor
Mentor

The newest Mach3 post


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 52 of 136

GeorgeRoberts
Autodesk
Autodesk

Strange, mine seems to work fine. I changed:

fourthAxisAround: "none" // specifies the fourth axis if mounted

 

To this:

fourthAxisAround: "x" // specifies the fourth axis if mounted
-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 53 of 136

daniel_lyall
Mentor
Mentor

That's what I tried.

 

I just tried again it was failing I tried a few 4 axis G Codes I have that are along X, I tried the one and only Y axis one I have and it worked and now the X axis ones are working, what a pain.


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 54 of 136

GeorgeRoberts
Autodesk
Autodesk

Very strange... I'll do some investigation here to see if I can find out what might of caused that

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 55 of 136

daniel_lyall
Mentor
Mentor

@GeorgeRoberts  Does this program work on a apple computer.

I am getting sick to death of Windows 10 and need to move to Apple if it does on Apple then all my day to day programs are on apple.


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 56 of 136

Laurens-3DTechDraw
Mentor
Mentor

@daniel_lyall wrote:

@GeorgeRoberts  Does this program work on a apple computer.

I am getting sick to death of Windows 10 and need to move to Apple if it does on Apple then all my day to day programs are on apple.


Don't think your problems were because of windows.

But Visual Studio Code is available for MAC as well.

And as long as you have a post.exe it should work right?

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


0 Likes
Message 57 of 136

daniel_lyall
Mentor
Mentor


Don't think your problems were because of windows. ??????????

But Visual Studio Code is available for MAC as well.

And as long as you have a post.exe it should work right?


Win10 keeps making things go wrong on my computer's (nothing to do with Fusion or VSC at all) the computer its self. 


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 58 of 136

GeorgeRoberts
Autodesk
Autodesk

The extension doesn't work on the MAC OS at the moment. There are several differences in the OS that prevent this plugin from functioning correctly.

 

 

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 59 of 136

makko74
Collaborator
Collaborator

@GeorgeRoberts

Hi George or someone who knows it,

short question.

Is there a parameter that I can control that the post.exe window is visible during the post process?
Sometimes my postprocessor issues messages ( using the alert command, promptKey2 ) and then waits for an OK or input. If the post.exe window is not visible, I can not give an OK either and the post.exe waits in the background.

Hope its understandable what i mean.

 

Thanks in advance

Mario



InfoInventor CAM(Ultimate) user --- Inventor Professional 2021.2 + Inventor CAM Ultimate 8.1.2.21785
0 Likes
Message 60 of 136

GeorgeRoberts
Autodesk
Autodesk

Hey @makko74,

 

this might be possible. The extension uses the following parameter when calling post.exe:

"--quiet",

You can remove this parameter inside of the extension in the file extension.js file here:

 

C:\Users\YOUR USERNAME\.vscode\extensions\autodesk.hsm-post-processor-2.0.6\out\src

 

Is this common for your posts? I could add it as a setting if needed

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes