×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

NX 7.5 Post Processor Op Skip off for set lines

NX 7.5 Post Processor Op Skip off for set lines

NX 7.5 Post Processor Op Skip off for set lines

(OP)
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 smile

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

RE: NX 7.5 Post Processor Op Skip off for set lines

(OP)
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 smile

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

RE: NX 7.5 Post Processor Op Skip off for set lines

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
}
     

RE: NX 7.5 Post Processor Op Skip off for set lines

(OP)
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 smile

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

RE: NX 7.5 Post Processor Op Skip off for set lines

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
}     
 
 

RE: NX 7.5 Post Processor Op Skip off for set lines

(OP)
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 smile

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources