Page 1 of 1

Toolpath View - Change Default View

PostPosted: Sat Oct 28, 2017 5:18 pm
by Robertspark
I may have missed something, but when UCCNC start, the Toolpath is always is in topview (button # 142)

Is there a way to change this so that when UCCNC starts it can be in Toolpath View Left (button # 141)

{this will be required for lathe screenset which I am now having a go at}

{I've not seen anthing in the profile or screenset which allows me to do this, I can do it by Macroloop, but thought it would need to be something combo-box based within the screenset, and pulled from the profile?}

Thanks as always

Re: Toolpath View - Change Default View

PostPosted: Sat Oct 28, 2017 6:54 pm
by Robertspark
Fixed via adding the following code to the constructor macro {called at startup and run once}

Code: Select all
exec.Callbutton(141); // Toolpathviewleft  - Sets the toolpath to a left side look viewing mode.

Re: Toolpath View - Change Default View

PostPosted: Sun Oct 29, 2017 1:39 pm
by dezsoe
Rob,

It works only on startup. Any time you open a file, it will revert back to the original view. That's why I put into my QuickView plugin the lathe recognition. If you open a file which seems to be a file for lathe, it will change the view after the file is loaded.

Re: Toolpath View - Change Default View

PostPosted: Sun Oct 29, 2017 1:45 pm
by Robertspark
Thanks Dezsoe, yeah, I found that out when I loaded the gcode file.

I can add a macroloop to switch it back,.

Thanks very much, it should be a static profile setting really in my opinion

Re: Toolpath View - Change Default View

PostPosted: Sun Oct 29, 2017 4:12 pm
by Robertspark
this macroloop seems to work to solve the problem and reset the toolpath view for X&Z
Code: Select all
if (val != exec.Getgcodefilename())
{
val = exec.Getgcodefilename();
while(exec.IsLoading()){Thread.Sleep(50);}
exec.Callbutton(141); // Toolpathviewleft  - Sets the toolpath to a left side look viewing mode.
exec.Callbutton(138); // Set - Toolpathzoomcontents Zooms the contents in the toolpath viewer.
}


#Events
static string val;

Re: Toolpath View - Change Default View

PostPosted: Tue Oct 31, 2017 3:11 pm
by Robertspark
Hi Terry, long time no see hope you are well.

I managed to get it keep the view under gcode load, had not considered edit (yet)

I'm away from pc for a week (schools half term break)

Good to see you back