Category Archives: GENESIS64

โค้ด GENESIS64 : เลือก View ตามค่า OPC

var n : int;function ZoomTo(sender : System.Object, cmdArgs : Ico.Gwx.CommandExecutionEventArgs){    var MainViewport: Ico.Gwx.Gwx3DControl = ThisConfiguration.GetObjectByName(“MainViewport”).ToDependencyObject();    var value = 0;    value = ThisConfiguration.GetDynamicObjectByName(“ppt1”).GetValueOfPrimaryDataSource();         switch (value)    {        case 1:        MainViewport.MainCamera = MainViewport.FavoriteViews.Get(“V1”);        break;        case 2:        MainViewport.MainCamera = MainViewport.FavoriteViews.Get(“V2”);        break;        case … Continue reading

Posted in GENESIS64 | Leave a comment