Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

That will work for the post, but the user wants the output in the particular field in the SHOP DOCS.

 

Note it looks like they use the Excel formatted docs.

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

The Excel based shop documentation is very limited, since it can only display single values.

 

One way would be to check how many lines a note may have in total and add each array element separately.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

The notes are in the operations.

 

I think the header information (including the general description box) in the shopdoc is populated before the operations are cycled, so there are no notes at the time.

 

You should be able to put them in the row for each operation in the list.

Mark Rief
Retired Siemens

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Legend
Legend
Can you attach a shop doc with this implemented?
I'm sure everyone on the forum would like to improve the excel based docs....

Dennis Rathi
Creations Unlimited

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Legend
Legend
Nothing?

Dennis Rathi
Creations Unlimited

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Legend
Legend

Is there any hope of this or should I just give up?

 


Dennis Rathi
Creations Unlimited

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Please please keep in mind that some people only check this forum weekly or less.

 

From this thread...

You know that the notes are per operation, not per program.

You know the mom variables will be available when each operation is cycled.

You have a tcl snippet that extracts the individual text lines from the array.

 

Personally, I understand the approach, but I don't have an example, and I'm not a fluent tcl programmer, so there is not much more I can do.

 

If nobody comes forward with a sample, then you may be the first one in this forum to do this. If it's not something you want to tackle, and GTAC doesn't have a sample in their knowledge base, you could hire our services or a third party to write it for you.

 

If you do it yourself, please share the solution so that we can help others going forward.

Mark Rief
Retired Siemens

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

@Cam_Man one of our developers suggested these changes when I showed him your code. I plan to add this to the custom commands to import in to Post Builder.

 

   global mom_operation_notes

  # If notes are defined, output each line of text from the array.
   if { [info exists mom_operation_notes] && [array exists mom_operation_notes] } {

      OPERATOR_MSG "------------------- Operation Notes ----------------------"
      foreach i [lsort [array names mom_operation_notes]] {
         OPERATOR_MSG "$mom_operation_notes($i)"
     }
      OPERATOR_MSG "----------------------------------------------------------"

     # Is this necessary?
      array unset mom_operation_notes
   }

 

Mark Rief
Retired Siemens

Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Mark -

Re: Your "is this necessary" comment about the unset...

Try creating an array of 10 lines in one op

Then only have 5 lines in the next op.

Then have NO data defined for the 3rd op

Try without the unset - see if the 2nd op outputs the "extra" lines left over from the 1st op. (or the 3rd outputs anything)

If so, yes the unset is needed

 

Ken

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: NX10 Incorporating "Notes" into either setup sheets or top of posts.

Yes, the developer confirmed that the unset IS NECESARY after he gave me the sample.

Mark Rief
Retired Siemens

Learn online





Solution Information