Jump to content

amrahabibovic

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by amrahabibovic

  1. On 1/11/2021 at 3:47 PM, SamGoldFisher said:

    Hi @amrahabibovic,

     

    I struggled a lot on this and maybe together we can find something out 😉

    Thanks @utopiah to ping me on this.

     

    Here are some questions for you, and if I understand your problem I can provide a guideline to help you on this:

    1) Do you want to slice a part with the parameters you have in Cura (the GUI), but you would like to do it with a command line?

    2) Do you want to slice only one part at a time?

    3) Would you like to orientate them in order to have a part well orientate and reduce the printing time?

    If the answer to those 3 questions are yes. Then I can provide a clear solution for you. If not, there is a subtlety I didn't understood.

     

    I don't get your trouble with "material profile". To be honest the only thing that you are interrested in is the temperature of your printhead, your bed, and eventually your chamber (with one or two more things but keep things simple). All those parameters can be given by command line using '-s <parameters_name>=<value>' as stated in the documentation.

     

    Let me know if you want to work on this. It is possible to get all the parameters from the cura log when you slice, then to write them into a .def.json definition, then to slice automatically while giving the best orienation for you part using the amazing Tweaker tool from Christoph Schranz.

     

    Let me know,

     


    Hey thanks for the response :)


    I'm working on the API that'll receive all required settings for slicing. There's Python program and CuraEngine running in the background. 

    The answer is yes to all of those questions if I understand correctly :) I will be using Cura GUI for exporting settings, but not for selected individual model.


    I'm using formula (pi * (radius)^2 * extruded length * density)  for calculating material weight. The diameter is exported in html file as well so that's sorted out. The only parameter missing is material density.

    I'll look into Tweaker tool as well and see if I could use it for my problem.

     

    I don't know if I overlooked something, so let me know. Any help would be appreciated!

     

  2. On 12/31/2020 at 7:48 PM, utopiah said:

    Curious about this too. Seems @SamGoldFisher in

    has a possibly reliable way.

     

    As I'm still learning about the UM2+ Connect and still trying to ssh to it, I still don't have a straightforward to directly feed it gcode but I'm also curious about the most efficient and reliable way to go from Cura settings to CuraEngine for automation via CLI or programming APIs.

     

    My current workaround is by using HTML plugin:
    https://marketplace.ultimaker.com/app/cura/plugins/5axes/HTMLCuraSettings

    I export all settings to HTML file then read it in my Python program and pass settings to CuraEngine. I'm still testing this and one of the things that still has to be resolved is material profile. I need diameter and density to calculate material weight and also I need to check material compatibility with printer.

    • Like 1
  3. On 12/21/2020 at 3:09 PM, ahoeben said:

    Short answer: no, there is not.

     

    Longer answer: it is complicated, especially because settings can have global values, values per extruder, values per model, settings per group of models, etc.

     

    You could have a look how https://github.com/5axes/CuraSettingsWriter collects the setting values.

     

    Thanks for the answer.


    What about the other way around? Is there a way to find quality profile by the name and read its settings? I've read Cura and CuraEngine docs and looked at the resources (https://github.com/Ultimaker/Cura/tree/master/resources/quality) but I'm not sure how to pair printer with its corresponding quality profile. 

    Is there a script or doc I can have a look at? My idea is to make my own quality files with all parameters I will pass to CuraEngine so I need to know which printer uses which cfg file in resources.
     

  4. When i export predefined printer profile like normal or extra fine, values that are not changed won't be written in the files inside .curaprofile. I'm using CuraEngine and I read setting values and pass them to slicing command. There is "quality_type" parameter but from my understanding, CuraEngine will read default values in fdmprinter.def.json no matter of passed quality. Is there any plugin or workaround that allows me to export all setting parameters in file that I can read and then pass to CuraEngine in a command? 
    Thanks

×
×
  • Create New...