Hi, is it possible to highlight all toolpath that use the activated workplane?
for example, i activate workplane "origin" and run a macro, and shows all toolpath using that workplane
Solved! Go to Solution.
Solved by rafael.sansao. Go to Solution.
Solved by icse. Go to Solution.
entity $wp = input entity workplane 'Select'
string $msg = ""
foreach $tp in filter(folder('toolpath'),'this.Workplane.Name == "' + $wp.Name + '"') {
$msg = $msg + $tp.Name + CRLF
}
Message info $msg
But macro Will highlight the toolpaths?
I need to get that bulb turn on.
I have macro that change toolpath from 1st to 2nd position.
In the company sometimes they ask us to change from one machine to another, but one of the machines has a different value in B body
And I need to select all tooloath that use that coordinates, and change to second position
entity $wp = input entity workplane 'Select'
foreach $tp in filter(folder('toolpath'),'this.Workplane.Name == "' + $wp.Name + '"') {
draw toolpath ${tp.Name}
}
A little faster:
IF NOT entity_exists("Workplane","") {
MESSAGE WARN "No active workplane."
MACRO ABORT
}
GRAPHICS LOCK
UNDRAW TOOLPATH ALL
FOREACH tp in FILTER(FOLDER('Toolpath'),'this.Workplane.Name == "' + $entity("Workplane","").Name + '"') {
DRAW Toolpath $tp.Name
}
GRAPHICS UNLOCK
Rafael Sansão
Can't find what you're looking for? Ask the community or share your knowledge.