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.
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
I attached a new version of my CreateBlockAndWorkplane.mac macro example.
I had it set to run in Finnish by mistake. But if you want to learn some Finnish, you can use the old macro or edit this one.
seems to work with powershape also...very cool
Hello PekkaJLaansanen,
I have made a user defined language for Powermill macro with auto completion, but it's on the the old power mill forum and nobody can download it if you are not register...
http://forum.delcam.com/viewtopic.php?f=51&t=12641
Do you mind if I upload it in a answer on this topic ?
Alex
@Alex470 wrote:Hello PekkaJLaansanen,
I have made a user defined language for Powermill macro with auto completion, but it's on the the old power mill forum and nobody can download it if you are not register...
http://forum.delcam.com/viewtopic.php?f=51&t=12641
Do you mind if I upload it in a answer on this topic ?
Alex
Hi Alex470,
go ahead, auto complete sounds very nice!
Regards,
Pekka.
I have modified the theme a bit as I prefer when I work with my macros to have a darker background. I am not sure about the text colour combinations but here you are:
When you load the file as Pekka described please remember to change the style to Obsidian.
The drawback on the Obsidian theme with the dark background is that it does not work well with the compare feature.
If you want to compare files you have to change your theme.
Kind regards
George
Sorry the previous one will not work.
Here is the correct xml.
How can you delete one of your replies if it is wrong? In the old forum you could at least edit it...
King regards
George
As far as I have seen, you can edit your own message (Under options, top left of the message) as long as nobody answered it.
I agree with you, it's a little bit frustrating when you see a mistake too late.
Olivier
Hi,
So here is mine
Step 1 :
Copy PowerMill Macro.xml to C:\Program Files (x86)\Notepad++\plugins\APIs
Copy userDefineLang.xml to C:\Users\Proprietaire\AppData\Roaming\Notepad++
Step 2 :
Launch Notepad++
Select Language --> PowerMill Macro
For autocompletion :
Alex
Nothing happens when I do that
Any one have any idea why none of these are working for me? I have Imported them all and they show up at the bottom of the language dialog, and I tried updating notepad++ as well.
When I select a language.. nothing happens at all.
So I went back and removed all the languages I added (just the ones above that I tried) and then went to the notepad++/plugins/APIs and deleted them out of there.
Then Imported them back in via the "define a language" dialog and now everything seems to work fine. I think the problem was drag and dropping the files into the notepad++ folder instead of just importing them in.
using version v7.3.1
and i cant get it to import
keeps telling me it failed to import
Can you explain how to enable autocomplete and how it works?
I don't see autocomplete in notepad++ v.8.5.3 or I don't understand how to use it.
How can I turn off the white board?,
I try to use Language by PowerMill Macro and dark theme and it 's look terrible.