Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX 7.5 Post Processor Op Skip off for set lines

Status
Not open for further replies.

pracslipkerm

Mechanical
Dec 17, 2008
58
Hi,
Just wondering if there is a way to turn op skip off for a set of lines in the post processor to ensure that the particular output never has op skip leader? I tried putting this at start of custom command
set mom_sys_opskip_block_leader " "
and resetting to "/" at end but this didn't change anything.
I have included a global mom_sys_opskip_block_leader at start too.
Anyone know how to do this???
Does this function need to be upleveled? This command is executed from the Initial Move section of Operation Start Sequence
Thanks in Advance


Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Replies continue below

Recommended for you

Update:
I can now set the line leader by using
MOM_set_line_leader always " " at start of command and
MOM_set_line_leader always $mom_sys_opskip_block_leader at the end.
However this will always turn on opskip after my command even if not already on.
How do I check the current status of the line leader???
Thanks in Advance

Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Can't remember the name of the var, but there should be one something like mom opskip status. If you check for this at the top of your command and then decide if you need to turn it off or false, then you could turn it back on at the end of your code if you needed to. Something like this should work.

if {$mom_opskip_status == TRUE} {
set mom_opskip_status FALSE
do your output code here
set mom_opskip_status TRUE
}
 
Thanks shags72!
Will try that variable and see if it works.
I am having trouble finding the variable name as the opskip is turned on by a function in ugbase.tcl MOM_set_line_leader always $mom_sys_opskip_block_leader but there doesn't appear to be any variable holding it's status - have tried the review tool and can't find anything that changes when opskip is turned on or off.
Thanks again - will let you know what happens on Monday.

Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Ok I just looked at the actual code and you are right I was wrong on thinking there was a status var. Try this, in the pbcmds of opskip on and off, set steves_opskip_status to on or off and initialize steves_opskip_status OFF in start of program area. So now when opskip gets turned on you var will be set to on. Then it will change the line leader when it goes thru here and when you shut opskip off it will not use this code.

if {$steves_opskip_status == "ON"} {
MOM_set_line_leader always ""
do your output code here
MOM_set_line_leader always $mom_sys_opskip_block_leader
}

 
Thanks shags72!
Ended up just adding my own variable into ugpost_base.tcl - will just need to be careful with updates / patches.
Got it working as you suggested - check if status is on and turn off leader if required at start of command, then turn it back on at the end of the command.
Was hoping not to have to edit ugpost_base.tcl but seems to be the only way to solve the problem.
Thanks again

Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor