dprojects / getDimensions

FreeCAD macro to get chipboards dimensions to cut
MIT License
22 stars 4 forks source link

Quantity of array of array objects #9

Closed LeonB closed 2 years ago

LeonB commented 2 years ago

I have a divider I array'ed into 11 separate pieces. Then that array is array'ed for a second row:

Screenshot 2022-07-13 at 22 32 51

getDimensions reports 11 pieces:

Screenshot 2022-07-13 at 22 32 27

I would expect 22. I've attached my test file:

test-arrays.FCStd.zip

Not a very big issue! Just something I noticed.

dprojects commented 2 years ago

Yes, this is because the array on array is not supported, only the array on "furniture part" - at base element. The array wasn't made to call it at any object. Probably it can be fixed by call recursively scanObjects instead of furniture part. I will look into that someday if this can be improved.

dprojects commented 2 years ago

Support for array on array has been added. I use caller feature instead of scanObjects because it was little tricky with the base hidden object.