Toolpath View - Change Default View

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

Toolpath View - Change Default View

Postby Robertspark » Sat Oct 28, 2017 5:18 pm

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
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Toolpath View - Change Default View

Postby Robertspark » Sat Oct 28, 2017 6:54 pm

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.
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Toolpath View - Change Default View

Postby dezsoe » Sun Oct 29, 2017 1:39 pm

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.
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Toolpath View - Change Default View

Postby Robertspark » Sun Oct 29, 2017 1:45 pm

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
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Toolpath View - Change Default View

Postby Robertspark » Sun Oct 29, 2017 4:12 pm

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;
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Toolpath View - Change Default View

Postby Robertspark » Tue Oct 31, 2017 3:11 pm

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
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 7 guests