cancel
Showing results for 
Search instead for 
Did you mean: 

NX10 Shop Doc toollist multiple adjust-register

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hello,

 

how do i output one tool with multiple adjust register ?

One Line for each option.

 

For example 

 

Tool Number           Adjust Register

 

T1                              1

T1                              2

 

 

Thanks in advance

Peter

 

 

Regards, Peter
5 REPLIES

Re: NX10 Shop Doc toollist multiple adjust-register

Genius
Genius

Hi,

You know Tcl... ?

@mkn

Re: NX10 Shop Doc toollist multiple adjust-register

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hi,

 

yes, what do you mean ?

 

Peter

Regards, Peter

Re: NX10 Shop Doc toollist multiple adjust-register

Genius
Genius

ok , Smiley Happy

-turn on the review tool to see the variable which you need

-for each operation add > Adjust Register variable and tool number variable

-end of program > display values


I will deal like this

# start of program
array set list_adjust {}

#each operation
lappend list_adjust($var_tool_number) $var_adjust_register

# end of program
# display values

# example :
# T1 (10,99) T10 (20,102) T2 (33,35) array set list_adjust {1 {10 99} 10 {20 102} 2 {33 35}} foreach {t key} [array get list_adjust] { foreach adjust $key { MOM_output_literal "T$t > $adjust" } }

result :

T10 > 20
T10 > 102
T1 > 10
T1 > 99
T2 > 33
T2 > 35

if you want a array in the order add in the other list and display values with 'lsort' function.

@mkn

Re: NX10 Shop Doc toollist multiple adjust-register

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

 

 

Hi,

thanks a lot, you´re right.

But i mean, how can i modify the default shop_doc template, to output multiple adjust_register.

 

See the screenshot.jpg

 

Regards, Peter

Re: NX10 Shop Doc toollist multiple adjust-register

Genius
Genius

I don't know shop doc based on excel

sorry

@mkn

Learn online





Solution Information