Closed StSav012 closed 1 month ago
@StSav012 would you like to submit a PR ?
Unfortunately, I have no idea how to resolve most of the errors. I've spent about an hour, but I couldn't make it work. The error I've given up at was just a “syntax error”, at a seemingly valid code:
if addCustomLen:
obj.addProperty("App::PropertyLength", "LengthCustom", "Parameters", translate(
"FastenerCmd", "Custom length")).LengthCustom = self.inswap(slens[0])
Maybe, it's a result of my erroneous corrections or a FreeCAD bug after all. IDK. I don't get the logic behind most of the code.
And yeah, the code style could be better, without all the builtins
overrides, with docstrings or typing annotations, at least. I've shot my leg trying to make sense of the objects here and there.
Could you test on my PR? Was the file created with 0.19 version (a long time ago)?
Thank you so much! There no errors appear now.
The file attached (remove the “.zip” suffix once you get the file, do not unpack) produces countless errors in the console. Some of them look like typos, some are harder to resolve. Anyway, the model misses all the fasteners.
First, this appears:
There should be
baseObject
instead ofBaseObject
.Then it comes
And so on.
plate.FCStd (remove the “.zip” suffix, do not unpack)