future in assembly? a2+, assembly3, what else?

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: future in assembly? a2+, assembly3, what else?

Post by kbwbe »

dcapeletti wrote: Mon Oct 22, 2018 11:44 pm Hi, I have tried assembly2 and A2Plus. Both have defects, it is difficult to decide for one or the other. With assembly 2 I have this problem https://forum.freecadweb.org/viewtopic.php?f=3&t=31748 and with A2Plus, it is complicated to link to source files when the assembly file is opened on another computer. I have to do it for each of the source files.
Hi,
there are two options if you use assemblies with A2plus on different computers

- Preferences page, option "use relative pathes"
Choose this for a new project, put all your parts and the assembly below one folder. If you copy the folder to another computer, you can work on the assembly there.

- Preferences page, option "project folder" + path
You can work on assemblies which are in the project folder of machine A, copy the file to project folder of machine B and work there.

If you are using the option "absolute pathes", the assembly is not movable to another machine. (But in menu there is a tool to convert absolute to relative pathes)
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
polemidis
Posts: 36
Joined: Thu Feb 09, 2017 4:58 pm

Re: future in assembly? a2+, assembly3, what else?

Post by polemidis »

Thank you all. I started migrating to A2+ It has lots of weird issues, but I love 3 things specifically!
a) Imported parts do not need to have only one visible part, (with the downside that the imported part shows the hidden parts too)
b) Relative parts! Yes!, Since all my files are on Git it saves a lot of trouble
c)It solves things that the assembly2 couldn't!

Thank you all for your inputs!
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: future in assembly? a2+, assembly3, what else?

Post by dcapeletti »

triplus wrote: Tue Oct 23, 2018 12:00 am Looking at the changelog this looks related:
support for relative/absolute pathes of imported parts
When was the last time you have tried updating A2plus and creating a new assembly? To test if the issue still persists.
Hello, I tried it yesterday and I installed it through the addon manager.

Basically I make an assembly file in Windows and then I take that file to another PC with Ubuntu and I have to update the link of each source file. There should be a tool that looks for a directory of source files and updates them automatically by name.

Thanks
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: future in assembly? a2+, assembly3, what else?

Post by dcapeletti »

kbwbe wrote: Tue Oct 23, 2018 6:55 am
dcapeletti wrote: Mon Oct 22, 2018 11:44 pm Hi, I have tried assembly2 and A2Plus. Both have defects, it is difficult to decide for one or the other. With assembly 2 I have this problem https://forum.freecadweb.org/viewtopic.php?f=3&t=31748 and with A2Plus, it is complicated to link to source files when the assembly file is opened on another computer. I have to do it for each of the source files.
Hi,
there are two options if you use assemblies with A2plus on different computers

- Preferences page, option "use relative pathes"
Choose this for a new project, put all your parts and the assembly below one folder. If you copy the folder to another computer, you can work on the assembly there.

- Preferences page, option "project folder" + path
You can work on assemblies which are in the project folder of machine A, copy the file to project folder of machine B and work there.

If you are using the option "absolute pathes", the assembly is not movable to another machine. (But in menu there is a tool to convert absolute to relative pathes)
Hi, thanks for the information. Maybe I was doing things wrong.
The source file folder should be placed on a later level of the assembly file if I misunderstand. Then when I copy the project to another computer, it will detect the source files in that directory.

But I've seen that if you don't find them, no alert appears.
Thanks
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: future in assembly? a2+, assembly3, what else?

Post by kbwbe »

dcapeletti wrote: Tue Oct 23, 2018 12:10 pm Basically I make an assembly file in Windows and then I take that file to another PC with Ubuntu and I have to update the link of each source file. There should be a tool that looks for a directory of source files and updates them automatically by name.
OK ! That's the problem and it is clear now. I will think about best way to implement. Anyway it would be best if you can organize your parts within a relative path to the assembly. Then it would be enough to change "/"'s to "\" by means of a new tool, as A2puls detects the path of the assembly automatically during opening.

P.S: Our posts overlapped by time !
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: future in assembly? a2+, assembly3, what else?

Post by dcapeletti »

Thank you for helping me.
I have this problem to solve, would you help me?
https://forum.freecadweb.org/viewtopic.php?f=3&t=31767

Thanks
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: future in assembly? a2+, assembly3, what else?

Post by dcapeletti »

A2Plus already supports BOM parts list.
prcek
Posts: 3
Joined: Mon Feb 13, 2017 7:47 am

Re: future in assembly? a2+, assembly3, what else?

Post by prcek »

kbwbe wrote: Tue Oct 23, 2018 12:39 pm
Basically I make an assembly file in Windows and then I take that file to another PC with Ubuntu and I have to update the link of each source file. There should be a tool that looks for a directory of source files and updates them automatically by name.
OK ! That's the problem and it is clear now. I will think about best way to implement. Anyway it would be best if you can organize your parts within a relative path to the assembly. Then it would be enough to change "/"'s to "\" by means of a new tool, as A2puls detects the path of the assembly automatically during opening.
Just passing by, couldn't be possible solution storing relative paths in exploded format (subdir by subdir) and use python os.path module to join it every time it is needed - so it would use correct dir separator on both linux and windows?
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: future in assembly? a2+, assembly3, what else?

Post by kbwbe »

prcek wrote: Fri Nov 30, 2018 6:51 pm Just passing by, couldn't be possible solution storing relative paths in exploded format (subdir by subdir) and use python os.path module to join it every time it is needed - so it would use correct dir separator on both linux and windows?
Hi @prcek,
welcome to the forum !
Things seem to work for @dcapeletti at moment. Also I do not have complains regarding this of other users. Therefore i only will get active if the problem remains. Unfortunately i only can test on Linux. If someone has the possibility to test an assembly (using relative pathes) on Windows and Linux, this would be fine.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
Post Reply