Macros for Dummies

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Re: Macros for Dummies

Postby mim » Mon Sep 17, 2018 2:20 am

Thanks Rob

I am using UC400eth and the Neuron screenset. Where are the macros for the Buttons: Rip Cut, Cut Recover, Simulate, test etc (like 2173 and so on).
I didn't find them in neuron profile folder. I am in learning curve to C# and macro, especially macro for UCCNC.
Are they stored in the plug in?
La sante des hommes viagrasansordonnancefr.com les essais cliniques
mim
 
Posts: 2
Joined: Wed Sep 12, 2018 12:03 am

Re: Macros for Dummies

Postby Robertspark » Mon Sep 17, 2018 6:48 am

Hello mom

Have you got access to the neuron Dropbox folder?

If not email Andrew at neuron thc and ask him if you can have access.

All icons (button images), backgrounds and macros are available for download from there.

Note there is a Russian and English language version as well as the neuron lite and professional versions too (the pro can do oxygen/ acetylene (or propane) plus extract fans etc.
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Macros for Dummies

Postby kig23 » Thu Sep 20, 2018 7:31 pm

Hi,
with great respect for the work Rob has done with Notepad++, why not use Visual Studio. The community edition is free. For writing macros i'm using Visual Studio. I wrote a dll with all uccnc functions and name spaces that you can use with macros. The advantage is that you can use IntelliSense in Visual Studio. You can have suggestions for all uccnc methods and all methods inside of a name spaces that you can use for macros.
Last edited by kig23 on Thu Sep 20, 2018 7:47 pm, edited 1 time in total.
kig23
 
Posts: 161
Joined: Sat Mar 31, 2018 6:58 am
Location: Italy

Re: Macros for Dummies

Postby Robertspark » Thu Sep 20, 2018 7:36 pm

Just use whatever works for you.

I did not have a look at trying to figure out how to setup intellisense on VS

When I was attempting plugins
I've not got the time at the moment too many projects on the go

If you setup something I'm sure others will use it
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Macros for Dummies

Postby Dan911 » Thu Sep 20, 2018 8:50 pm

I never attempted or even considered using VS for macro's for reasons Terry pointed out. IMO nothing beats Notepad++ for macro's...Thanks Rob!!

Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Macros for Dummies

Postby cncdrive » Thu Sep 20, 2018 9:01 pm

The problem with Roslyn is that it works only from .NET 4.5 and above and so then it would make it impossible to run the UCCNC on Windows XP if we have to convert to .NET 4.5 because of Roslyn.
Otherwise with Roslyn it would be possible to make a macro debugger.
cncdrive
Site Admin
 
Posts: 4888
Joined: Tue Aug 12, 2014 11:17 pm

Re: Macros for Dummies

Postby kig23 » Thu Sep 20, 2018 9:14 pm

Vmax549 wrote:For example in VS if you were to call Getvar(500) teh intellisense will give you UC.Getvar(500) and a macro will require exec.Getvar(500).


Hi Terry that's right if you use plugininterface.dll. But if you create a Class Library with three classes (exec, AS3 and AS3jog) and inside every class put the methods that belong to that class is different.
kig23
 
Posts: 161
Joined: Sat Mar 31, 2018 6:58 am
Location: Italy

Previous

Return to Macros

Who is online

Users browsing this forum: No registered users and 1 guest