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!

Tool total length to Shop doc

Status
Not open for further replies.

Prikke

Industrial
Jun 22, 2011
8
Hello

I am trying to modify a Tool list html shop doc. I would like to add information of a tool holder length and a tool total length to the doc so a guy who set ups a tool would know how long the tool should be. For this I tried to add mom_tool_holder_length information to the doc but the problem is that if holder is assembled of multiple holder components, the mom_tool_holder_length gives only the first lenght. I attached a picture of tool which holder has multiple lengths. How i can add those lengths together?

Another problem which I have is I would like to have my tools organized by tool number to shop doc. All tools have number & name. How I could change the order?
 
Replies continue below

Recommended for you

Hi Prikke,

I have some problems time ago, with useful tool lenght...

It takes the tool lenght outside from holder.

try this variable,

set alt [expr [ format "%5.2f" $mom_tool_length ]-[format "%5.2f" $mom_tool_holder_offset]]

"tools organized by tool number to shop doc. All tools have number & name"

This is quiet easy, organize your programs... the shop doc takes each strategy, organized with tool number and tool name.
T$mom_tool_number and $mom_tool_name


Regards,
 
Thank you for your reply, but did you understood what I ment?

At the moment I have not added anything to holder offset so the calculation does not help. Main thing I want to do is to add holder component lengths together. No if I add MOM_output_literal "<td ALIGN=CENTER>$mom_tool_holder_length</td>" line to tool_list_html.tcl it gives only the first length 38mm (check the photo I attached in my previous post). How I can add holder total length to Shop doc?

And to the organization problem. I do not fully understand how that NX Shopdoc system works. How the system index tools and where is decided which tool is next in line to be handled? I have understood that tool_list.tpl tells which objects cycles to tool_list_html.tcl but I have not undestood which part decides the order of the tools. In other words which files and parts I need to modify if I want change tools appearing order in html tool list?
 
I want to add holder total length. No I dont how I can get it.

I also want to organize tools by tool number.
 
The mom variable mom_tool_holder_overall_length is what you are looking for. This is the total height of all the holder steps, that are in the array mom_holder_step_length.

For example, with 2 steps:

Var: mom_tool_holder_offset = 0.0
Var: mom_holder_number_of_steps = 2
Var: mom_holder_step_sequence_number[0] = 1
Var: mom_holder_step_sequence_number[1] = 2
Var: mom_holder_step_diameter[0] = 11.111
Var: mom_holder_step_diameter[1] = 22.222
Var: mom_holder_step_length[0] = 11.111
Var: mom_holder_step_length[1] = 22.222
Var: mom_holder_step_taper_angle[0] = 0.0
Var: mom_holder_step_taper_angle[1] = 0.0
Var: mom_holder_step_corner_radius[0] = 0.0
Var: mom_holder_step_corner_radius[1] = 0.0
Var: mom_tool_holder_overall_length = 33.333


Mark Rief
Product Manager
Siemens PLM
 
Thank you, that is excatly what I have searched. But when I added lines "global mom_tool_holder_overall_length" and "MOM_output_literal "<td ALIGN=CENTER>$mom_tool_holder_overall_length</td>"" to my tool_list_html.tcl and tried to run the shop doc, only thing I got was an error message. Have I done something worg or where the problem could be? My NX version is 7.5
 
Hi Prikke,
Where did you add it to in the shop doc?

Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Well global line in next of other globals and MOM_output_literal line in next of other output lines.
 
Can you post the file? The lines of code look right but maybe in the wrong spot???

Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
If i change line $mom_tool_holder_overall_length to for example $mom_tool_length, the line works and the value appears in right spot.
 
I checked this in NX8 - it may not be there in 7.5.
Turn on the review tool and you can see all of the avilable variables.

Mark Rief
Product Manager
Siemens PLM
 
Sorry but I am beginner with NX. How I turn the review tool on?
 
Hi Prikke,
Put this code at the top of the Shop Doc:
# Turns on Debug or review tool - Select One
#source [MOM_ask_env_var UGII_CAM_DEBUG_DIR]mom_debug.tcl
#source [MOM_ask_env_var UGII_CAM_DEBUG_DIR]mom_review.tcl

# Needs to be on for either Debug or Review
#MOM_set_debug_mode ON

Delete the # from in front of last line and debug &/or review tool


Cheers
Steve Griffiths :)

If you want to make apple pie from scratch, first you must create the universe!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor