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
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 974
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

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.
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 974
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

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: 544
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
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 974
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

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;
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 974
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Re: Toolpath View - Change Default View

Postby Vmax549 » Tue Oct 31, 2017 2:31 pm

Hi Robert I did this a while back when playing with a turn mode. The main problem I ran into is UCCNC will set teh view back to default when ever you make mods to teh code say via Gcode edit or if you loaded a new Gcode file or if you did a reload of teh gcode.

Setting teh Veiw to G18 side veiw was easy enough BUT it kept reverting back to teh default view G17/Top at times.

That was teh aggravating part of trying to use a turn mode view.

(;-) TP
Vmax549
 
Posts: 1294
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

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
Rob
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2106, Neuron Lite
UCCNC v1.2105 Macro Manual
Robertspark
 
Posts: 974
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 4 guests