Autodesk HSM Post Editor for Visual Studio Code goes live

Autodesk HSM Post Editor for Visual Studio Code goes live

fonsecr
Alumni Alumni
33,820 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,821 Views
135 Replies
Replies (135)
Message 101 of 136

support9WCQB
Participant
Participant

Thank you. Seems like laser cutting should be a default but regardless his instructions are incorrect at least for mac. The exported location of the cps file from VSC does matter as you can only load cps files from a certain folder. Once I had moved it to that folder I exported and got the .cnc file. Contrary to the video no Custom tab was automatically added. Further the exported dialog states you need to right click on the cnc selector and choose import CNC. This is somewhat misleading as you actually need to select something  from the tree UNDER cnc selector to get the import option. I have it working now it seems. Appreciate your help. 

0 Likes
Message 102 of 136

seth.madore
Community Manager
Community Manager

At this point, your issue has strayed off the topic of this thread. For any specific post or CAM issues, please start a new thread in the appropriate forum


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 103 of 136

support9WCQB
Participant
Participant

I thought the topic for this thread was the HSM post editor for VSC? Or did you get confused about what my issue was?

0 Likes
Message 104 of 136

seth.madore
Community Manager
Community Manager

I misunderstood your prior post, I thought that was dealing with errors in posting, which would constitute a new thread. I withdraw my comment.


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 105 of 136

daniel_lyall
Mentor
Mentor

@support9WCQB I found that out yesterday as well, @GeorgeRoberts can this be added so it is like the windows version if it is in the hard basket all good.

  


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 106 of 136

Anonymous
Not applicable

Hi I'm looking for a way to edit "Setup Sheet"

-Please someone can guide me how I can view the result of the ".html" in the format (as it would be seen in the browser)

html.gif

 

Aguin save if it is possible to work with Visual studio so that in the same ".cps" it sends the ".html" file to a server.

 

function createFile( dat, dat_pas){
  file_2_Data +=  dat;
  if(dat_pas == 1){
    var myExtension = ".txt";
    var path = FileSystem.replaceExtension(getOutputPath(), "");
    var destPath = FileSystem.getFolderPath(getCascadingPath()); // no file name
    destPath += "/dats50.txt"
    var file = new TextFile(destPath , true, "ansi");    
    file.writeln("Hello World!  " + path + "\n"+ "- The data variable is: " + file_2_Data +"\n The route is: : "+destPath );
    file.close();
  }
}

funcion myMail(){
    //var smtp = new SMTP("mymailserver");
    var mail = new Mail();
    mail.addRecipient("to@you.com");
    mail.setSenderEmail("from@me.com");
    mail.setSubject("Greeting");
    mail.setBody("Hello World!");
    var smtp = new SMTP("mymailserver");
    smtp.send(mail);
}

 

0 Likes
Message 107 of 136

Don.Cyr
Collaborator
Collaborator

Good afternoon, I installed VSC along with the Autodesk extension. However, I am not getting any information in the function list to edit the post. I tried using F1 and searching HSM: Change post executable but get an error. I tried uninstalling and re-installing the extension with no luck. Any idea what may be wrong?

Thank you.

 

DCmotofan91_0-1597963118179.png

 

Please click "Accept Solution" if I helped with your question or issue.
0 Likes
Message 108 of 136

boopathi.sivakumar
Autodesk
Autodesk

@Don.Cyr 

Some times at the first time of running the utility you need to give executable file location it is already well explained in the post processor training manual at 2-32

Post location.png


Boopathi Sivakumar
Senior Technology Consultant

0 Likes
Message 109 of 136

Don.Cyr
Collaborator
Collaborator

I can see the post but lost all of the items in the function list and text coloring like it was... it was working up to the latest VSC update...

DCmotofan91_0-1598009816598.png

I also cannot change exe location and get the following error:

DCmotofan91_1-1598009855683.png

 

Please click "Accept Solution" if I helped with your question or issue.
0 Likes
Message 110 of 136

AchimN
Community Manager
Community Manager

We are aware of that issue and trying to find the reason why the extension fails to load properly after the update. That does not happen for everyone on every system, so it´s hard to reproduce.
If the extension brings up any error message after the update, please let us know what that message is since that would certainly help us!


The workaround for now is to install a previous version (eg version 3.2.2) as shown below and then do the update again:

21-08-_2020_14-28-59.png

 



Achim.N
Principal Technology Consultant
0 Likes
Message 111 of 136

Don.Cyr
Collaborator
Collaborator

That worked. Thank you for the help!

Please click "Accept Solution" if I helped with your question or issue.
0 Likes
Message 112 of 136

Anonymous
Not applicable

also having the empty selector issues. The previous versions also dont allow for double clicking on the code im trying to find in the post.

0 Likes
Message 113 of 136

KrupalVala
Autodesk
Autodesk

HI @Anonymous ,

 

After downgrading the version, please upgrade it back to latest version (v3.3.1).

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 114 of 136

AchimN
Community Manager
Community Manager

Hi all,

 

FYI, we found and fixed the issue that the extension failed to load properly. The new version (3.3.2) is already available for download.

 



Achim.N
Principal Technology Consultant
Message 115 of 136

jrmitchellj
Explorer
Explorer

The plug-in is not starting up for me in 3.3.3 or 3.3.2

0 Likes
Message 116 of 136

jrmitchellj
Explorer
Explorer

OK, I got it working by going back to version 3.2.2.  It let me bring in the post program's location, using the trick of dragging the CAM360 folder into the finder sidebar ahead of time.  I you don't do that, when you browse from the add-on, you will never find the location.

Once I verified it was working, I marched up the versions, checking for proper operation on each.

I am now on version 3.3.3.

Thank you for this app!

 

Ray

0 Likes
Message 117 of 136

gmdimarzio88
Collaborator
Collaborator

When I click on a G code line, nothing happens on the post side. What setting controls this? I want to see what post processor line controls the clicked G code line.

0 Likes
Message 118 of 136

markmSBJCQ
Explorer
Explorer

I am getting same error (Running the contributed command: 'HSM.postProcess' failed.) I can see the function and cnc files in explorer but and I have cps file open but it does nothing

 

0 Likes
Message 119 of 136

fredsi
Collaborator
Collaborator

I have, over the last several weeks, made various attempts to use the Autodesk Post Processing Extension for VS Code on a Mac (machine is iMac Pro running Big Sur 11.6). The stumbling block is quite straight forward - the exporting post does not post an .nc file with any content. I have run the extension and all its wonderful capabilities without a problem on a Windows machine at work; but have been unable to get any intermediate files to post on the Mac at home (where I would like to do much of my post editing). 

 

Searching the forums has produced only a single pertinent result, where the export post was modified to remove all references to windows, and supposedly worked on a Mac. However, using that post produces the same empty file as the standard export post. 

 

So my fundamental questions is " does the extension work on a Mac?" I would assume there would be a significant number of users that use the vs code extension on a Mac; if so, I only need to know that it is possible so I can return to trying to figure out what is happening knowing the error is mine. Thanks.

 

Fred

 

0 Likes
Message 120 of 136

Claytonics
Enthusiast
Enthusiast

Yup it works on a mac. 2015 mac book pro running Big Sur.

0 Likes