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: 

Check Verification Progress

17 REPLIES 17
SOLVED
Reply
Message 1 of 18
TK.421
2030 Views, 17 Replies

Check Verification Progress

if i am verifying a bunch of toolpaths, is there a means I can have it display in an info box which toolpath is being verified? powermill just sits there for 20 minutes and I have no idea if it is in the middle or near the end.

 

Second question: I make "holder safe" toolpaths when I calculate them. is there any need to check the tick boxes for 'Verify the tool against the model' in the verification form? Maybe I am doing double work and wasting time?

 

thanks!

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
17 REPLIES 17
Message 3 of 18
TK.421
in reply to: rafael.sansao

thanks boss!  i think I have something here but I'm not sure about it. so i select a number of toolpaths to add to an nc program, and then add them one at a time and verify, then toolpath goes into info box so i know it is done. when I add a second toolpath ( and third and fourth, etc...) do the connecting moves between that and the first get checked? The previous toolpath has already been verified - does it do it again?  here's my code:

 

EDIT NCPROGRAM PREFERENCES MODELLOCATION "G54"
EDIT NCPROGRAM PREFERENCES WORKPLANE "G54"

//select toolpaths for posting
STRING LIST $tps = {}
$tps = INPUT ENTITY MULTIPLE toolpath "Select some toolpaths"

//create NcP 
STRING ncName = INPUT "ENTER NAME"
CREATE NCPROGRAM $ncName

INFOBOX NEW "NC Verification Progress"
INFOBOX STYLE "WARNING"
INFOBOX STATE "auto_newline" TRUE
INFOBOX STATE "underline" TRUE
INFOBOX APPEND "Verified Toolpaths:"
INFOBOX STATE "auto_newline" TRUE
INFOBOX STYLE "Normal"
INFOBOX STATE "auto_newline" TRUE 	

//add Tps tp ncP
FOREACH $Tp IN $tps {
EDIT NCPROGRAM ; APPEND TOOLPATH $Tp

//set verification options & verify
EDIT PAR "entity('ncprogram','').Verification.MachineChecks.VerifyToolpaths" 1
EDIT PAR "entity('ncprogram','').Verification.MachineChecks.CheckConnections" 1
EDIT PAR "entity('ncprogram','').Verification.MachineClearance" .5
NCPVERIFICATION VERIFY
INFOBOX APPEND $Tp INFOBOX STATE "auto_newline" TRUE }
--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 4 of 18
rafael.sansao
in reply to: TK.421

connecting moves between that and the first get checked? YES

 

The previous toolpath has already been verified - does it do it again? NO

 

With its method, a few milliseconds longer.

Do not worry. Is good.

 

You can count the number of toolpaths and show the percentage already checked in INFOBOX. Coolest.

Rafael Sansão

EESignature

Message 5 of 18
TK.421
in reply to: rafael.sansao

ok, obrigado amigo. I have 70 toolpaths going tonight, and i get nervous when I change things in my macros... if you say its good, then i can go home and rest easy Smiley Wink

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 6 of 18
TK.421
in reply to: TK.421

So, my infobox is functional and gives me what I need to see, but I would like to know if I can make it better. is it possible to get the percent at the bottom of the screen (second picture) to run in the infobox? While that program is being verified, i drag my infobox to a second monitor and work on another session of pmill in the main.  thanks!

Capture1.PNGget this into infoboxget this into infobox

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 7 of 18
rafael.sansao
in reply to: TK.421

No Unfortunately.

You can do a small calculation and show on INFOBOX.

 

TOTAL TOOLPATH: 21
% STEP: 100 / 21 = 4.7619
9(TOOLPATH ACTUAL) * 4.7619 = 42.85%

 

Rafael Sansão

EESignature

Message 8 of 18
TK.421
in reply to: rafael.sansao

that is the coolest, thanks!

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 9 of 18
Pijetro
in reply to: TK.421

Are you Batch Verifying?

 

If so, do you have the macro for that?

Message 10 of 18
TK.421
in reply to: Pijetro

sort of. my macro selects a bunch of toolpaths and then posts as 1 nc program or individual. Last night (and this whole week) I've been posting 50+ 3+2 toolpaths in single programs. When it verifies, it can take up to 30-45 minutes. attached is my macro for that. let me know how you change it to suit your needs - just curious.

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 11 of 18
TK.421
in reply to: Pijetro

i just remembered, that for posting individually i reference another macro because I am too lazy to type it out. here it is

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 12 of 18
TK.421
in reply to: rafael.sansao

Ok chief, I have added to my infobox to show me the time of each toolpath being verified, and I figured out to put it on a second line. is it possible to clear and update the percent line while adding lines to the bottom?  the INFOBOX CLEAR command clears everything.  Maybe it is not possible?

 

Capture.PNG

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 13 of 18
rafael.sansao
in reply to: TK.421

After "INFOBOX CLEAR", rewrite all content.

 

	INFOBOX NEW "NC Verification Progress"
	INT count = 1
	INT size = size(tps)
	REAL step = 100/$size
	STRING $TP_text = ""
	//add Tps tp ncP
	FOREACH $Tp IN $tps {
		EDIT PAR "entity('ncprogram','').Verification.MachineChecks.VerifyToolpaths" 1
		EDIT PAR "entity('ncprogram','').Verification.MachineChecks.CheckConnections" 1
		EDIT PAR "entity('ncprogram','').Verification.MachineClearance" .5
		EDIT PAR "entity('ncprogram','').Verification.ToolAndModel.VerifyToolpaths" 0
		EDIT PAR "entity('ncprogram','').Verification.ToolAndModel.CheckConnections" 1
		NCPVERIFICATION VERIFY
		
		//add name to infobox when done
		REAL percntStep = round($count * $step, 2)
		$TP_text = $TP_text + CRLF + $Tp.name + "   Elapsed time: " + "---variable time---"
		STRING msg = $count + " " + "of" + "  " + $size + CRLF + $percntStep + "%" + CRLF + $TP_text
		INFOBOX CLEAR
		INFOBOX STYLE "WARNING"
		INFOBOX STATE "auto_newline" TRUE
		INFOBOX STATE "underline" TRUE
		INFOBOX APPEND "Verified Toolpaths:"
		INFOBOX STATE "auto_newline" TRUE
		INFOBOX STATE "auto_newline" TRUE 
		INFOBOX STYLE "Normal"
		INFOBOX APPEND $msg
		
		$count = $count + 1
	}

Rafael Sansão

EESignature

Message 14 of 18
TK.421
in reply to: rafael.sansao

Thanks @rafael.sansao, that did it! Unfortunately, I cannot use this. Each time I add a toolpath to the nc program it verifies all the previous toolpaths. if the first toolpath takes 2.5 minutes and I add 5 toolpaths after that, it takes an additional 10 minutes of just rechecking the first toolpath...  Now I will put all toolpaths in nc program first and just check it as a whole.  Do you know off hand if there is a way to track with toolpath(s) has/have been verified if I have a program of many toolpaths? now I'm just left with the bar on the bottom. I will have to dig into this more later. The original reason I started the infobox was to give the operator some idea of how many toolpaths are left to verify in a huge program.

 

thanks again for your help!

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 15 of 18
rafael.sansao
in reply to: TK.421

No. Sorry.
Showing on the INFOBOX just what NC Program you are checking is not enough?

Rafael Sansão

EESignature

Message 16 of 18
TK.421
in reply to: rafael.sansao

I am only checking one NC PROGRAM - that program has many toolpaths. I was hoping there was a way to show the user which toolpath it is checking, and also how long each toolpath takes to verify.

 

I will still use infobox for batch verifying multiple nc programs - but that is not what I am doing here. this was all for one nc program. my sincerest apologies for any misunderstanding.

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie
Message 17 of 18
Ye。xg
in reply to: TK.421

The message box does not display a run message in PowerMill Ultimate 2019

Message 18 of 18
TK.421
in reply to: Ye。xg

@Ye。xg  I'll check that

--------------------------------------
Former Expert Elite Member (not enough participation in all their webinars and other "stuff", even though I beta test and regularly contribute to the betterment of the software and the PowerMill community as a whole)

the numbers never lie

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

Post to forums  

Autodesk Design & Make Report