Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Naming and ordering macros

    Scheduled Pinned Locked Moved
    Duet Web Control wishlist
    5
    10
    1.1k
    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.
    • fmaundefined
      fma
      last edited by

      According to this page:

      https://duet3d.dozuki.com/Wiki/Setting_up_macro_files_for_common_tasks#Section_Naming_and_ordering_macros

      it is possible to order the macros by prepending them with '#_'. But it does not work: the number and underscore are removed from the name, but they are not ordered in DWC.

      Am I missing something, or is it a bug?

      Thanks.

      Frédéric

      dc42undefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        @fma said in Naming and ordering macros:

        https://duet3d.dozuki.com/Wiki/Setting_up_macro_files_for_common_tasks#Section_Naming_and_ordering_macros

        It still works on the PanelDue. I'm not sure if the prefix part ever worked that way with the DWC because it shows you the actual file name. You need that file name to call the macro with an M98. On the PanelDue it has limited characters for display, so it makes more sense to chop off the prefix there.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • fmaundefined
          fma
          last edited by

          As said, DWC strips out the num+underscore when it displays macros.. But it does not order them. Or it orders them after removing the num!

          PS: so this thread should be moved to DWC sub-forum...

          Frédéric

          deckingmanundefined 1 Reply Last reply Reply Quote 0
          • deckingmanundefined
            deckingman @fma
            last edited by

            @fma said in Naming and ordering macros:

            As said, DWC strips out the num+underscore when it displays macros.. But it does not order them. Or it orders them after removing the num!

            PS: so this thread should be moved to DWC sub-forum...

            Looks like a "DWC thing" to me. The Wiki is fairly clear on what should happen. Do you have a Panle Due as well and if so, are they ordered correctly on that?

            Ian
            https://somei3deas.wordpress.com/
            https://www.youtube.com/@deckingman

            1 Reply Last reply Reply Quote 0
            • fmaundefined
              fma
              last edited by

              No, I only use my Duet through DWC.

              Frédéric

              deckingmanundefined 1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @fma
                last edited by

                @fma Yes, I've just looked at mine and there is something very strange going on.
                I'm not using #_ but without that, there is something amiss.

                Taking the first letter or digit of my macros, they are shown in the order L,L,P,S,U,U,3,5,i,R,t. If I click on "File name" to reverse the order (Z to A), I get U,U,S,P,L,L ,t,R,i,5,3. I'm not sure if lower case should come before upper case but the upper case R" should be between the "P" and the "S" and I always thought that numbers came before letters - certainly not in the middle of a list of letters. My Panel Due shows the same order above (starting with the "L"). My Panel Due firmware may not be the latest but DWC is 1.22.3 which I think is the latest.

                I just created a couple of new macros and gave them the titles "aaa" and "ZZZ". The "aaa" gets inserted in the list between the "i" and the "5" and the "ZZZ" gets inserted in the list between the "L" and the "t" when ordered z to a but at the end of the list when ordered a to z. No logic to it that I can see.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                1 Reply Last reply Reply Quote 0
                • fmaundefined
                  fma
                  last edited by

                  I also noticed such strange ordering, but when mixing dirs and files...

                  Frédéric

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators @fma
                    last edited by

                    @fma said in Naming and ordering macros:

                    According to this page:

                    https://duet3d.dozuki.com/Wiki/Setting_up_macro_files_for_common_tasks#Section_Naming_and_ordering_macros

                    it is possible to order the macros by prepending them with '#_'. But it does not work: the number and underscore are removed from the name, but they are not ordered in DWC.

                    Am I missing something, or is it a bug?

                    Thanks.

                    I presume you mean the ordering of macros on the Control page of DWC. I'm seeing that too, so it looks like a bug to me. I'll notify chrishamm.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    1 Reply Last reply Reply Quote 0
                    • fmaundefined
                      fma
                      last edited by

                      Thank you.

                      Frédéric

                      1 Reply Last reply Reply Quote 0
                      • chrishammundefined
                        chrishamm administrators
                        last edited by

                        This will be fixed in the next DWC version. Thanks for reporting it!

                        Duet software engineer

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA