Jump to content

FreeCAD plugin (official thread)


thopiekar

Recommended Posts

Posted (edited) · FreeCAD plugin (official thread)

Here another thread regarding one of my plugins. As I see not too many discussions about the FreeCAD plugin so far, I would like to advertise to use only this thread for discussion.

This way many users can meet at one place and help themselves or I can give support of course, too.

 

PS: I noticed a bug in the plugin that will merge all bodies of all objects in a CAD file. If someone is interested to test, please let me know.

 

Edited by thopiekar
  • Thanks 1
Link to post
Share on other sites

Posted (edited) · FreeCAD plugin (official thread)

@RobyRob You can find the macro (Python script) for the conversion inside the plugin here:

https://thopiekar.eu:5443/cura-cad-integration/CuraFreeCadPlugin/blob/master-updating-conversion-script/CuraFreeCADPlugin/scripts/convertIntoSTL.py

This is the one I use in the latest unreleased package. As far as I understand, after opening the file I should be able to get the active object via native_file.ActiveObject, no?

So the differences you probably see, is that you have unsaved changes. The plugin runs FreeCAD and the mentioned macro in the background. It doesn't know anything about the unsaved changes someone made inside FreeCAD's window at the moment.

Edited by thopiekar
  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    @thopiekar In Freecad It seems the ActiveObject is the last created one (may be a bug) You can check it in Pyton Console with >>> App.ActiveDocument.ActiveObject.Name    after create more body/object

     

    But it is not a problem: I think you have just to know that if you have more object/body ( say a cube and a cylinder) you must do a fusion as last step.

     

     

     

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    3 hours ago, thopiekar said:

    I guess, you are using Linux, right?

     

    PS: The bug fix works for you?

    I'm sorry, yes, I'm using Linux.

     

    And I don't know if the bugfix works, because I have not installed FreeCAD-stable only for the plugin. This is not an acceptable solution for me (I am a morbid perfectionist...).

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    4 hours ago, RobyRob said:

    @thopiekar In Freecad It seems the ActiveObject is the last created one (may be a bug) You can check it in Pyton Console with >>> App.ActiveDocument.ActiveObject.Name    after create more body/object

     

    But it is not a problem: I think you have just to know that if you have more object/body ( say a cube and a cylinder) you must do a fusion as last step.

     

     

     

    Hmm, so there could be two ways of importing something into Cura, right? Once by using an active object, as I do now, or by looking for visible bodies.

    I guess the method with the visible bodies could get interesting when printing with multiple extruders.

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    2 hours ago, UbuntuBirdy said:

    I'm sorry, yes, I'm using Linux.

     

    And I don't know if the bugfix works, because I have not installed FreeCAD-stable only for the plugin. This is not an acceptable solution for me (I am a morbid perfectionist...).

    Well, if it is not too difficult for you, then add the binary directory of your installation to the $PATH environment variable.
    Or (as I do) upgrade FreeCAD using the FreeCAD PPA. Currently, they deliver version 0.18.0 in it.

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    25 minutes ago, thopiekar said:

    Well, if it is not too difficult for you, then add the binary directory of your installation to the $PATH environment variable.
    Or (as I do) upgrade FreeCAD using the FreeCAD PPA. Currently, they deliver version 0.18.0 in it.

    I am using the FreeCAD PPA, but the daily builds...

    Well, I believe it would not be too difficult to add the binary directory, if I would know where to find the $PATH environment variable...

  • Link to post
    Share on other sites

    Posted (edited) · FreeCAD plugin (official thread)

    @UbuntuBirdy Personally, I prefer the second answer (modifying .bashrc):

    https://askubuntu.com/questions/60218/how-to-add-a-directory-to-the-path

     

    PS: The new version is on its way:

    image.png.8256c3a08bf5db06e29f61dbf6c2e07d.png

    Edited by thopiekar
  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    hmmm ... either my faith in my ability was too strong, or it is not because of the missing path...
    Can the reason be that the daili builds is started not with the command "freecad" but with "freecad-daily"???

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    Could be. I'm using the stable PPA. Does an "freecadcmd-daily" exist, too?

    The plugin is using the freecadcmd command line application to do the conversion from FCstd to STL automatically.

    If another name is used, then it won't be recognized.

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    That's it! I changed the "FreeCADcmd" to "FreeCADcmd-Daily" and now it works perfect! Thank you so much for your plugin and your support!!!

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    7 minutes ago, UbuntuBirdy said:

    That's it! I changed the "FreeCADcmd" to "FreeCADcmd-Daily" and now it works perfect! Thank you so much for your plugin and your support!!!

    Haha, no problem. I think I need to think about adding a window for overwriting the path to the executable and overwriting the executable name 😅

    • Like 1
    Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    2 minutes ago, thopiekar said:

    Haha, no problem. I think I need to think about adding a window for overwriting the path to the executable and overwriting the executable name 😅

    Would it not be easier to query the two or three options and execute them accordingly?

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)
    1 minute ago, UbuntuBirdy said:

    Would it not be easier to query the two or three options and execute them accordingly?

    Yes, would save them in the settings storage and recover them on each load of a file. Within a settings window in the menu, they could get changed or reset. Think that might be something interesting for all commandline-based plugins (Blender and OpenSCAD), too.

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    I am happy with every solution, even if I have to rewrite from hand to daily like now...

    • Like 1
    Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    Could someone with an Apple laptop do me a favour and test the unreleased plugin above?

     

    Thanks!

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    Found the bug. Made the changes on the script with FreeCAD 0.18, but some functions are not backwards compatible to 0.17. Made it working for both now.

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    New testing release:

    https://thopiekar.eu:5443/cura-cad-integration/CuraFreeCadPlugin/-/jobs/1300/artifacts/browse

     

    I just touched some minor things when working on the SolidWorks and Inventor plugin.

    Would be great if you could give it a try.

     

    Thanks!

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    Made my FreeCAD-Daily adaptation and it works like a dream! Thanks again!

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    Hey guys, where should I post issues for Freecad Plugin? 

     

    I am running Cura 4.2.1 with Freecad Integration plugin 0.3.1. It can't open my FCStd files from Freecad 0.18.3.

    Please, can someone reference me where this plugin is being developed?

     

    As I could verify, It works with Frecad <= 0.18.2 only.

  • Link to post
    Share on other sites

    Posted · FreeCAD plugin (official thread)

    Hello Leo,

     

    there are problems uploading a new release with corrections for FreeCAD >= 0.18.0.

    Hope I'll manage to resolve the issue together with Ultimaker soon.

  • Link to post
    Share on other sites

    Posted (edited) · FreeCAD plugin (official thread)

    Hello thopiekar, thanks for the reply. Is there any thing that I can do to help you?

    Edited by leoheck
  • Link to post
    Share on other sites

    Posted (edited) · FreeCAD plugin (official thread)

    I am still investigating this issue. Now, I have cura 4.3.0 with FreeCAD integration 0.3.2.

    The macro runs flawlessly from the command line but I was not able to run it with Cura.

     

    I am thinking the issue is in the CommonCLIReader.py but it is just a guess.

     

    Maybe it is a bug on executeCommand. I am discarding this one.  It looks good.

     

    Cura just say "Invalid File, Failed to load"

    image.png.5408fe3888155ee1f8634876de193bf9.png

    Edited by leoheck
  • 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

      • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
        • 0 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...