Linked Objects to an Array

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Linked Objects to an Array

Post by keithsloan52 »

I have a macro that is processing a series of linked Objects and would like to replace with an Array.
Printing out the objects and their placements I have

Code: Select all

20:16:47  Process Volume VeloRFBoxlvRFFrBx2
20:16:47  Array Num 4
20:16:47  VeloRFBoxlvRFFrBx2 Placement [Pos=(-23,0,772.38), Yaw-Pitch-Roll=(0,-90,360)]
20:16:47  VeloRFBoxlvRFFrBx2_001 Placement [Pos=(-23,0,-319.9), Yaw-Pitch-Roll=(0,-90,360)]
20:16:47  VeloRFBoxlvRFFrBx2_002 Placement [Pos=(23,-2.8e-15,772.38), Yaw-Pitch-Roll=(0,-90,180)]
20:16:47  VeloRFBoxlvRFFrBx2_003 Placement [Pos=(23,-2.8e-15,-319.9), Yaw-Pitch-Roll=(0,-90,180)]

Would this be a circular array and if so what would it parameters be?
Or is it a square array
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Linked Objects to an Array

Post by Roy_043 »

Instead of circular you probably mean polar array. The rotation of the objects suggests a symmetry that cannot be achieved with either array types. Creating an array from a link by changing its "Element Count" property is perhaps an option? You can then basically control the placement of each individual element.
keithsloan52
Veteran
Posts: 2756
Joined: Mon Feb 27, 2012 5:31 pm

Re: Linked Objects to an Array

Post by keithsloan52 »

On second thoughts maybe it is not polar, would I be correct that this could be replaced by an orthogonal array 2 x 1 x 2
with x interval of 46 and z interval of 1082.28 initial Placement -23, 0, 772.38

How does Roll changing from 360 to 180 effect things?
Post Reply