FreeCAD / FreeCAD-macros

A repository for FreeCAD macros
https://freecad.org/wiki/Macros_recipes
156 stars 139 forks source link

Support for link when ElementCount > 0 #156

Closed Jolbas closed 1 year ago

Jolbas commented 1 year ago

When a App::Link property ElementCount was set to 1 or higher, the macro couldn't follow and the macro reported the placement of the root object instead.

Jolbas commented 1 year ago

Thanks for test and review. I have a look.

galou commented 1 year ago

I went ahead and integrated your changes. @Jolbas can you double-check my changes? @Jolbas, I added you as author of the macro and commit author.

galou commented 1 year ago

@Jolbas I added a test file that helped me see what was wrong in the original macro. Maybe you can add a test with a link array.

Jolbas commented 1 year ago

@galou Have done som additional fixes in https://github.com/FreeCAD/FreeCAD-macros/pull/158