×
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 Post builder
2

NX Post builder

NX Post builder

(OP)
I would like to stop the posting if I have a serious problem.

Can I do a command during posting of an NX file to stop the posting?

If I use the exit command, it not only stops posting, but it also exits NX as well.
I am hoping there is an other option.

if { $set_error == "99" } {
MOM_output_literal "( - check tool diameter ERROR Code $set_error - )"
exit
}

thanks
Lvee

RE: NX Post builder

You can use the MOM_abort command to bring up an error dialog in NX and cancel post processing:

if { $set_error == "99" } {
MOM_abort "\n\n*** check tool diameter ERROR Code $set_error ***\n\n"
}

the \n gives a blank space between the NX error output and your message and makes it clearer for the user

RE: NX Post builder

(OP)
danruk
Thanks

This would work.
MOM_abort_event I think would also work.
Is there an advantage to using one over the other?

Lvee

RE: NX Post builder

No problem Lvee.

I don't beleive that MOM_abort_event would satisfy your requirement.

As I understand it MOM_abort_event can be used to abort processing of a procedure (same as the 'return' command) or of an event (like linear move, rapid move etc). This will not abort post processing as far as I am aware.

MOM_abort will abort post-processing and also allows you to enter a message as to why.

danruk

RE: NX Post builder

Use MOM_abort

It is very helpful to the end user if you add an error message that makes sense.
I will include the $mom_operation_name in the message

For example

if { $mom_update_work_offset_defined == 1 && $mom_ba_dynam_offset_xy_defined == 1 } { MOM_abort "
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
HEY!! you cannot change both dynamic and standard work offsets FIX the $mom_operation_name operation
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
" }

John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6, NX7.5 & NX8.5
Vericut7.2.3

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