Showing results for 
Search instead for 
Do you mean 
Reply

Shopdoc Setup Picture

Hello there,

 

I am creating my own shopdoc template and trying to output the setup image in the shop doc.

 

I have a .tcl file called A.tcl for generating post and a .tcl file called B.tcl that defines the format and content of the html shop doc. B.tcl is called in A.tcl, so when I postprocess operations, the shop doc is created.

 

The problem is how to output the setup image in the shop doc using TCL command. Since the OOTB file "Shopdoc.tcl" can be used to output the image, I searched for the relative commands from there. And found the following two commands:

 

if [catch { MOM_refresh_display } res] {
             INFO "$res"
}
if [catch { MOM_capture_image $mom_setup_part_gif_file } res] {
             INFO "$res"
}

 

 

I added those two commands to my A.tcl, but when I postprocessed my operation, it tells me:

 

invalid command name "MOM_refresh_display"

invalid command name "MOM_capture_image"

 

Any ideas?

 

Thanks,

Kai

9 REPLIES

Re: Shopdoc Setup Picture

I think some commands are really only available when you create the shop documentation from the menu entry "Information => Shop Documentation", since they are only useful for shop docs and not for regular MOM actions.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Shopdoc Setup Picture

Thanks, Stephan. Is there a way to output the setup image without using the excel shopdoc template? Like a TCL command or something?

 

Thanks,

Kai

Re: Shopdoc Setup Picture

I think it is more like you have to run the code from the "Shop Docs" menu.

 

Note you can run a shop docs from within a post (although I'm not sure you can run the Excel shop docs from a post), but I'm not sure if that can output the pictures either.

 

Perhaps someone from Siemens can comment?

 

 

 

 

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


Re: Shopdoc Setup Picture

Hundreds of posts on this forum about how the Shop Docs are a HUGE PITA. Siemens releases the new documentation function and then sticks their hands out for more $$$$$$$$$$.

Is anyone using this yet?
NX11.0.1

Re: Shopdoc Setup Picture

You need to cycle objects in shop docs to get the screen capture.

[MOM_cycle_objects
    {SETUP INST='PART_GIF'

Take a look at html_oper_list.tpl for a sample.

 

Mark Rief
Retired Siemens

Re: Shopdoc Setup Picture

[ Edited ]

Thanks, Mark. We are trying to create a Shopdoc that can output the tools and the operations using the tools in the selected program. And output a setup picture in the beginning of the Shopdoc showing the setup of the selected program.

 

I am looking at the following example:

Tools and Operations (HTML), ${UGII_CAM_SHOP_DOC_DIR}tools_operations_html.tcl, ${UGII_CAM_SHOP_DOC_DIR}simple1_machview.tpl

 

It outputs what I want, like:

and there is a setup picture in the beginning. That is pretty good.

 

The problem is it outputs all the tools and operations, as it is using MACHINE VIEW:

[MOM_cycle_objects
   {SETUP
      {MACHVIEW
         {MEMBERS
            {TOOL
               {OPER
               }
            }
         }
      }
   }
]

Then I tried changing MACHVIEW to SELECTED_VIEW or PROGRAM VIEW, and deleting TOOL or OPER or both, or just keeping TOOL and OPER.

 

The following structure gives me the closest result I want, but it outputs only the tools in the selected program, no operations.

[MOM_cycle_objects
   {SETUP 
      {SELECTED_VIEW
         {MEMBERS
         }
      }
   }
]

The following structure outputs the tools and operations in all the programs.

[MOM_cycle_objects
   {SETUP 
      {SELECTED_VIEW
         {MEMBERS
		{TOOL
			{OPER
			}
		}
         }
      }
   }
]

The following structure outputs a bunch of operation headers and the tools in the selected program.

[MOM_cycle_objects
   {SETUP 
      {SELECTED_VIEW
         {MEMBERS
		{OPER
		}
         }
      }
   }
]

Other structures don't give me the result that I want, either.

 

Do you have any suggestions?

 

Thanks,

Kai

 

 

 

Re: Shopdoc Setup Picture

Hello,

 

I found the code for generating the setup image in the .tpl file is:

 

 

[MOM_cycle_objects
    {SETUP INST='PART_GIF'
        BDYT='<!--Hide [if {[regexp "/" $mom_setup_part_gif_file] == 1} {
          set setup_gif [lindex [split $mom_setup_part_gif_file "/" ] end]
        }] HTML text output-->' 
        BDYT='<!--Hide [if {[regexp {\\} $mom_setup_part_gif_file] == 1} {
          set setup_gif [lindex [split $mom_setup_part_gif_file "\\" ] end]
        }] HTML text output-->'
    }
]

<A HREF=\#Part><IMG src=\"$setup_gif\" BORDER=5 WIDTH=500></IMG></A>    

 

Can I get access to the code (TCL or HTML) for generating the setup_gif file?

 

Thanks,

Kai

Re: Shopdoc Setup Picture

[ Edited ]

Bump!

 

Has anyone used the shop doc yet?

 

Do you have the setup picture in your shop doc, and both tool and operation information as well?

 

Can anyone please post a snapshot of your generated shop doc here?

 

Thanks,

Kai

Re: Shopdoc Setup Picture

I use the text-based shop docs without the part image here, haven't tried to convert them to HTML output yet.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Learn online





Solution Information