Open Attachment editor

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Grawp
Posts: 45
Joined: Sat Mar 03, 2018 9:34 am

Open Attachment editor

Post by Grawp »

Hello,

I'd like to ask how to open Attachment editor dialog via Python. I've gone through the code snippets and examples on the wiki but haven't found anything similar to it.
Only thing I've come up with is

Code: Select all

Gui.runCommand('Part_EditAttachment')
but it gives me a different dialog which does not have f(x) buttons in text inputs and expressions can't be inserted or edited via = key. Also values shown (calculated) from already inserted expressions are not grey. See following image
pic3.png
pic3.png (41.27 KiB) Viewed 441 times
.
Whereas clicking on
pic1.png
pic1.png (36.14 KiB) Viewed 441 times
gives me
pic2.png
pic2.png (39.77 KiB) Viewed 441 times
which is the dialog I'm hoping to open from Python. Mostly to be able to assign a keyboard shortcut to it.

Any pointers how to achieve that would be appreciated.
Post Reply