NX 5.0.1.4 Macro File: C:\projects\nx-files\tools-nx\Macros-NX5\macros\move-datums-to-layer-2.macro Macro Version 7.50 Macro List Language and Codeset: english 17 Created by Felix on Thu Jul 26 15:20:55 2007 Part Name Display Style: $FILENAME Selection Parameters 1 2 0.234580 1 Display Parameters 1.000000 13.456365 9.233924 -1.000000 -0.686212 1.000000 0.686212 ***************** RESET MENU, 0, UG_LAYER_MOVE UG_GATEWAY_MAIN_MENUBAR ! ASK_ITEM 2228224 (1 BOOL 0) = 1 ! ASK_ITEM 2228224 (1 BOOL 0) = 0 ! ASK_ITEM 1835008 (1 STRN 0) = "" ! Select by Name DIALOG_BEGIN "Class Selection" 0 ! DA2 BEG_ITEM 327680 (1 BOOL 0) = 0 ! Select Objects BEG_ITEM 1835008 (1 STRN 0) = "" ! Select by Name BEG_ITEM 2228224 (0 BOOL 0) = 0 ! BEG_ITEM 3604480 (1 CTOL 0) = 1 ! ASK_ITEM 327680 (1 BOOL 0) = 0 ! Select Objects ASK_ITEM 327680 (1 BOOL 0) = 1 ! Select Objects EVENT FOCUS_IN 0 0, 3080192, 0, 0, 0! Type Filter ASK_ITEM 1835008 (1 STRN 0) = "" ! Select by Name EVENT ACTIVATE 0 0, 3080192, 0, 0, 0! Type Filter FOCUS CHANGE IN 1 DIALOG_BEGIN "Select by Type" 0 ! DA2 BEG_ITEM 0 (1 MULT 0) = 38 ! List (Items selected) POSITION = 0 "Component" ! Index/contents of selected item POSITION = 1 "Curve" ! Index/contents of selected item POSITION = 2 "Sketch" ! Index/contents of selected item POSITION = 3 "Solid Body" ! Index/contents of selected item POSITION = 4 "Sheet Body" ! Index/contents of selected item POSITION = 5 "Faceted Body" ! Index/contents of selected item POSITION = 6 "Datums" ! Index/contents of selected item POSITION = 7 "Point" ! Index/contents of selected item POSITION = 8 "CSYS" ! Index/contents of selected item POSITION = 9 "Tolerance Feature" ! Index/contents of selected item POSITION = 10 "Product Definition" ! Index/contents of selected item POSITION = 11 "Dimension" ! Index/contents of selected item POSITION = 12 "Note" ! Index/contents of selected item POSITION = 13 "Label" ! Index/contents of selected item POSITION = 14 "Symbol" ! Index/contents of selected item POSITION = 15 "Drawing Image" ! Index/contents of selected item POSITION = 16 "Section Line" ! Index/contents of selected item POSITION = 17 "Label on Parent" ! Index/contents of selected item POSITION = 18 "Tabular Note" ! Index/contents of selected item POSITION = 19 "Boundary" ! Index/contents of selected item POSITION = 20 "Group" ! Index/contents of selected item POSITION = 21 "Plane" ! Index/contents of selected item POSITION = 22 "Mesh" ! Index/contents of selected item POSITION = 23 "Pattern" ! Index/contents of selected item POSITION = 24 "Pattern Points" ! Index/contents of selected item POSITION = 25 "Routing Objects" ! Index/contents of selected item POSITION = 26 "Link" ! Index/contents of selected item POSITION = 27 "Joint" ! Index/contents of selected item POSITION = 28 "Force Objects" ! Index/contents of selected item POSITION = 29 "Marker" ! Index/contents of selected item POSITION = 30 "Analysis" ! Index/contents of selected item POSITION = 31 "Motion Constraint" ! Index/contents of selected item POSITION = 32 "Polygon Body" ! Index/contents of selected item POSITION = 33 "Load" ! Index/contents of selected item POSITION = 34 "Constraint" ! Index/contents of selected item POSITION = 35 "Simulation Object" ! Index/contents of selected item POSITION = 36 "Traceline" ! Index/contents of selected item POSITION = 37 "Positioning Constraint" ! Index/contents of selected item EVENT VALUE_CHANGED 1 0, 0, 0, 0, 0! ASK_ITEM 0 (1 MULT 0) = 1 ! List POSITION = 6 "Datums" ! Index/contents of selected item OK 1 0 ! OK Callback END_ITEM 0 (1 MULT 0) = 1 ! List (Items selected) POSITION = 6 "Datums" ! Index/contents of selected item DIALOG_END -2, 0 ! Select by Type: OK FOCUS CHANGE IN 1 EVENT FOCUS_IN 0 0, 3080192, 0, 0, 0! Type Filter EVENT FOCUS_IN 0 0, 917504, 0, 0, 0! Select All EVENT ACTIVATE 0 0, 917504, 0, 0, 0! Select All OK 0 0 ! OK Callback ASK_ITEM 327680 (1 BOOL 0) = 1 ! Select Objects ASK_ITEM 327680 (1 BOOL 0) = 0 ! Select Objects END_ITEM 327680 (1 BOOL 0) = 0 ! Select Objects END_ITEM 1835008 (1 STRN 0) = "" ! Select by Name END_ITEM 2228224 (0 BOOL 0) = 0 ! END_ITEM 3604480 (1 CTOL 0) = 1 ! DIALOG_END -2, 0 ! Class Selection: OK FOCUS CHANGE IN 1 DIALOG_BEGIN "Layer Move" 5007 ! DA2 BEG_ITEM 0 (1 WIDE 5007) = "" ! Destination Layer or Category BEG_ITEM 2 (1 STRN 5007) = "*" ! Filter BEG_ITEM 3 (1 LIST 5007) = 0 ! List (Items selected) BEG_ITEM 5 (1 LIST 5007) = 0 ! List (Items selected) BEG_ITEM 7 (1 BLO 5007) = 0 ! Re-highlight Objects OK 0 5007 ! OK Callback ASK_ITEM 0 (1 WIDE 5007) = "2" ! Destination Layer or Category END_ITEM 0 (1 WIDE 5007) = "2" ! Destination Layer or Category END_ITEM 2 (1 STRN 5007) = "*" ! Filter END_ITEM 3 (1 LIST 5007) = 0 ! List (Items selected) END_ITEM 5 (1 LIST 5007) = 0 ! List (Items selected) END_ITEM 7 (1 BLO 5007) = 0 ! Re-highlight Objects DIALOG_END -2, 0 ! Layer Move: OK FOCUS CHANGE IN 1