Jump to content

Recommended Posts

Posted · How to remove "M10086" lines with the bitmap?

I am new to cura, and I could not find the setting to remove the bitmap from the beginning of the gcode file--the images where the lines start with M10086.

 

Is it possible to prevent it from being added?

 

Thanks!

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?
    On 1/30/2021 at 2:13 PM, Tenaja said:

    I am new to cura, and I could not find the setting to remove the bitmap from the beginning of the gcode file--the images where the lines start with M10086.

     

    Is it possible to prevent it from being added?

     

    Thanks!

    Is there no way to reduce file size by eliminating this feature?

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?
    9 hours ago, Tenaja said:

    Is there no way to reduce file size by eliminating this feature?

     

    Dunno... i never heard of such a feature and i guess i'm not alone...

    I'm pretty sure, Cura does not add this gcode anywhere - at least not by default.

     

    Do you use a special (non-Ultimaker) cura version? Or non-default plugins?

    Which kind of printers are using this gcode, and for which purpose?  🤷‍♂️

     

    Can you enlighten us?

     

     

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    You guys are probably right--I am using the Lotmaxx version of Cura. My Lotmaxx SC-10 Shark has a graphic display, and it shows the bitmap of the 3d model. I mistakenly assumed this was standard for Cura. There are so many things that seem standard, but the one machine-specific feature I saw was a laser plugin, but since I've only used S3D before, I could not tell it was special.

     

    Thanks!

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?
    2 hours ago, Tenaja said:

    I am using the Lotmaxx version of Cura.

     

    Is the "Search and Replace" post-processing script included in this Cura variant?

    I guess this can be used to remove these lines from the gcode file (if no other option exists).

     

  • Link to post
    Share on other sites

    Posted (edited) · How to remove "M10086" lines with the bitmap?

    Yes, it has that, so I'll have to dig out the Regular Expression tutorial...that should do the trick. (I have used them, but not often enough to have them memorized.)

     

    An example does not paste in an easy-to-see format, because the "bitmap" is 400 characters long, but each line starts with "M10086 ;" and then 400 characters of bitmap. These are the first few lines, out of about 300 total:

    Quote

    ;simage:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

     

    I entered this in Search:

    M10086 ;[a-fA-F0-9]*

    and this in Replace:

    ;

    and it looks like nothing changed. I guess I will need that help file...I did test the Search in Notepad++, and it found the lines. Not sure if they disabled this, or if I need to name the Search and use that name in the Replace, but I'll look into it tomorrow.

     

    Thanks for your help!

    Edited by Tenaja
  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Is it not possible to just disable the MKS plugin, which generates this code?

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    If it is, I have not found where that would be. Where are plugins? The only thing under Extensions...

    Extensions->Lotmaxx Backups->Manage Backups

    Extensions->Post Processing->Modify GCode

    Extensions->Update Checker->Check for Updates

     

    I looked through all of the menu items (and all of the Settings), and could not find it.

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Plugins can be disabled via the "Installed" tab of the Marketplace. Fairly well hidden away.

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Where is this located? I cannot find it. Perhaps my version had it removed...

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Nevermind, I found the Marketplace. I did not see what would obviously be the image embedding, but I will look through again later.


    Thanks for your help!

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?
    5 hours ago, Tenaja said:

    . I did not see what would obviously be the image embedding

    As mentioned before, the image embedding is part of the MKS Wifi Plugin. I don't think there is a way to stop that plugin from embedding the image, other than disabling the whole plugin. If you want an option to remove the image embedding without disabling the plugin altogether, you will have to ask the developers of that plugin. I think someone already asked so here:

    https://github.com/Jeredian/mks-wifi-plugin/issues/80

     

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Ahoeben, Thank you for the suggestion, but that plugin is not installed. This is every plugin listed as "Installed" in the Marketplace, but the only one I installed was Arc Welder:

    • 3MF reader
    • AMF reader
    • Arc Welder (which I installed recently, and permits Uninstall)
    • Auto-Orientation (permits Uninstall)
    • Compressed G-code reader
    • Compressed G-code writer
    • Cura Backups 
    • Cur a Profile Reader
    • Cura Profile Writer
    • Firmware Update Checker
    • Firmware updater
    • g-code profile reader
    • g-code reader
    • Image reader
    • legacy cura profile reader
    • machine settings action
    • mirror tool
    • model checker
    • per-object settings tool
    • post processing
    • removable drive output device
    • rotate tool
    • stl writer
    • scale tool
    • simulation view (provides the simulation view)
    • slice info
    • support eraser tool
    • titlebar info (permits uninstall)
    • Trimesh reader (grayed out, but permits uninstall)
    • ufp readerr
    • ufp writer
    • um3 network printing
    • usb printing
    • ultimaker machine actions
    • update checker
    • version upgrade 2.1 to 2.2 
    •       ..   .(and 14 more upgrade plugins, up to 4.2 to 4.5)
    • wavefront obj reader
    • wavefront obj writer
    • x-ray view
    • x3d reader
  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    I was hoping to dazzle everyone with my brilliance.  Instead, once again I find out how much I don't know.

     

    I loaded the LotMaxx Cura version (4.2.1), loaded a calibration cube, sliced, saved the gcode.  The gcode contains the 300 lines of bitmap.  Here is the log file.

    lotmaxx.log

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Ah, I'm sorry I missed the fact you use a customised version of Cura, I did not realize that Lottmax had butchered Cura the way they did. I've had a look at the code and it looks like there is no way to use Lottmax Cura without the bitmap gcode getting added. They simply hardcoded adding the bitmap gcode with no way to stop it.

     

    What you could do - as @tinkergnome already suggested - is using a Search & Replace postprocessing script. The regex is not very hard. This should work:

     

    Replace "M10086 .*" (without the quotes) with an empty string (and turn on the option to use regex).

     

    Or you could use proper Ultimaker Cura instead of Lottmax Cura.

     

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Both the LotMaxx version and the Cura version have definition files for your printer (the file name is the same "lotmaxx_sc60.def.json").  The definitions are slightly different.  In the Cura version the printer name is "Lotmaxx Shark" and in the LotMaxx version the printer name is "Lotmaxx SC-10 Shark".  There are a couple of other subtle differences and a couple of added settings.  The physical size of the printer is the same in both definitions.

     

  • Link to post
    Share on other sites

    Posted · How to remove "M10086" lines with the bitmap?

    Next time I have time I'll have to compare those json files.

     

    This:

    Replace "M10086 .*" (without the quotes) with an empty string (and turn on the option to use regex).

    Didn't work. I don't know about that specific "find" but I tried other regex's that worked in npp, and nothing changed in my gcode.

     

    It appears the Lotmaxx version is broken here.

     

    In the grand scheme, removing the image is not critical, but sometimes I get stuck on a challenge and hate to let go. Especially when it's things like a regex working in one place and not another.

     

    Thanks for all the help.

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...