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!

Shop Doc Program Order and Nesting Wrong

Status
Not open for further replies.

pracslipkerm

Mechanical
Dec 17, 2008
58
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 :)
 
Replies continue below

Recommended for you

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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor