Code: Select all
App.getDocument('Unnamed').getObject('Sketch004').Support = (App.getDocument('Unnamed').getObject('Hole'),['Face2',])
I solved this problem with other way some time ago while I was coding chamfer frame but I see it again so I thinking why it is string not object? it is more simple to use for FreeCAD developers as a string not as object? if so how they get face index? from face selection you get reference to the face object, so how they covert it to the string? and why it is given as string if the selection returns face object?