Difference between revisions of "Get MTM Data"

From Macros Wiki
Jump to: navigation, search
 
Line 1: Line 1:
!<br>
+
{|
! Get MTM Data<br>
+
|!
!<br>
+
|-
<br>
+
|!&nbsp;&nbsp;&nbsp; Get MTM Data
global num_flows, num_tool_groups, num_spindles<br>
+
|-
global num_flows$, num_tool_groups$, num_spindles$<br>
+
|!&nbsp;&nbsp;&nbsp;
<br>
+
|-
check part_open, "You must have a part open to run this macro"<br>
+
|&nbsp;
<br>
+
|-
get_post_data mach_flows,      num_flows<br>
+
|global num_flows, num_tool_groups, num_spindles
get_post_data num_tool_groups, num_tool_groups<br>
+
|-
get_post_data num_spindles,    num_spindles<br>
+
|global num_flows$, num_tool_groups$, num_spindles$
<br>
+
|-
num_flows$      = format$(num_flows, "0")<br>
+
|&nbsp;
num_tool_groups$ = format$(num_tool_groups, "0")<br>
+
|-
num_spindles$    = format$(num_spindles, "0")<br>
+
|check part_open, "You must have a part open to run this macro"
<br>
+
|-
dialog "[[GetMTMData.dlg]]"<br>
+
|&nbsp;
<br>
+
|-
if button = 1 then stop "flows"<br>
+
|get_post_data mach_flows,      num_flows
if button = 2 then stop "tool groups"<br>
+
|-
if button = 3 then stop "spindles"<br>
+
|get_post_data num_tool_groups, num_tool_groups
 +
|-
 +
|get_post_data num_spindles,    num_spindles
 +
|-
 +
|&nbsp;&nbsp;&nbsp;
 +
|-
 +
|num_flows$      = format$(num_flows, "0")
 +
|-
 +
|num_tool_groups$ = format$(num_tool_groups, "0")
 +
|-
 +
|num_spindles$    = format$(num_spindles, "0")
 +
|-
 +
|&nbsp;&nbsp;&nbsp;
 +
|-
 +
|dialog "[[GetMTMData.dlg]]"
 +
|-
 +
|&nbsp;&nbsp;&nbsp;
 +
|-
 +
|if button = 1 then stop "flows"
 +
|-
 +
|if button = 2 then stop "tool groups"
 +
|-
 +
|if button = 3 then stop "spindles"
 +
|}

Latest revision as of 10:14, 29 July 2010

!
!    Get MTM Data
!   
 
global num_flows, num_tool_groups, num_spindles
global num_flows$, num_tool_groups$, num_spindles$
 
check part_open, "You must have a part open to run this macro"
 
get_post_data mach_flows, num_flows
get_post_data num_tool_groups, num_tool_groups
get_post_data num_spindles, num_spindles
   
num_flows$ = format$(num_flows, "0")
num_tool_groups$ = format$(num_tool_groups, "0")
num_spindles$ = format$(num_spindles, "0")
   
dialog "GetMTMData.dlg"
   
if button = 1 then stop "flows"
if button = 2 then stop "tool groups"
if button = 3 then stop "spindles"