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

    3D GCode Viewer integrated with DWC

    Scheduled Pinned Locked Moved
    Duet Web Control wishlist
    42
    284
    30.5k
    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.
    • MJLewundefined
      MJLew
      last edited by

      Is there a requirement for code headers? I have hand-written gcode files that print but do appear entirely empty in the viewer.

      Sindariusundefined 1 Reply Last reply Reply Quote 0
      • Sindariusundefined
        Sindarius @MJLew
        last edited by

        @MJLew if you want to send it to me I can take a look. I can assure you no headers are necessary. The viewer throws away every line that starts with ;

        MJLewundefined 1 Reply Last reply Reply Quote 0
        • MJLewundefined
          MJLew @Sindarius
          last edited by

          @Sindarius Thanks very much. The attached is a simple cylinder.cylinder 6c.gcode

          Sindariusundefined 1 Reply Last reply Reply Quote 0
          • Sindariusundefined
            Sindarius @MJLew
            last edited by Sindarius

            @MJLew

            Thank you for sharing the file

            So the problem is your file is using Carriage Return \r on the file and the viewer looks for Line Feed \n to break the lines apart so it is reading the whole file as a single line. What text editor did you use I usually see \r\n or \n it's the first time I've ever noticed just \r

            Once I changed that it worked but it looks like it's not appreciating somthing in the G3 in the rendering. I will have to look into that, my guess is something is wrong with the R calculation.

            b35d4b0b-f56e-4a9d-8479-fccc46386f9c-image.png

            I found the issue in the arc code that the renderer uses. Fix should be in for 3.3

            cd450135-580b-48ee-af93-cae8ee9fe330-image.png

            MJLewundefined 1 Reply Last reply Reply Quote 0
            • MJLewundefined
              MJLew @Sindarius
              last edited by

              @Sindarius Thank you Sindarius. The file was made by code I wrote in LiveCode, and, yes, the lines are separated by returns. I can probably use any line delimiter I like, but returns are normal for Mac, I think.

              I look forward to using the fixed viewer, as I am doing a lot of trial and error printing with my custom gcode using G2 and G3 because Simplfy3D won't display it.

              MJLewundefined 1 Reply Last reply Reply Quote 0
              • MJLewundefined
                MJLew @MJLew
                last edited by

                @MJLew Oh, and I should add that the return-delimited file runs with Duet and Smoothieboard, so maybe the viewer should allow return-delimited files too. 🙂

                Sindariusundefined 1 Reply Last reply Reply Quote 0
                • Sindariusundefined
                  Sindarius @MJLew
                  last edited by

                  @MJLew I'll take it into consideration. In the meantime I have a temporary solution that may at least get you testing in the near term. I have been working on a voxel version of the visualizer for fun and I already applied the same fixes that will be in 3.3. If you can tolerate some little squares in your testing you can give this a go.

                  https://sindarius.github.io/

                  746e9412-3e68-4286-933c-af054a56df24-image.png

                  Image from iOS.png

                  MJLewundefined 1 Reply Last reply Reply Quote 0
                  • MJLewundefined
                    MJLew @Sindarius
                    last edited by

                    @Sindarius Works fine for gcode from S3D, but not my return-delimited files come up blank. (The Minecraft style is really cool!)

                    Sindariusundefined 1 Reply Last reply Reply Quote 0
                    • Sindariusundefined
                      Sindarius @MJLew
                      last edited by

                      @MJLew It's going to be the same deal. It is using the same processing so it's not going to accept carriage return.

                      1 Reply Last reply Reply Quote 0
                      • MartinNYHCundefined
                        MartinNYHC
                        last edited by

                        Can Ideamaker label objects? Cannot find something in the settings menu and GcodeViewer doesn't show object labels.

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

                          @martinnyhc said in 3D GCode Viewer integrated with DWC:

                          Can Ideamaker label objects? Cannot find something in the settings menu and GcodeViewer doesn't show object labels.

                          Yes, it labels objects, and RRF 3.3RC2 recognises those labels.

                          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

                          MartinNYHCundefined 1 Reply Last reply Reply Quote 0
                          • MartinNYHCundefined
                            MartinNYHC @dc42
                            last edited by

                            @dc42 said in 3D GCode Viewer integrated with DWC:

                            @martinnyhc said in 3D GCode Viewer integrated with DWC:

                            Can Ideamaker label objects? Cannot find something in the settings menu and GcodeViewer doesn't show object labels.

                            Yes, it labels objects, and RRF 3.3RC2 recognises those labels.

                            Need to double check that. Had a print today where I would like to cancel an object and it was not possible (which means the option "show object labels" was grayed out).

                            T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                            • T3P3Tonyundefined
                              T3P3Tony administrators @MartinNYHC
                              last edited by

                              @martinnyhc just had a quick check in the latest idea maker. the output I got is labelled as follows:

                              .....
                              ;PRINTING: test0.stl
                              ;PRINTING_ID: 1
                              .....
                              ;PRINTING: test2.stl
                              ;PRINTING_ID: 0
                              ......
                              ;PRINTING: test1.stl
                              ;PRINTING_ID: 2
                              .....
                              

                              so it is labelling the objects

                              www.duet3d.com

                              MartinNYHCundefined 1 Reply Last reply Reply Quote 0
                              • HebigTundefined
                                HebigT
                                last edited by

                                What might cause the cursor to be offset from the rendered preview?

                                GCV.JPG

                                I'm using a Toolchanger, so each of the tools have offsets with respect to the Z-probe. Perhaps the offset is not being referenced?

                                Sindariusundefined 1 Reply Last reply Reply Quote 0
                                • Sindariusundefined
                                  Sindarius @HebigT
                                  last edited by

                                  I’ll need to look i believe the code currently uses the machine position and not the tool position which could be the issue.

                                  HebigTundefined 2 Replies Last reply Reply Quote 0
                                  • MartinNYHCundefined
                                    MartinNYHC @T3P3Tony
                                    last edited by

                                    @t3p3tony said in 3D GCode Viewer integrated with DWC:

                                    ;PRINTING

                                    [...]
                                    G1 F3600 X138.747 Y111.877 E0.7349
                                    ;PRINTING: 3mm_hinge_a_with_logo_x2(1).stl
                                    ;PRINTING_ID: 1
                                    G1 F1500 E-2.0000
                                    [...]
                                    

                                    but "show object selection" is disabled:

                                    Screenshot 2021-05-23 at 11.50.22.png

                                    I'm using Ideamaker 4.1.1.5050 and RRF 3.3-RC2.

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

                                      @martinnyhc If you are using RRF 3.3-RC2 in SBC mode, please try to delete /opt/dsf/conf/config.json once and restart the Pi. I forgot to update the default DCS config in RC2 which contains a change for object detection for IdeaMaker. By deleting that file DCS will use the new defaults automatically.

                                      Duet software engineer

                                      MartinNYHCundefined 2 Replies Last reply Reply Quote 0
                                      • MartinNYHCundefined
                                        MartinNYHC @chrishamm
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • MartinNYHCundefined
                                          MartinNYHC @chrishamm
                                          last edited by

                                          @chrishamm said in 3D GCode Viewer integrated with DWC:

                                          @martinnyhc If you are using RRF 3.3-RC2 in SBC mode, please try to delete /opt/dsf/conf/config.json once and restart the Pi. I forgot to update the default DCS config in RC2 which contains a change for object detection for IdeaMaker. By deleting that file DCS will use the new defaults automatically.

                                          Still not working.

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

                                            @martinnyhc AFAIR parts of the second object have to be printed before the object selection starts working. If it still doesn't work, make sure you are on DSF 3.3-RC2 and that "PRINTING" is part of the FirmwareComments field in /opt/dsf/conf/config.json. That file should have been regenerated after the reboot.

                                            Duet software engineer

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