Support for assembly2 continuing

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
easyw-fc
Veteran
Posts: 3629
Joined: Thu Jul 09, 2015 9:34 am

Re: Support for assembly2 continuing

Post by easyw-fc »

r-frank wrote: I also played around with your code.
If i am not mistaken all bodies within the document have to be made invisible
and only one shape (PartDesignNext-feature) within one of the bodies has to be visible, is this correct ?
no, with my modification you don't need too make Body invisible...
that is exactly the code modification purpose
as in this thread
viewtopic.php?f=28&t=18513&p=144673#p144673
and it is working also for that user
Grazie Maurice. Ho provato e funziona.
Please note that if you make any modification in your Mod yourfilemodified.py file, you need to restart FreeCAD to have this modification available...
Best is if you delete also yourfilemodified.pyc before restart FC
r-frank wrote: Because i opened your sample part and immediately got an error with abort upon import into
assembly2 (on Windows 7 64-bit with 0.17.8922).
So i opened your sample part in 0.17, made the body invisible, saved the file and tried again to import into
assembly2 - this time all went fine ...
hummm that is strange ... I tested this with the latest FC 0.17 8937 and it works fine (as it is working for the user @ Marco_T )
r-frank wrote: As soon as i get the feeling that 0.17 and its workflow will "stabilize" ;) i will be happy to merge the code ...
Roland
my code is back compatible with FC 0.15, FC 0.16 (it is transparent, which means doesn't do anything different of what is the behavior in previous FC releases) and it will work with all the next FC 0.17 releases until the Body object will not change its Name (that I don't think will ever happen), so I don't see any reason to wait in merging the code...
I also tested the code in FC 0.15 and FC 0.17 (8839) under ubuntu without any issue


PS there is already some of my code in assembly2...
you can see my PR merged here
https://github.com/hamish2014/FreeCAD_a ... 88f3aeaa3f
Marco_T
Posts: 262
Joined: Mon Jan 11, 2016 11:58 pm
Location: Di ca da l'aghe

Re: Support for assembly2 continuing

Post by Marco_T »

easyw-fc wrote: hummm that is strange ... I tested this with the latest FC 0.17 8937 and it works fine (as it is working for the user @ Marco_T )
Yes. For me no problems.
I use 0.16 and 0.17, and I have my Mod in c:/Users/User/AppData/Roaming/FreeCAD/Mod/...
I have updated .../assembly2/importPart.py and restarted FreeCAD.
I have tested with a simple body (pad+pocket). Now with body and last feature active the import works fine.
But I don't know if this hack could cause other problems...for now it works.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8939 (Git)
Build type: Release
Branch: master
Hash: cb16eda2165d1af34ebbd73628f82aa00037f667
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

--
Marco_T
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Support for assembly2 continuing

Post by r-frank »

Well, after deleting all *.pyc-files and making sure that FreeCAD was closed and re-opened suddenly all worked
as you described with 0.16 and 0.17.

I will merge ...
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
easyw-fc
Veteran
Posts: 3629
Joined: Thu Jul 09, 2015 9:34 am

Re: Support for assembly2 continuing

Post by easyw-fc »

r-frank wrote: I will merge ...
thanks ;)
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: Support for assembly2 continuing

Post by HoWil »

the insertion of Parts from/in 0.17 without hiding the internal bodies was long awaited 8-) and works fine.

Thx
paul18
Posts: 202
Joined: Sat Jul 19, 2014 7:44 pm
Location: France

Re: Support for assembly2 continuing

Post by paul18 »

Hi All

I've been far from FreeCAD for a while, that's why this post is quite late; I knew Hamish stopped Assembly2 module development and I'm happy to see that other people are continuing the project.

Because the method remains close to how I proceed why a profesionnal CAD modeler, I alway used Assembly2 module to perform my CAD's (yes I ever met issues, difficulties and so on, but It was/is a great work)

Thanks all for the contributions

Paul
(FreeCAD 0.16 on Ubuntu 16.04 LTS)

2 CAD's here after
Image

URL=http://www.hostingpics.net/viewer.php?i ... yprusa.png]Image[/URL]
Last edited by paul18 on Sun Nov 27, 2016 6:08 pm, edited 1 time in total.
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Support for assembly2 continuing

Post by r-frank »

Hello Paul.

Thanks for sharing the pictures.
Were you able to define ALL DOF's in your assemblies ?
Would you say that some combinations of constraints are a worse idea than others ?
How many parts are in your assemblies ?
Did you experience performance issues with such "big" assemblies ?

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
paul18
Posts: 202
Joined: Sat Jul 19, 2014 7:44 pm
Location: France

Re: Support for assembly2 continuing

Post by paul18 »

Hi r-franck

In the first CAD (see first picture), I have dozens of sub-parts, including screws, bolts, parts, motors, springs and so on; The trick I find is to create as many sub-assemblies as I can in order to enlight the solver.

In my case "circular edge constraint" is probably the one I'm using the most often

Nota bene : I can share the complete assembly if you want (to perform tests and so on - BUT please note I haven't work on it for months) - everything was made using Freecad 0.16; please ask by PM
Would you say that some combinations of constraints are a worse idea than others ?
not sure to well undestand; in my professional life I'm using Creo and Assembly2 module is using in a certain way the same philosophy (my opinion)

Paul
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Support for assembly2 continuing

Post by r-frank »

paul18 wrote:not sure to well undestand
Well, in a lot of cases you can use a circular edge constraint or a combination of axial constraint and plane constraint.
I was wondering if the "accuracy" of the matematics involved would lead to preferring one way or the other ...

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
paul18
Posts: 202
Joined: Sat Jul 19, 2014 7:44 pm
Location: France

Re: Support for assembly2 continuing

Post by paul18 »

in a lot of cases you can use a circular edge constraint or a combination of axial constraint and plane constraint.
I was wondering if the "accuracy" of the matematics involved would lead to preferring one way or the other ...
once and for all, "circular edge" has to be used first (avoids a lot of trouble) from my experience (and as Hamish suggested me)

Paul
Post Reply