//------------------------------------------------------------------------------ //---------------------Block UI Styler Callback Functions-------------------------- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //Callback Name: initialize_cb //------------------------------------------------------------------------------ public void initialize_cb() { try { group = Snap.UI.Block.Group.GetBlock(theDialog, "group"); selectCuprum = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectCuprum"); strElecName = Snap.UI.Block.String.GetBlock(theDialog, "strElecName"); stringExp = Snap.UI.Block.String.GetBlock(theDialog, "stringExp"); stringExp1 = Snap.UI.Block.String.GetBlock(theDialog, "stringExp1"); strElecSize = Snap.UI.Block.String.GetBlock(theDialog, "strElecSize"); strElecCuttingSize = Snap.UI.Block.String.GetBlock(theDialog, "strElecCuttingSize"); group1 = Snap.UI.Block.Group.GetBlock(theDialog, "group1"); //scrolledWindow = (NXOpen.BlockStyler.ScrolledWindow)theDialog.TopBlock.FindBlock("scrolledWindow"); txtFINISHNUMBER = Snap.UI.Block.Integer.GetBlock(theDialog, "txtFINISHNUMBER"); txtMIDDLENUMBER = Snap.UI.Block.Integer.GetBlock(theDialog, "txtMIDDLENUMBER"); txtROUGHNUMBER = Snap.UI.Block.Integer.GetBlock(theDialog, "txtROUGHNUMBER"); cboxMATNAME = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cboxMATNAME"); cboxMMATNAME = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cboxMMATNAME"); cboxRMATNAME = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cboxRMATNAME"); cbbProdirection = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbProdirection"); cbbRockShape = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbRockShape"); cbbShape = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbShape"); //scrolledWindow1 = (NXOpen.BlockStyler.ScrolledWindow)theDialog.TopBlock.FindBlock("scrolledWindow1"); txtFINISHSPACE = Snap.UI.Block.Double.GetBlock(theDialog, "txtFINISHSPACE"); txtMIDDLESPACE = Snap.UI.Block.Double.GetBlock(theDialog, "txtMIDDLESPACE"); txtROUGHSPACE = Snap.UI.Block.Double.GetBlock(theDialog, "txtROUGHSPACE"); cbbElecType = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbElecType"); cbbRock = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbRock"); //scrolledWindow11 = (NXOpen.BlockStyler.ScrolledWindow)theDialog.TopBlock.FindBlock("scrolledWindow11"); cbbFSmoth = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbFSmoth"); cbbMSmoth = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbMSmoth"); cbbRSmoth = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbRSmoth"); cbbChuckType = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbChuckType"); //CAPSET cbbCAPSET = Snap.UI.Block.Enumeration.GetBlock(theDialog, "cbbCAPSET"); groupSElec = Snap.UI.Block.Group.GetBlock(theDialog, "groupSElec"); // Block type: Group selectTopFace = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectTopFace"); // Block type: Selection selectBaseFace = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectBaseFace"); // Block type: Selection //selectBaseFacePoint=Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectBaseFacePoint");// Block type: Selection selectBaseFacePointEx = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "selectBaseFacePointEx"); // Block type: Selection } catch (Exception ex) { //---- Enter your exception handling code here ----- theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } }
//------------------------------------------------------------------------------ //---------------------Block UI Styler Callback Functions-------------------------- //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ //Callback Name: initialize_cb //------------------------------------------------------------------------------ public void initialize_cb() { try { selection0 = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selection0"); toggleJiaju = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleJiaju"); selectionJiaju = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectionJiaju"); enum01 = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum01"); groupRotation = Snap.UI.Block.Group.GetBlock(theDialog, "groupRotation"); enumRotation = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enumRotation"); pointAxis = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "pointAxis"); vector0 = Snap.UI.Block.SpecifyVector.GetBlock(theDialog, "vector0"); expressionAngle = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionAngle"); toggleRotationMove = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleRotationMove"); toggleRotationPatter = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleRotationPatter"); groupMove = Snap.UI.Block.Group.GetBlock(theDialog, "groupMove"); enum0 = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enum0"); pointStart = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "pointStart"); pointEnd = Snap.UI.Block.SpecifyPoint.GetBlock(theDialog, "pointEnd"); enumSelectAxis = Snap.UI.Block.Enumeration.GetBlock(theDialog, "enumSelectAxis"); expressionDistance = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistance"); expressionDistanceX = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistanceX"); expressionDistanceY = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistanceY"); expressionDistanceZ = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionDistanceZ"); toggleMoveRotation = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleMoveRotation"); toggleMovePatter = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleMovePatter"); group = Snap.UI.Block.Group.GetBlock(theDialog, "group"); vectorPatter = Snap.UI.Block.SpecifyVector.GetBlock(theDialog, "vectorPatter"); expressionPatterSum = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionPatterSum"); expressionPatterDistance = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionPatterDistance"); } catch (Exception ex) { //---- Enter your exception handling code here ----- theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString()); } }