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!
Solved! Go to Solution.
Solved by rafael.sansao. Go to Solution.
Solved by rafael.sansao. Go to Solution.
Solved by rafael.sansao. Go to Solution.
Can help in the implementation of INFOBOX:
https://manufacturing.autodesk.com/forums/forum.delcam.com/viewtopic3f10.html?p=52065
Rafael Sansão
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 }
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
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
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!
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
that is the coolest, thanks!
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.
i just remembered, that for posting individually i reference another macro because I am too lazy to type it out. here it is
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?
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
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!
No. Sorry.
Showing on the INFOBOX just what NC Program you are checking is not enough?
Rafael Sansão
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.
@Ye。xg I'll check that
Can't find what you're looking for? Ask the community or share your knowledge.