I am working on this:
def makePathArray(baseobject,pathobject,count,xlate=None):
'''makePathArray(docobj,path,count,xlate): distribute count copies
of a document baseobject along a pathobject (docobject with shapetype=Wire/Edge).
Optionally translates each copy by FreeCAD.Vector xlate direction and
distance to adjust for difference in shape centre vs shape reference point. '''
I foresee a need to use only some edges from ‘pathobject’, but I don’t see a way to maintain
a reference to those edges (edge index/name is not reliable, yes?). “App::PropertyLinkList”
only works with document objects, not TopoShapes. Any suggestions?
Current basic working version of makePathArray is here: https://github.com/WandererFan/freecad-dev/tree/pArray
Comments more than welcome.
The next version will address orienting the baseobject to the path. Need to relearn some math first.
wf