DynamicData icon indicating copy to clipboard operation
DynamicData copied to clipboard

Renaming properties

Open erwanyves opened this issue 3 years ago • 3 comments
trafficstars

Hello, I just discover this module, which is very handy. Just one question: Is there a way to rename properties? eg: when importing a named parameter Radius from sketch001 I have a group named "imported from: sketch001" and a property "dd Sketch001 Radius". It will also works in case of typo when entering parameter.

erwanyves avatar Mar 14 '22 16:03 erwanyves

There is no mechanism built into FreeCAD for handling the renaming of dynamic properties, so the only way to do it is to delete the property and create a new one with the new name. This would be fairly trivial to do if the property has no dependencies. Just delete the old property, create a new one of the same type with the new name, and assign the old value to the new property. With dependencies you would need to reset all those objects to point to the new property, too. I never wanted to go down that rabbit hole. But I will look more into this possibility when I get some more time.

mwganson avatar Mar 14 '22 17:03 mwganson

I have implemented this feature in 2.41. Please update and test it. It is only available from the menu within in the workbench. I don't want too many icons on the toolbar since it often travels with users to other workbenches.

mwganson avatar Mar 15 '22 02:03 mwganson

I have implemented this feature in 2.41. Please update and test it. It is only available from the menu within in the workbench. I don't want too many icons on the toolbar since it often travels with users to other workbenches.

It would be handy to have the Copy, Rename, Set tooltip and Move to group commands available in data panel context menu. I believe most user would expect them to be there, and at least I didn't thought looking in WB menu !

silopolis avatar Oct 24 '22 17:10 silopolis