Test request

Discussion about the development of the Assembly workbench.
ickby
Posts: 2460
Joined: Wed Oct 05, 2011 7:36 am

Test request

Postby ickby » Thu Oct 24, 2013 7:16 pm

Hello guys,

I finished the new assembly constraint gui and hope it is now clearer what can be done with the individual constraints. I would realy love to hear your opinions. Furthermore I addressed all solver bugs that have been reported in the forum and the bug tracker, please test if they are really gone. Also any new bug reports are welcome, I'm pretty sure there are still many problems left :)

The code is as always in my personal repository, 'assembly' branch: https://github.com/ickby/FreeCAD_constraint.git

Thanks!
Stefan
dre99gsx
Posts: 29
Joined: Fri Oct 11, 2013 11:55 pm

Re: Test request

Postby dre99gsx » Tue Oct 29, 2013 2:54 pm

I can help. I'm attempting to assemble a fixture with multiple bodies anyway.

I'm used to following the instructions here: http://freecad-tutorial.blogspot.com/

What would I do differently to check out your version?

git clone git://git.code.sf.net/p/free-cad/code free-cad-code <- I would clone this version
ickby
Posts: 2460
Joined: Wed Oct 05, 2011 7:36 am

Re: Test request

Postby ickby » Tue Oct 29, 2013 3:15 pm

You do basicly the same, just with my repository:

git clone https://github.com/ickby/FreeCAD_constraint.git
git branch -r //should show a branch called assembly
git checkout assembly

and than build freecad as usally.
gdo35
Posts: 181
Joined: Wed Jan 25, 2012 7:25 pm

Re: Test request

Postby gdo35 » Tue Oct 29, 2013 3:31 pm

Hello ickby,

I'm cloning it and will test it.

Thanks for your work ! ;)

++
gdo
dre99gsx
Posts: 29
Joined: Fri Oct 11, 2013 11:55 pm

Re: Test request

Postby dre99gsx » Tue Oct 29, 2013 3:46 pm

Bummer, I get a 443 error possibly due to my corporate network limitations. I downloaded the .zip version instead. How do I get git to recognize this as a repository so that it can list all branches? Sorry for these newbie questions here.

*EDIT: I ran: git clone "unzipped directory" new folder.

Went to the new folder, only listed origin/HEAD and origin/MASTER as branches. Weird.
ickby
Posts: 2460
Joined: Wed Oct 05, 2011 7:36 am

Re: Test request

Postby ickby » Tue Oct 29, 2013 4:03 pm

If you download the zip files, you can't use git, as no repository is initialised. Also you download only one branch if you use the zip method. Most likely you downloaded my master branch. On the github site you can switch branches. Switch directly on github to the assembly branch. Then download the zip file which now contains the assembly branch. Then you just unzip and compile, completely without git.
dre99gsx
Posts: 29
Joined: Fri Oct 11, 2013 11:55 pm

Re: Test request

Postby dre99gsx » Tue Oct 29, 2013 5:06 pm

Got it. Thanks!
dre99gsx
Posts: 29
Joined: Fri Oct 11, 2013 11:55 pm

Re: Test request

Postby dre99gsx » Tue Oct 29, 2013 6:02 pm

It's working, and it's not. As soon as I try to apply a constraint, I get:

Traceback (most recent call last):
File "<string>", line 1, in <module>
<type 'exceptions.Exception'>: No document object found of type 'Assembly::ConstraintAlignment'
Stack Trace: Traceback (most recent call last):
File "<string>", line 1, in <module>

I noticed after compiling, the /Mod/Assembly was missing the .gui files and such. I copied over some files from the /Mod/Assembly folder from a Windows Released 0.14v version, but may have missed other files.

After compiling into a /Build directory, do I need to transfer over any other files, or should this build be self sufficient?
ickby
Posts: 2460
Joined: Wed Oct 05, 2011 7:36 am

Re: Test request

Postby ickby » Tue Oct 29, 2013 9:02 pm

now that is very strange. could you please post everything that is in the python console? "Assembly::ConstraintAlignment" is a class of the old implementation, I just searched the code and I'm sure I removed it completely.

You should not have to copy anything at all, after compilation the workbench has to work as is.
dre99gsx
Posts: 29
Joined: Fri Oct 11, 2013 11:55 pm

Re: Test request

Postby dre99gsx » Wed Oct 30, 2013 3:50 pm

Hmm. I got

43>AssemblyGui - 8 error(s), 60 warning(s)

Strange as I've been able to build other versions just fine. This may be why I was missing files in the Mod/Assembly folder...

Here is one of them:

C:\Program Files\Git\bin\FreeCAD_constraint-assembly\Build\src\Mod\Assembly\Gui\ui_TaskAssemblyConstraints.h(419) : error C2039: 'setPlaceholderText' : is not a member of 'QLineEdit'
43> c:\freecad\freecadlibs_8.1_x86_vc9\include\qt\qtgui\../../src/gui/widgets/qlineedit.h(64) : see declaration of 'QLineEdit'