Esempio n. 1
0
    //------------------------------------------------------------------------------
    //---------------------Block UI Styler Callback Functions--------------------------
    //------------------------------------------------------------------------------

    //------------------------------------------------------------------------------
    //Callback Name: initialize_cb
    //------------------------------------------------------------------------------
    public void initialize_cb()
    {
        try
        {
            group          = Snap.UI.Block.Group.GetBlock(theDialog, "group");
            bodySelect0    = Snap.UI.Block.SelectObject.GetBlock(theDialog, "bodySelect0");
            plane0         = Snap.UI.Block.SpecifyPlane.GetBlock(theDialog, "plane0");
            stringElecName = Snap.UI.Block.String.GetBlock(theDialog, "stringElecName");
            toggleJiaju    = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggleJiaju");
            selectionJiaju = Snap.UI.Block.SelectObject.GetBlock(theDialog, "selectionJiaju");
            toggle0        = Snap.UI.Block.Toggle.GetBlock(theDialog, "toggle0");
            groupXYZ       = Snap.UI.Block.Group.GetBlock(theDialog, "groupXYZ");
            expressionX    = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionX");
            expressionY    = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionY");
            expressionZ    = Snap.UI.Block.Expression.GetBlock(theDialog, "expressionZ");
        }
        catch (Exception ex)
        {
            //---- Enter your exception handling code here -----
            theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
        }
    }
Esempio n. 2
0
    //------------------------------------------------------------------------------
    //---------------------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());
        }
    }