วันพฤหัสบดีที่ 27 เมษายน พ.ศ. 2560

กัน Loop ใน Autocad api

กด ESC แล้ว หลุด จากโปรแกรม
    if (HostApplicationServices.Current.UserBreak())
                        throw new Autodesk.AutoCAD.Runtime.Exception(

                            ErrorStatus.UserBreak, "ESCAPE pressed");

วันพฤหัสบดีที่ 20 เมษายน พ.ศ. 2560

debug แบบ Attach Visual studio 2013 บน Win10

ในการ Debug ต้อง แก้ options ใน VS2013

"Use Managed Compatibility Mode" and is found in the Tools -> Options -> Debugging