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
Link to post
Share on other sites
  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

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

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 😅

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

Posted Images

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

      • Startups, apply for the Forward AM Innovation Award!
        Are you a startup using 3D printing? Perhaps you should continue reading... 
         
        Together with BASF we are launching the Forward AM Innovation Award - the very first global contest for startups developing new applications with 3D printing!
         
        Why apply?
        The winning startup will receive €100,000 in goods and services*, along with coaching and marketing exposure from top-notch leaders in the industry.
         

         
        Who can apply?
        Your startup creates products using Additive Manufacturing, is less than 5 years old, and has less than 50 employees. We are looking for 3D printing applications with a strong focus on innovation, sustainability and scalability.
         
        Dental aligners, shoes, tools, automotive parts, music instruments, industrial tooling and molding, medical implants, sports equipment, toys, architecture, fashion, construction... all are welcome to join!
         
        Do you have an innovative, sustainable and scalable idea that leverages the unique possibilities of 3D printing? Then it is time to apply!
        More information can be found here.
         
        Applications close on March 28th, 2021
        * What does "in goods and services" mean?
        The winner will be able to pick any item from the overall product and service portfolio of the sponsors, e.g. printers, materials, consulting, software... Choose whatever you need to accelerate your startup.
         
          • Like
        • 0 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...