[solved] run transform at Link from python?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
dprojects
Posts: 722
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

[solved] run transform at Link from python?

Post by dprojects »

Is there any way to run transform at Link object from python? For LinkGroup object there is .Document.setEdit but there is no such thing for Link.

Image
Last edited by dprojects on Tue Jul 26, 2022 6:02 pm, edited 1 time in total.

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
User avatar
mfro
Posts: 666
Joined: Sat Sep 23, 2017 8:15 am

Re: run transform at Link from python?

Post by mfro »

Std Alignment is probably closest to what you want to do, if I understand correctly.

This is pretty old and not very flexible, however (could well use a refresher, I guess).
Cheers,
Markus
User avatar
dprojects
Posts: 722
Joined: Mon Mar 06, 2017 6:02 pm
Location: Poland
Contact:

Re: run transform at Link from python?

Post by dprojects »

mfro wrote: Tue Jul 26, 2022 2:29 pm Std Alignment is probably closest to what you want to do, if I understand correctly.

This is pretty old and not very flexible, however (could well use a refresher, I guess).
No, I was looking in the wrong place. The setEdit is at ViewObject but I was looking at the object's root. There is also resetEdit that turn off the edit mode. This works as it should at Link as well, Sorry.

Image

Thanks
Darek
github.com/dprojects

workbench for woodworking is available at: github.com/dprojects/Woodworking
Post Reply