Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Show toolpaths that use s specific workplane

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
nubrandao
286 Views, 5 Replies

Show toolpaths that use s specific workplane

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

5 REPLIES 5
Message 2 of 6
icse
in reply to: nubrandao

 

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

 

Message 3 of 6
nubrandao
in reply to: nubrandao

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 

Message 4 of 6
icse
in reply to: nubrandao

entity $wp = input entity workplane 'Select'

foreach $tp in filter(folder('toolpath'),'this.Workplane.Name == "' + $wp.Name + '"') {
	draw toolpath ${tp.Name}
}
Message 5 of 6
rafael.sansao
in reply to: nubrandao

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

EESignature

Message 6 of 6
nubrandao
in reply to: nubrandao

Thanks to all 😁 appreciate a lot the help 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report