Is there a way to get the expression from the placement like this pseudocode?
Code: Select all
obj = FreeCADGui.Selection.getSelection()
pos = obj[0].getExpression(Base, Placement.Position.x)
obj[1].setExpression(pos)
I did not find anything in the in the documentation or in the forum seach.
Setting the expression from the placement is no problem with setExpression().
Thanks for helping.
Greetings user1234
Edit: I have forgotten the version:
Code: Select all
OS: Debian GNU/Linux 8.7 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10893 (Git)
Build type: Debug
Branch: master
Hash: a75a98ef279e9e067abf5cef3a6de6f09fba2c94
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0