Extract all identifiers?

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

Extract all identifiers?

Postby mschoonmaker » Sun Apr 19, 2020 1:08 pm

As I get familiar with the UCCNC macro capability, it's clear that all items carry unique identifiers, I've not yet found anything that suggests specific Identifier ranges for specific types of objects, nor how one might be able to extract all used resource IDs so as not to create ID conflict.

Can anyone shed some light on this topic?

Thanks
mschoonmaker
 
Posts: 31
Joined: Sun Nov 03, 2019 2:55 pm

Re: Extract all identifiers?

Postby ger21 » Sun Apr 19, 2020 2:22 pm

The documentation lists all the numbers of the built in UCCNC objects.
Are you talking about user defined objects?
Buttons that call macros should use 20000-21999
If you are creating you're own checkboxes or LED's, just use numbers well outside the built in function range.
For example, there are just over 300 LED's. When I created custom LED's, I numbered them above 700.
The only conflicts I can see are if you're own objects which conflict with each other?

The possible exception would be VAR's, where any third party plugin could use conflicting VAR's. I ran into this right away, and avoid using them.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Extract all identifiers?

Postby mschoonmaker » Sun Apr 19, 2020 2:30 pm

That's quite helpful, thank you.

With respect to "Buttons that call macros should use 20000-21999", I presume this to mean "User defined buttons that call macros should use 20000-21999", correct?
mschoonmaker
 
Posts: 31
Joined: Sun Nov 03, 2019 2:55 pm

Re: Extract all identifiers?

Postby Robertspark » Sun Apr 19, 2020 2:58 pm

All the identifiers are listed in the documentation folder (95% are listed in my macro manual listed in my signature below).... I haven't published the update in a little while
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Extract all identifiers?

Postby ger21 » Sun Apr 19, 2020 3:16 pm

mschoonmaker wrote:That's quite helpful, thank you.

With respect to "Buttons that call macros should use 20000-21999", I presume this to mean "User defined buttons that call macros should use 20000-21999", correct?


Yes, User defined macros.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests

cron