Assembly 2 workbench for FreeCAD v0.15

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
confrey
Posts: 15
Joined: Mon Feb 17, 2014 7:56 pm

Re: Assembly 2 workbench for FreeCAD v0.15

Postby confrey » Thu Feb 26, 2015 8:28 am

Thanks man for your reply, I think I understood what you mean to solve this problem, but I can't figure out how to reate a constraint with a plane and a single vertex; I'm very new in FreeCad, I'm learning it to model 3d printer pieces ( with succesfull, i have one already printed and assembled), but I need to come to a real full simulation of the project, to avoid error and to not waste time; so , I made an endball in two separate parts, an outer body, and an inner sphere,with a cylindir hole; to do what you mean, I added a cone in the rod hole, I used - of course - freecad in the Part Workbench, so the cone has a cylindric side, and an edge terminating - I think - with a vertex; and here I stop because my knowledge is not enough, I ahve used your planar and axial constraints well, but I don't know how to select a single vertex to constrain it with a plane; I hope you might help me

best regards

confrey (you can find me in G+ as dario marrini)

p.s. here you can access the files we are speaking about : https://drive.google.com/file/d/0B83dBS ... sp=sharing
https://drive.google.com/file/d/0B83dBS ... sp=sharing
https://drive.google.com/file/d/0B83dBS ... sp=sharing
https://drive.google.com/file/d/0B83dBS ... sp=sharing
User avatar
saso
Posts: 1333
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Assembly 2 workbench for FreeCAD v0.15

Postby saso » Mon Mar 16, 2015 3:50 pm

Some nice ideas for the assembly from the latest Onshape update, the "gear relation" and a "rack-and-pinion relation"... http://www.onshape.com/cad-blog/whats-n ... rsion-1.27 (last video) and the referenced page from the video https://woodgears.ca/gear/planetary.html :)
Last edited by saso on Fri Mar 20, 2015 4:24 pm, edited 3 times in total.
User avatar
saso
Posts: 1333
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Assembly 2 workbench for FreeCAD v0.15

Postby saso » Fri Mar 20, 2015 4:23 pm

When I have installed both the "Assembly 2" and "Drawing dimensioning" I get the following error and Assembly 2 WB will not open... Is this a known issue or am I doing something wrong?

('invalid syntax', ('C:\\Users\\saso\\Desktop\\FreeCAD_0.15.4664_x64_dev_bin\\Mod\\FreeCAD_drawing_dimensioning-master\\lineSearches.py', 1, 1, '../FreeCAD_assembly2/lineSearches.py\n'))

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4664 (Git)
Branch: master
Hash: 4e41e535ff01d39b650add123f42629e1a8d6b05
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1

Edit: Ok, it's a symbolic link and the solutions is to simply copy the file lineSearches.py from Assembly 2 WB to Drawing dimensioning WB... Would be good if it gets fixed also on GitHub.
User avatar
sgrogan
Posts: 5428
Joined: Wed Oct 22, 2014 5:02 pm

Re: Assembly 2 workbench for FreeCAD v0.15

Postby sgrogan » Fri Mar 20, 2015 4:46 pm

I solved it by renaming FreeCAD-drawing-dimensioning to drawing dimensioning
and renaming FreeCAD-assembly2 to assembly2
User avatar
yorik
Site Admin
Posts: 11567
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Assembly 2 workbench for FreeCAD v0.15

Postby yorik » Sat Mar 21, 2015 4:14 pm

Indeed this must be because python refuses to import module names with "-" inside...
confrey
Posts: 15
Joined: Mon Feb 17, 2014 7:56 pm

Re: Assembly 2 workbench for FreeCAD v0.15

Postby confrey » Thu Mar 26, 2015 6:35 pm

Hi everybody,
after the insertion of spheric constraint, I tried to create a assembly test (without spheric at athe moment); I put all files here :

https://drive.google.com/folderview?id= ... sp=sharing

I made a rod, a rod support and a 2 rod cursor; I put 2 rods, two rod support and a rod cursor in the guida lineare.fcstd, aligning al by planar and axial constraints; while trying to test the animation (expecting to see the cursor sliding uo and down) nothing happen and I get some rederror messages in status bar, so I run the app form terminal, redirecting the output to freecad_output.txt (too much long to post here, it's avalaible in the same shared google drive directory); I hope someone may help me about; besides I need to learn how to set some limits to cursor movements; later, I'll want to implement the spheric constraints too, setting, if it is possible, angular movements' limits too

regards
gsn
Posts: 6
Joined: Thu Apr 16, 2015 9:12 pm

Re: Assembly 2 workbench for FreeCAD v0.15

Postby gsn » Mon Apr 27, 2015 7:31 pm

Hi all,

Great job this Assembly 2 workbench!
I was playing around with it and I got an issue : I created 2 cubes to put together (see screenshot below) using 3 planar constraints. Location of Cube 1 was then modified and both cubes updated in the Assembly2 workbench using 'Update parts imported into the assembly'. The constraint solver then failed to satisfy the constraints. I was expected the second cube automatically moved.
Is it a bug or did I miss something ?

Thanks for your help
Attachments
Capture-dcran-2015-04-27--21.07.46-ConvertImage.jpg
Capture-dcran-2015-04-27--21.07.46-ConvertImage.jpg (105.82 KiB) Viewed 2212 times
Capture-dcran-2015-04-27--21.06.16-ConvertImage.jpg
Capture-dcran-2015-04-27--21.06.16-ConvertImage.jpg (108.09 KiB) Viewed 2212 times
hamish
Posts: 72
Joined: Wed Nov 12, 2014 7:08 am

Re: Assembly 2 workbench for FreeCAD v0.15

Postby hamish » Wed Apr 29, 2015 10:13 am

Hi gsn,

Your difficulties result from a bug in Assembly 2.
See https://github.com/hamish2014/FreeCAD_a ... 2/issues/2 for details.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Assembly 2 workbench for FreeCAD v0.15

Postby NormandC » Thu Apr 30, 2015 2:59 am

Hello hamish,

Just FYI, forum member CkwA and I are currently working on a new PPA repository that provides external python modules as daily built packages for Ubuntu. The files are copied in /urs/lib/freecad/Mod just like FreeCAD's native modules.

FreeCAD_assembly2 is already available, and got its first automatic update today. We're working on Drawing Dimensioning next. :)

https://launchpad.net/~freecad-communit ... ubuntu/ppa

The forum topic where the project is discussed: [Proposal] debian/ubuntu packages of community modules

To anyone using FreeCAD on Ubuntu: without a doubt this is the easiest way to install hamish's Assembly2 module, and it updates itself!

Simply:
  1. Add ppa:freecad-community/ppa to your software sources (What are PPAs and how do I use them?)
  2. Update your software sources the regular way (automatic with the Ubuntu software center)
  3. Install the [url=apt://freecad-extras-assembly2]freecad-extras-assembly2[/url] (apt link) package.
And be on the lookout for more good stuff. :)
hamish
Posts: 72
Joined: Wed Nov 12, 2014 7:08 am

Re: Assembly 2 workbench for FreeCAD v0.15

Postby hamish » Thu Apr 30, 2015 6:09 am

Thank you NormandC and CkwA, I am honoured :D
I will add your PPA instructions to Assembly 2's README.md