A2+ assembly, cylinders, constrain side by side offset by cylinder diameter

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
drmacro
Veteran
Posts: 9002
Joined: Sun Mar 02, 2014 4:35 pm

A2+ assembly, cylinders, constrain side by side offset by cylinder diameter

Post by drmacro »

I'm sure I'm just having a brain cramp sort of day... :(

If you have two cylinders (think two batteries) and you want to constrain them side by side on a given axis.

What constraint is used in A2+?
Snip macro screenshot-f873f2.png
Snip macro screenshot-f873f2.png (153.93 KiB) Viewed 675 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: A2+ assembly, cylinders, constrain side by side offset by cylinder diameter

Post by kbwbe »

drmacro wrote: Sat Mar 27, 2021 3:12 pm I'm sure I'm just having a brain cramp sort of day... :(
It isn't possible directly at moment. You need a helping sketch.

Possibilities:
1) Do a sketch with two circles directly in the assembly. Convert it to A2p. Constraint the cylinders by circularEdge constraints to the sketch
2) Have a mastersketch somewhere in another file. Import it and constraint the cylinders to that sketch.

I think i will add some missing constraints next 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
drmacro
Veteran
Posts: 9002
Joined: Sun Mar 02, 2014 4:35 pm

Re: A2+ assembly, cylinders, constrain side by side offset by cylinder diameter

Post by drmacro »

Ok, thanks for the instruction.

:mrgreen:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: A2+ assembly, cylinders, constrain side by side offset by cylinder diameter

Post by chrisb »

Moved to Assembly.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
drmacro
Veteran
Posts: 9002
Joined: Sun Mar 02, 2014 4:35 pm

Re: A2+ assembly, cylinders, constrain side by side offset by cylinder diameter

Post by drmacro »

chrisb wrote: Sat Mar 27, 2021 5:34 pm Moved to Assembly.
Thanks @chrisb.
I put it here because it seems to me having a merged "Assembly" forum confuses me when the Assembly workbenches are different...🤷
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply