Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Solved execute macros in subdirectories

    Firmware wishlist
    2
    3
    118
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mikeabuilder
      mikeabuilder last edited by

      I have quite a few macros now and I'd like to organize them in sub-directories under the macro directory. But it seems that macros only execute when selected from the main macro directory. So my wish is that macros in any directory under the macros directory execute when selected.

      This is not too bad when working in DWC, but is really painful when working from PanelDue.

      fcwilt 1 Reply Last reply Reply Quote 0
      • fcwilt
        fcwilt @mikeabuilder last edited by

        @mikeabuilder

        The macro directory is for code you wish to be able to execute via a DWV macro button.

        For code that is only to be called from other code it is better suited for the SYS directory.

        So are you speaking of code you wish to execute via a macro button? You can create sub-directories under the macro directory which will show up as a "macro" button which will allow you to navigate to the sub-directory which should display a list of macros in the sub-directory.

        Frederick

        Printers: A FT-5 with the 713 upgrade bits. A custom MarkForged style. A small Utilmaker style and a CoreXY from kits. Various hotends. Using Duets (2 and 3) running 3.4.1

        1 Reply Last reply Reply Quote 0
        • mikeabuilder
          mikeabuilder last edited by

          @fcwilt - I am speaking of code I want to execute via a macro button (thanks for teaching me the proper term). And I was being a bit daft when I wrote my post. The macro in the sub-folder did show up as a macro button and I when I selected it "nothing" happened - I thought. But I just verified that the macro did execute. On PanelDue, there is no request for confirmation (like in DWC), so my macro executed without me realizing it.

          My takeaway is that for my macros I'll always write a message so I know it's executing.

          So to summarize - Pilot error (the best kind of SW "bug"), followed by too-quick-to-post-itis.

          1 Reply Last reply Reply Quote 1
          • Topic has been marked as a question  dc42 dc42 
          • Topic has been marked as solved  dc42 dc42 
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA