[MACRO] read if the toolpath is safe or not

[MACRO] read if the toolpath is safe or not

arnoldiW3K8A
Contributor Contributor
396 Views
1 Reply
Message 1 of 2

[MACRO] read if the toolpath is safe or not

arnoldiW3K8A
Contributor
Contributor

hello everyone, i'm trying to create a macro that read if the toolpath is safe or not.

everitime i use the comand 

 

Print Par "Verification.Result"

 

it give me as result "unknown"

 

What i wrong?

 

help me please

 

arnoldiW3K8A_1-1684225401847.png

 

 

 

0 Likes
Accepted solutions (1)
397 Views
1 Reply
Reply (1)
Message 2 of 2

Sean571
Advocate
Advocate
Accepted solution
// Get active toolpath entity
entity tp = entity('toolpath, '')

IF $tp.Safety.Holder.Leads.Status != "safe" OR $tp.Safety.Holder.Links.Status != "safe" OR $tp.Safety.Holder.Cutting.Status != "safe" OR $tp.Safety.tool.Leads.Status != "safe"  OR $tp.Safety.tool.Links.Status != "safe"  OR $tp.Safety.tool.Cutting.Status != "safe" {
    message error "Toolpath is unsafe!"
} else {
    message info "Toolpath is safe!"
}

Sean571_0-1684520393728.png

 

Sean Wroblewski
Applications Engineer

0 Likes