Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
willdhorn opened this issue Jun 6, 2022 · 5 comments

Comments

@willdhorn
Copy link

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
Copy link
Author

Should this be changed to addDynamicProperty()?

p = obj.addProperty('App::Property'+item,'dd'+self.propertyName,str(self.groupName),self.tooltip)

@mwganson
Copy link
Owner

mwganson commented Jun 6, 2022

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.

@willdhorn
Copy link
Author

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
Copy link
Author

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.

@mwganson
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants