Jump to content
Ultimaker Community of 3D Printing Experts

FreeCAD plugin (official thread)


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

Share this post


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
  • Share this post


    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.

     

     

     

  • Share this post


    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...).

  • Share this post


    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.

  • Share this post


    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.

  • Share this post


    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...

  • Share this post


    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
  • Share this post


    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"???

  • Share this post


    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.

  • Share this post


    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!!!

  • Share this post


    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

    Share this post


    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?

  • Share this post


    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.

  • Share this post


    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

    Share this post


    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!

  • Share this post


    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.

  • Share this post


    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!

  • Share this post


    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!

  • Share this post


    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.

  • Share this post


    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.

  • Share this post


    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
  • Share this post


    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
  • Share this post


    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

      • Talking additive | The 3D printing podcast
        Why should we be the only ones asking questions? Join us and ask Jabil all your questions on September 22nd 5pm CET
          • Like
        • 2 replies
      • Ultimaker masterclass: Optimizing your Ultimaker Cura workflow
        Save your seat for either broadcast on September 23.
        What will you learn?
        · Best practices for iterative print preparation and every lesson you should learn from each print
        · The right way to use per-object settings and when they are most useful
        · Easy-to-use resources for anyone who wants to develop their own printer definitions, plugins, or print profiles
        · How to optimize print profile settings and whether to “keep” or “discard” changes
        · When is the right time to export your drawing from CAD? (Based on Ultimaker Cura’s surprising power as 3D control software)
        · And a whole lot more tips and tricks!
         
        How can I join?
        This free masterclass will take place twice:
        1. 11am CEST (5pm SGT, 5am EDT)
        2. 5pm CEST (11am EDT, 8am PDT, 11pm SGT)
          • Like
        • 0 replies
      • Do you use 3D printing at work? Let us know
        It doesn't matter if you are using 1 Ultimaker or 10, there is inspiration in everything. We're looking for ...
        • 1 reply
    ×
    ×
    • Create New...