8 Replies Latest reply on Aug 8, 2013 9:13 AM by frank.henne

    Binding Push & Pop to Mouse Strokes

    david.hughes3

      Hi,

       

      I am trying to Bind the Push and Pop commands (to traverse Up and Down a hierarchical design) to the Middle Mouse Button Strokes. I have added the following lines to both the "exped_wvo.vbs" and "vdbindings.vbs" files but get an error as shown.

       

      Bindings("Stroke").AddStroke "456", "EditPush"

      Bindings("Stroke").AddStroke "654", "EditPop"

      untitled.bmp

       

      The Bindings("Stroke").AddStroke "7412369", "EditUndo" command seems to work fine, so I do not understand why the Push and Pop commands do not.

       

      Any ideas?


      Dave

        • 1. Re: Binding Push & Pop to Mouse Strokes
          MENTOR_Shannonk

          The error says the tool doesn't know what EditPush, and probably EditPop mean.  Are those the correct command calls?  In my existing key bindings file I find "WVOPushSchematic" and I don't find a pop command at all.

           

          Using WVOPushSchematic works like a charm, don't know what the pop command is, it isnt: WVOPopSchematic, EditPop, PopSchematic, Pop

          • 2. Re: Binding Push & Pop to Mouse Strokes
            david.hughes3

            Thanks for your help Mentor_Shannonk - thats got the Push sorted .

             

            The other functions I am trying to assign to Mouse Strokes are:

             

            • Close the current sheet
            • Open the Select Filter
            • Report the selected objects (to act as if enetering OD in the command window)

             

            Does anyone know what these commands are or where the available commands are defined?

             

            Dave

            • 3. Re: Binding Push & Pop to Mouse Strokes
              MENTOR_Shannonk

              I made the following work:

               

              Bindings("Stroke").AddStroke "258", "WVOPushSchematic"

              Bindings("Stroke").AddStroke "456", "FileClose"

              Bindings("Stroke").AddStroke "32147", "ViewSelectionFilter"

               

              I can't get the od(etail) or pop to work as strokes but they will work as single keystrokes because we can tell AddKeyBinding that they are commands:

               

              Bindings("Schematic").AddKeyBinding "p", "Pop", Cmd, Key

              Bindings("Schematic").AddKeyBinding "v", "odetail", Cmd, Key

               

              Unfortunately there is not a "list" of available (and working) commands, menu picks and whatnots.

               

              There is a list of Command Line commands in the DxDesigner Reference Manual, many of these will work as keystrokes, but not as mouse strokes.

              Many of the menu picks also work, File > Close becomes FileClose, View > Other Windows > Selection Filter becomes ViewSelectionFilter. But Edit > Pop doesn't work as EditPop.

              The "whatnots" are the kind of info that we can pick out of the different key binding files. WVOPushSchematic is one of those whatnots.

              1 of 1 people found this helpful
              • 4. Re: Binding Push & Pop to Mouse Strokes
                david.hughes3

                Thanks Mentor_Shannonk - all sorted :-)   The FileClose works well enough as an alternative to POP.


                Dave

                • 5. Re: Binding Push & Pop to Mouse Strokes
                  frank.henne

                  Why does Mentor not document the available commands for strokes, mouse buttons and keys?

                  Sounds too easy...

                   

                  Regards

                  Frank

                  • 6. Re: Binding Push & Pop to Mouse Strokes
                    Vern_Wnek

                    Frank,

                     

                    In DxDesigner, use the commands Help > Show Bindings and Help > Show Strokes to show you the available Key Bindings and Mouse Strokes.

                     

                    Thanks,

                    Vern Wnek

                    • 7. Re: Binding Push & Pop to Mouse Strokes
                      Vern_Wnek

                      Frank,

                       

                      Sorry too quick...

                       

                      You can also find all of the information on Keys, Mouse strokes and commands in the document "Dxdesigner_ref.pdf" in the \docs\pdfdocs directory of your \MentorGraphics install directory.

                       

                      Thanks,

                      Vern Wnek

                      • 8. Re: Binding Push & Pop to Mouse Strokes
                        frank.henne

                        sorry Vern, I do not find e.g. "WVOPushSchematic" in this document for EE7.9.4.

                        We are looking for list of possible commands to add to  new keys or strokes  for my users...

                         

                        For example:  What is the command name for "goto parent sheet"?

                         

                        Please see also MENTOR_Shannonk's remark on 1. Aug.

                         

                        Thanks

                        Frank