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!

MOM Variable to get exposed tool length 1

Status
Not open for further replies.

pracslipkerm

Mechanical
Dec 17, 2008
58
I am wanting to be able output the exposed tool length.
Is there a variable for this or a way to subtract the insertion length (entered in "(OS) Offset" in "Tool Insertion" section of "Holder" tab in Tool editor) from the Tool Length?
What would the variable for tool insertion be? Is it supposed to be mom_tool_z_offset or mom_tool_zmount or something else? I have tried both and had no success.
Thanks in Advance

------
Cheers
Steve Griffiths :)
 
Replies continue below

Recommended for you

Here's what I did for my post processor:

global mom_tool_length
global mom_tool_holder_offset
global extension


set extension [expr $mom_tool_length - $mom_tool_holder_offset]
set output [format "%-4.3f" $extension]

MOM_output_literal "(TOOL EXT.$output)"

Unforutunately, lacking tcl skills, and without postbuilder mediation, I've never figured out how to incorporate this into tool list. If this is what you're after, and you manage to do it, I would appreciate it if you sent it my way.
Good luck.

Ray S
NX 7.0.1.7
www.appliedprecisionproducts.com
 
 http://files.engineering.com/getfile.aspx?folder=c2dfdb08-ef36-4162-96fa-177629b79b6b&file=pb_cmd_tool_extension.tcl
Thanks Heaps Ray!!!
Couldn't find this variable in the post builder list...
Worked perfectly!!!
The shop doc is the same as the post processor.
At the top of the proc for the section I wanted this in I added:
Code:
global mom_tool_length
global mom_tool_holder_offset
In the section I wanted it I added:
Code:
set tool_extension [expr $mom_tool_length - $mom_tool_holder_offset]
Where I wanted the variable (within a mom_output_literal HTML) I added:
Code:
[format '%-4.3f' $tool_extension]
HTML output doesn't like the " as mom_output_literal thinks it is the end of the output so I used ' instead.

Thanks again Ray

------
Cheers
Steve Griffiths :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor