Notepad++ Language for editing PowerMill macros.

Notepad++ Language for editing PowerMill macros.

Anonymous
Not applicable
7,695 Views
29 Replies
Message 1 of 30

Notepad++ Language for editing PowerMill macros.

Anonymous
Not applicable

If you would like to edit your PowerMill macro in full colours, you can use Notepad++ editor with a user defined language.

 

You can also fold code, because {} characters are set as keywords for folding.

 

EditorView.png

I have attached a .zip file that contains the PowerMill language, and a macro example.

 

You can download Notepad++ text editor from here: https://notepad-plus-plus.org/download

 

In Notepad++ click "View > User Defined Dialogue..."
Click Import button and select the "Notepad++PowerMillLanguage.XML" file.

 

Open a the PowerMill macro example "CreateBlockAndWorkplane.mac".
Code should now appear colour coded. You can fold code by "View > Fold All" command, or by clicking + and - markers.

 

You can comment and uncomment selected lines of code using Ctrl+Q shorcut.

 

If you can't see the marco in colours, try "Language > PowerMill" command from the top menu.

 

Screencast for using the PowerMill language in Notepad++ can be found here:
https://knowledge.autodesk.com/community/screencast/e7d3e8e1-5222-431d-abc0-caa356d6342

 

 

7,696 Views
29 Replies
Replies (29)
Message 21 of 30

iamcdn79
Mentor
Mentor

Take the mac.rar, uncompress it then move the mac folder to C:\Users\your user name\.vscode\extensions

 

Credit to @TK.421 for this extension


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 22 of 30

t_dueber
Enthusiast
Enthusiast

i have the same issue

0 Likes
Message 23 of 30

t_dueber
Enthusiast
Enthusiast

figured it out.

I changed the hex colour code from "000000" to "00ff00" in the previous uploaded file as you can see in the screenshot.

Also set the marker as in the Pink bubble. Then you will have this look which looks okay to me.

 

t_dueber_4-1695110344444.png

 

 

 

 

t_dueber_3-1695110296437.png

 

 

t_dueber_0-1695110134607.png

 

Message 24 of 30

nguyenthinhvt95
Advocate
Advocate

Thank you very much, now it 's working well.

0 Likes
Message 25 of 30

arnoldiW3K8A
Contributor
Contributor

Hello, today after many test i find a solution to add the add the autocomplation in notepad ++ 8.6.

 

i paste in  "C:\Program Files (x86)\Notepad++\autoCompletion\" the file xml in attached 

 

arnoldiW3K8A_0-1702461752014.png

 

arnoldiW3K8A_1-1702461851248.png

 

 

0 Likes
Message 26 of 30

moraschini
Enthusiast
Enthusiast

Hello Everyone, i hope to be usefull for someone of you,

today after many test i find a solution to add the hint and the autocompletion in notepad++ 8.6.

 

you have to copy the file in attach in "C:\Program Files (x86)\Notepad++\autoCompletion\"

 

moraschini_0-1702462056062.png

 

moraschini_1-1702462061587.png

 

with this passage i get this result.

have a good day

0 Likes
Message 27 of 30

nguyenthinhvt95
Advocate
Advocate

After pass the file in C disk, how to setting in Notepad++ to use this?

0 Likes
Message 28 of 30

arnoldiW3K8A
Contributor
Contributor

hello, you need the powermill language that you load from

language>User Defined Language>Define Your Language...> import...

 

here you have to choice the powermill language, in attached the one created by me

 

close notepad++ and reopen, open a file with extension '.mac' and start writing.

if everithing works fine when u start writing it should show the hint and on the function (maybe with ctrl+space key) the terms of the function.

0 Likes
Message 29 of 30

nguyenthinhvt95
Advocate
Advocate
Now It's working well.
Thank you very much
0 Likes
Message 30 of 30

moraschini
Enthusiast
Enthusiast

hello, happy to  helped you