Tooltable - some questions

Post anything you want to discuss with others about the software.

Tooltable - some questions

Postby sebba » Fri Oct 25, 2024 7:58 am

Hello,

I need more information about "Tool table details" form. Especially how it works.
What does it read when it shows?
It seems it read the values contained in the "Tools 1 to xx" fields, like x offset, z offset and diameter, even the tool table was not saved.
Should be like this?

Also, I am wondering about SlotXX keys from [Tooltablevalues].
What for this keys? And how should be used?

I want to use these keys for an ATC macro. I can edit these keys with some custom macro and update their value with Writekey function. All good
But these values are overwritten by "Save Tooltable" command.
Which are the field numbers for these keys? SlotXX, TypeXX and so on... Unfortunately I found only the field numbers for x and z offsets and diameter

And one more question for now: why only 96 tools?

Thank you,
Seb
- YQWQ
User avatar
sebba
 
Posts: 62
Joined: Mon Dec 21, 2020 9:56 am
Location: Bucharest, ROMANIA

Re: Tooltable - some questions

Postby sebba » Sun Oct 27, 2024 8:38 am

ok, I found some related functions

Code: Select all
var toolSlot = Plugininterface.Datatypes.Tooltablecolumnname.Slot;

int aaa = Convert.ToInt32(exec.Readtooltablecell(1, toolSlot)); // reading tool's Slot1 key value

int bbb = 2;
exec.Writetooltablecell(1, toolSlot, Convert.ToString(bbb)); // writing 2 into T1 Slot1 key

exec.Callbutton(780); // saving tooltable


so far so good but it seems I found a bug in ToolTable Details window
- start UCCNC and open TT Details window
- sort by Tool#, Slot#, Offset and so on are working OK
- after using Writetooltablecell function, sorting by Slot# return error

but:
- if, before Writetooltablecell action, TT Details was previously sorted by Tool# or others but Slot#, it returns "Object must be of type String"
- if, before Writetooltablecell action, TT Details was previously sorted by Slot# , it returns "Object must be of type Int32"

it seems doesn't matter if the tooltable was saved or not after Writetooltablecell function, same behaviour. UCCNC version is 1.2117
if Writetooltablecell and then tooltable save by Callbutton(780) and then restart, sorting by Slot# run just fine, until some Writetooltablecell function occur

and one of my previous question, again: why only 96 tools? :)

thank you,
Seb
- YQWQ
User avatar
sebba
 
Posts: 62
Joined: Mon Dec 21, 2020 9:56 am
Location: Bucharest, ROMANIA


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 7 guests