×
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

Tool total length to Shop doc

Tool total length to Shop doc

Tool total length to Shop doc

(OP)
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?

RE: Tool total length to Shop doc

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,  

RE: Tool total length to Shop doc

(OP)
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?

RE: Tool total length to Shop doc

(OP)
I want to add holder total length. No I dont how I can get it.

I also want to organize tools by tool number.

RE: Tool total length to Shop doc

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

RE: Tool total length to Shop doc

(OP)
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

RE: Tool total length to Shop doc

Hi Prikke,
 Where did you add it to in the shop doc?

Cheers
  Steve Griffiths smile

If you want to make apple pie from scratch, first you must create the universe!

RE: Tool total length to Shop doc

(OP)
Well global line in next of other globals and MOM_output_literal line in next of other output lines.

RE: Tool total length to Shop doc

Can you post the file? The lines of code look right but maybe in the wrong spot???

Cheers
  Steve Griffiths smile

If you want to make apple pie from scratch, first you must create the universe!

RE: Tool total length to Shop doc

(OP)
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.

RE: Tool total length to Shop doc

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

RE: Tool total length to Shop doc

(OP)
Sorry but I am beginner with NX. How I turn the review tool on?  

RE: Tool total length to Shop doc

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 smile

If you want to make apple pie from scratch, first you must create the universe!

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