Comments (14)
Yes! I will take a look
from freecad_fastenerswb.
I see, why don't you present them using Title Case, and when saving you do it in lowercase... or even better ignore the case when reading from the file so old versions will be ok, and the new versions of the file will be written in title case.
Once again - this is internal to freecad. That's why you can not translate property names.
The only way to fix it currently, Is create a conversion script that read old files, copy old parameters to new parameters and delete old parameters. Also, every place there is a use for the parametes (fastener WB files or any script that uses it) must be converted as well. I wish that there was a possibility to have a separate display name - this way it was possible to change only the display name and even have translations for it.
Perhaps Freecad will eventually support it.
from freecad_fastenerswb.
@leoheck , After some consideration I decided to change Fasteners to Title Case, Since doing it in freecad core will take sometime.
This work meant changing 72 files and add a built in migration script to migrate old Fastener files.
I guess this comprehensive change might cause some things to break, but I'll fix it once I get feedback from the community.
If you have old files with fasteners, please try them (by loading and doing some changes to the fasteners). Let me know if you encounter issues.
Thanks!
from freecad_fastenerswb.
I am checking this right now, this looks good and professional.
Did not have any issues with a couple of files.
I will close this issue, and if I have any I can open it again, or create a new one. Cool?
from freecad_fastenerswb.
the true/false are built in FreeCad properties. they are not controlled by fasteners workbench
from freecad_fastenerswb.
I see, but this list is a display that does not need to be the Python code itself. You can treat them to display to the user. You can also treat them to get from the user. Freecad is getting polished on the dev version and I thought the text on this extension could be improved too.
from freecad_fastenerswb.
Perhaps I was not clear. I can not change it even if I want to. This is an internal FreeCAD featute.
For example: sketch parameters are also lower case:
from freecad_fastenerswb.
Ah, I see. Then if it is like that everywhere, it is good as it is. Now property names could still be improved to match the other properties, right?
from freecad_fastenerswb.
Your example shows the Title case is used when there is more than one word.
from freecad_fastenerswb.
And... Sorry. Although this name is controlled by the workbench, this is also saved when saving the file. If I change everything to upper case, it will no longer be able to read old files...
from freecad_fastenerswb.
I see, why don't you present them using Title Case, and when saving you do it in lowercase... or even better ignore the case when reading from the file so old versions will be ok, and the new versions of the file will be written in title case.
from freecad_fastenerswb.
I think you can a simple regexp to filter out the case when reading from the file.
from freecad_fastenerswb.
Thanks for the clarification @shaise
from freecad_fastenerswb.
Oh, that's beautiful. Nice @shaise. Thanks for considering this suggestion. As soon as I install it I will test my old files to report in case of any problem.
from freecad_fastenerswb.
Related Issues (20)
- Update icons HOT 2
- UI: Calculator dropdown cut offd HOT 2
- DIN ISO 14581 HOT 3
- [feature request] : adding standard injection molds parts HOT 11
- SyntaxWarning: invalid escape sequence '\d' HOT 2
- Not very happy with the shape of βGN 506 T-Slot nuts to swivel inβ HOT 3
- T-Nut GN505 and GN505.4 shape-problem HOT 1
- Question: How to handle screws that are not available in all sizes in a range HOT 2
- Thread crest missing after boolean cut (Part_Cut) a ISO 4017 Hex head screw head with a cube (Part_Box), with Refine=true HOT 13
- AutoDiameter fails if hole is too large HOT 2
- Fastener size request HOT 4
- Failed to read package.xml HOT 2
- BOM custom sizes
- Undo crashes FreeCAD. HOT 2
- Unsupported operand type(s) for +: 'PySide2.QtWidgets.QDialogButtonBox.StandardButton' and 'PySide2.QtWidgets.QDialogButtonBox.StandardButton' HOT 2
- UI looks different everytime i switch into this workbench HOT 1
- 'ThreadedRodlength': Mapping key not found. HOT 2
- Error while inserting parts from FasteneresWP HOT 2
- Changine size of fastener results in error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad_fastenerswb.