Cancel
Showing results for 
Search instead for 
Did you mean: 

ShopDOC - Mom Vars

Experimenter
Experimenter

Hello everyone !

I'm setting up ShopDoc for my company. But I have a question about which variable makes the PartStock and FloorStock appear in the process sheet. I also need the variable to check whether Cutter Compensation is enabled or not.

 

Appreciate

 

 

NX 12.0.1 - CAD/CAM
SolidEdge ST10
17 REPLIES 17

Re: ShopDOC - Mom Vars

Phenom
Phenom

Hi @MarioHP_Br,

Active The Review Tool  , You should find what you are looking for... At the end of report a Tk window will open ,you can open a debug file too (where is saved your file) and find *_stock_* .

For cutcom the variable name is : mom_cutcom_type if the variable is equal to 1 the cutter compensation is active.

Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com
Highlighted

Re: ShopDOC - Mom Vars

Creator
Creator

You can use  ${mom_stock_floor}  and  ${mom_stock_part} for wall.

The problem is whem You have checked box Use floor same as side.

It will take the last value of  hidden floor stock.

Paulo Stepancic , DAG d.o.o. Koper

Re: ShopDOC - Mom Vars

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

@paulodag wrote:
The problem is whem You have checked box Use floor same as side.

It will take the last value of  hidden floor stock.


There is the variable called mom_stock_part_use, which indicates the setting of that check box.

if { [ info exists mom_stock_part_use ] && $mom_stock_part_use == "1" } {
    # code to handle the situation when part stock is used as floor stock
}
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: ShopDOC - Mom Vars

Creator
Creator

Thank You,

I will try to adopt your solution in Excell

Paulo Stepancic , DAG d.o.o. Koper

Re: ShopDOC - Mom Vars

Valued Contributor
Valued Contributor

Hi,

 

It will not work if you set a formula in Excel.

You have to do as shown by Stefan.

 

The most common way is to edit your TCL script.

 

Adrien Marmy, Designer / SystemManager CAx, Turck Interprox

Production: NX12.0.2.mp4 | AGILE PLM E6.1.3 | ECU 3.9.9.3

Development: .NET Testing: NX18**

Re: ShopDOC - Mom Vars

Creator
Creator

I have workaroud it with simple formula in Excell:

${mom_stock_part_use}*${mom_stock_part}+${mom_stock_floor}-(${mom_stock_floor}*${mom_stock_part_use})

----------------

Variable_1.jpg

---------------

The image below shows all situations with the checked box "Use floor same as side" and unchecked with positive and negative stock.

 

image.png

 

--------------

 

 

 

 

 

Paulo Stepancic , DAG d.o.o. Koper

Re: ShopDOC - Mom Vars

Creator
Creator

When I made the documentation of programs without "Use floor same as side" box, I get the output:

 

image.png

 

Then in the file" shopdoc_excel.tcl " I changed output  code.

 

Spoiler
       set mom_operation_name_data($mom_operation_name,$oper_var) "--"  

to:

       

Spoiler
set mom_operation_name_data($mom_operation_name,$oper_var) "0"  

 

and I get the output in shopdoc like this:

 

image.png

 

This was the easiest and the temporary way to solve the problem.

 

 

 

Paulo Stepancic , DAG d.o.o. Koper

Re: ShopDOC - Mom Vars

Experimenter
Experimenter

Hi, I tried to use the variable: mom_cutcom_type and I was not successful, is there another variable that shows when the tool compensation is active? Thank you..

 

Re: ShopDOC - Mom Vars

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I use a combination of things to drive cutcom type

Below is based on NX10 behavior.

1) mom_contact_status (note this is NOT set until AFTER custom is turned on - i..e you can NOT use this in the "cutcom on" event)

2) mom_operation_type

3) mom_tool_axis_type (4 = swarf)

4) If you have multiple types of "similar" cutcoms, you will need a UDE to select (e.g Siemens "3DFF" vs "3DF")

 

- If not contouring, use regular 2D cutter comp

- If 3 axis contouring, use 3D (surface normal) cutter comp

- if variable axis

----if swarf cut, use variable axis "side" cutter comp

----if not swarf, use variable axis 3D (surface normal) cutter comp

 

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


Learn online





Solution Information