DynamicData icon indicating copy to clipboard operation
DynamicData copied to clipboard

Error message when trying to rename properties: "dd has no dynamic properties"

Open willdhorn opened this issue 2 years ago • 5 comments

I tried using the added renaming feature mentioned in #59, but every time I try running the command from the menu bar, the following error is thrown: dd has no dynamic properties. I also see the error if I try to set the tooltip.

This happens both for properties added with the toolbar button, and ones imported from spreadsheet aliases. Additionally, he active workbench does not seem to make a difference.

Possibly unrelated, but I'm also unable to remove properties at all. If that's a completely separate problem then I can file another issue; just wanted to mention on the off-chance that helps.

willdhorn avatar Jun 06 '22 14:06 willdhorn

Should this be changed to addDynamicProperty()?

https://github.com/mwganson/DynamicData/blob/5b52c52469118130535ed38e3fa5f55209c5f0d3/DynamicDataCmd.py#L498

willdhorn avatar Jun 06 '22 15:06 willdhorn

Provide the exact steps to reproduce the issue beginning from a new empty file. Also provide your complete FreeCAD about information from FreeCAD -> Help -> About FreeCAD -> Copy to clipboard.

mwganson avatar Jun 06 '22 16:06 mwganson

OS: macOS 10.16 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.24366 (Git) Build type: Release Python version: 3.9.7 Qt version: 5.12.9 Coin version: 4.0.0 OCC version: 7.5.3 Locale: C/Default (C)

willdhorn avatar Jun 10 '22 21:06 willdhorn

I didn't provide the repro steps simply because I had the problem regardless of how I was using it. I first encountered it in an existing project (that was created before I installed the module), so to see if that was the issue I created a new project, immediately created a dd object, added a property, and I and there was no change in behavior.

For sanity, I just opened FreeCAD and and followed the exact steps as above on a brand new project and I'm still seeing the error message.

willdhorn avatar Jun 10 '22 21:06 willdhorn

Thanks for the version information. Upon testing I have discovered this feature isn't compatible with 0.19. The document object function setGroupOfProperty() must have been added during the 0.20 development cycle. This function is used to determine whether the property is a dynamic property. The team is at work currently finalizing the release of 0.20 to replace 0.19 as the new stable release, which will be released soon. I don't have any definite timetable on its release date. A beta release is available for installation:

https://forum.freecadweb.org/viewtopic.php?f=9&t=68705

mwganson avatar Jun 10 '22 22:06 mwganson