Sub Main Dim s,d As String ' Load GC-Basic example file. s = "d:\5" ' The home directory. d = s + "\test2.gwk" ' The path of the file. ' Restore the file and ask the user if the file in use ' needs to be saved. SaveAll d, GCB_OVERWRITE ' Hide layer 3. Layers(3).EditStatus = GCB_LAYER_EDIT_STATUS_HIDE MarkAll MirrorXMarked 0, True ' Mirror left-right about x = 0. RedisplayGraphicsWindow UnMark MsgBox "Board mirrored about the X-axis." Layers(2).EditStatus = GCB_LAYER_EDIT_STATUS_HIDE ' Layer to isolate. GCBEditReadyLayerGroup = "1" ' Hide all layers except layer 2.
' Isolate all marked data. Isolation layer is 5. MarkAll Layers(1).tracapernum = 2 Isolate 5, 0.010, False UnMark 这里转向的还是第一把刀 , Layers(1).tracapernum = 2 这个参数好像没有起来作用 后面还有按Q ,更改刀具大小,缩刀,还有填充 mark 等。还有自动输出 CNC ,接着把 r01 更改为 A01,输出GBR, |