×
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

Shop Doc Program Order and Nesting Wrong

Shop Doc Program Order and Nesting Wrong

Shop Doc Program Order and Nesting Wrong

(OP)
Hi Everyone,
  I am trying to customise a shop doc in NX 7. I have a tool list and operation list. The tool list works well - taken from tool_list.tcl & tpl files.

CODE

[MOM_cycle_objects {SETUP {MACHVIEW {TOOL} } }]
Here is what I am trying to get from Prog List in NX:
Prog 01
  -Path 1-10
  Prog 02
    -Path 11-12
  -Path 13-14
  Prog 03
    -Path 15

  However when I add:

CODE

[MOM_cycle_objects {PROGRAMVIEW {OPER} }]
It doesn't cycle the operations in the order shown in NX and doesn't nest them properly - giving:
Prog 01
  -Path 1-10, 3-14
  Prog 03
    -Path 15
  Prog 02
    -Path 11-12

With:

CODE

[MOM_cycle_objects {PROGRAMVIEW {MEMBERS {OPER} } }]
It gives duplicates unformatted under each section and duplicates the operation list - giving:
Prog 01
  -Path 1-10, 13-14
Unformatted: -Path 1-10
  Prog 02
    -Path 11-12
Unformatted: -Path 11-12
  Prog 03
    -Path 15
Unformatted: Path 15, 1-10
  Prog 02
    -Path 11-12
Unformatted: -Path 11-12
  Prog 03
    -Path 15
Unformatted: -Path 15, 15, 11-12

This has me well and truly baffled as to where the extra sections are coming from...
Or why the order is different in the first...
If I add characters next to the variables in the HTML output it shows in the unformatted sections...
Any idea's how to find where the extra stuff comes from or how to reorder the operations?
Any suggestions on how to fix this???
Thanks in advance!

------
Cheers
  Steve Griffiths smile

RE: Shop Doc Program Order and Nesting Wrong

(OP)
Got it working!
It would seem that I had a combination of the wrong cycling and the coding in the wrong sections.
Working Cycle is:

CODE

[MOM_cycle_objects {SETUP {PROGRAMVIEW {MEMBERS} } }]
I don't know why you need SETUP a 2nd time - can only guess this resets variables????
Using MEMBERS I guess cycles in order - although OPER_BODY has the code to output each operation, although it is not explicitly called from the tpl file.
This got mine working anyway - hope it might help someone else!

------
Cheers
  Steve Griffiths smile

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