VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#16 2007-12-11 17:12:08

jsmillett
Member
From: Chatsworth, CA
Registered: 2005-02-25
Posts: 42

Re: Changing cut color when making cuts down along the tool axis

In the SUBSTITUTIONS  section add:

"VERICUT-CUTCOLOR NEXT" "CHANGECUTCOLOR"
or
"MSG,VERICUT-CUTCOLOR NEXT" "CHANGECUTCOLOR"

Then use CHANGECUTCOLOR as mentioned in my previous reply.

Voila! Enhancement already working.

Jerry


Jerry Millett

Offline

#17 2007-12-11 17:20:38

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: Changing cut color when making cuts down along the tool axis

here is another workaround:

let's say you cut your pocket with a feedrate of 50 IPM.
At each level, you change the feedrate to 50.1, 50.2, 50.3, etc...

Edit > Colors...
Cut Color tab
Color Method - Feed Range Color

Add ranges 50.1, 50.2, 50.3, etc...
each feedrate will show in a different color

Note: under the Define tab, add as many colors as you want/need. It does not affect the shading anymore.

Offline

#18 2007-12-11 17:54:14

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: Changing cut color when making cuts down along the tool axis

jsmillett wrote:

In the SUBSTITUTIONS  section add:

"VERICUT-CUTCOLOR NEXT" "CHANGECUTCOLOR"
or
"MSG,VERICUT-CUTCOLOR NEXT" "CHANGECUTCOLOR"

Then use CHANGECUTCOLOR as mentioned in my previous reply.

Voila! Enhancement already working.

Jerry


Gerry,

Your method is working great, but in 6.2 we added a new macro "SetCut Color"

You could call this macro with the above message. Using a variable in the Override Value, you could change the color every time is is called.

color_selection.jpg

Offline

#19 2007-12-11 20:29:37

jsmillett
Member
From: Chatsworth, CA
Registered: 2005-02-25
Posts: 42

Re: Changing cut color when making cuts down along the tool axis

Serge,

Using UnLoadToolNoRetract then ToolChangeNoRetract works OK because it uses all available colors, however, it is not without its potential problems.

Using SetCutColor is more elegant, epecially if you know how many cut colors. Is there a way to dynamically determine the maximum number of cut colors? Set #9999998 to the maximum cut colors and use this:

WORD_VALUE "(CHANGECUTCOLOR)" {
... COND_VAR_AND "9999999" "0-1 #9999998" {
... ... VARIABLE "9999998" {
... ... ... OVERRIDE_VALUE 6 TEXT_OVERRIDE_VALUE "NEED TO CHANGE TO MAX CUT COLORS"
... ... }
... ... VARIABLE "9999999" {
... ... ... OVERRIDE_VALUE 2
... ... }
... ... MACRO "SetCutColor" {
... ... ... OVERRIDE_EXP "#9999999"
... ... }
... }
... VARIABLE "9999999" {
... ... OVERRIDE_EXP "1 + #9999999"
... }
... MACRO "SetCutColor" {
... ... OVERRIDE_EXP "#9999999"
... }
}

This will cycle the cutcolor from 2 to 6 (or max) cut colors.  Simple if there are a lot of cut colors.


Jerry Millett

Offline

#20 2007-12-11 20:46:58

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: Changing cut color when making cuts down along the tool axis

creating a tool change event could cause some problems to people generating reports.

There is no connection betwen the control and the defined colors for variables. But you could define it manually in the Variable window.

Offline

Board footer