macro command, checking toolpath is cutter compensation is on

macro command, checking toolpath is cutter compensation is on

t_dueber
Enthusiast Enthusiast
720 Views
3 Replies
Message 1 of 4

macro command, checking toolpath is cutter compensation is on

t_dueber
Enthusiast
Enthusiast

I need a little macro to loop through drilling toolpaths (only profile and champfer) and check if cutter compensation is on.

The macro should give a message box with all toolpath where compensation is on.

can anybody help me?

 

t_dueber_0-1710134080217.png

t_dueber_1-1710134124991.png

 

 

0 Likes
Accepted solutions (1)
721 Views
3 Replies
Replies (3)
Message 2 of 4

icse
Collaborator
Collaborator
Accepted solution

try this:

 

 

string $msg = ""
foreach $tp in filter(folder('toolpath'),'this.Strategy == "drill" and this.Drill.Type == "profile" and this.Drill.DepthType == "chamfer" and this.CNCCutterCompensation.Active') {
	$msg = $msg + $tp.Name + CRLF
}

message info $msg

 

Message 3 of 4

todd.murphy8YH67
Contributor
Contributor

is there a way to tell me what toolpaths use cutter comp, what type and make a list of that ( toolpath and what tool used)

0 Likes
Message 4 of 4

nathanANTQX
Advocate
Advocate

I have implimented most of those things into my renaming macro, It does some mathematical calculations based on the hole feature size and what your thickness value is.

 

Some extra bits of information for us as programmers, and for the shop floor to be able to catch a mistake before it happens.

Variable names it will generate:

HF : Hole feature set diameter from the selected featureset. (not Compound hole ready yet)

PD : Programmed diameter ( hole size + - thickness value for a given toolpath) (profile/helical)

PK : Peck distance for all drilling toolpaths

P : pitch for tapping / Thread milling (from toolpath settings)

RH / LH : Hand of threads ( Tapping and Threadmilling)

 

Macro Attached

 

0 Likes