Right, it seems that the whole range of possible RA values is covered by this macro. Then maybe just the RZ parameter could be added ?
[Feature Request] Surface finish symbols [SOLVED]
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [Feature Request] Surface finish symbols
Re: [Feature Request] Surface finish symbols
Attached version 3 of the macro. This version has added blank fields at the roughness showing boxes. To create an ISO symbol using RZ values:
- start the macro
- select the ASME radiobutton
- leave the two roughness boxes blank
- enter suggested RZ value in the sampling length field
Re: [Feature Request] Surface finish symbols
I have tried to use the macro described in this thread (all 3 versions, but keep getting the error in the Report View...
12:42:41 Traceback (most recent call last):
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 177, in <module>
panel=DefinePanel()
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 85, in __init__
self.createButtonIcons()
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 97, in createButtonIcons
self.iconFiles.append(self.createFile('IconFile01',surfaceSymbols.baseSymbol(0)))
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 90, in createFile
f = open(fileName,'w')
<class 'PermissionError'>: [Errno 13] Permission denied: 'IconFile01'
This occurred in version 0.18, 0.19, and 0.20. I removed all copies of FreeCAD, reinstalled 0.20 only, and still getting the same thing. I'd really like to use this macro and would appreciate any feedback. Thanks in advance.
Kevin Snyder
The usual info...
12:42:41 Traceback (most recent call last):
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 177, in <module>
panel=DefinePanel()
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 85, in __init__
self.createButtonIcons()
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 97, in createButtonIcons
self.iconFiles.append(self.createFile('IconFile01',surfaceSymbols.baseSymbol(0)))
File "C:/Users/KevinW10/AppData/Roaming/FreeCAD/Macro/SurfaceSymbols.FCMacro", line 90, in createFile
f = open(fileName,'w')
<class 'PermissionError'>: [Errno 13] Permission denied: 'IconFile01'
This occurred in version 0.18, 0.19, and 0.20. I removed all copies of FreeCAD, reinstalled 0.20 only, and still getting the same thing. I'd really like to use this macro and would appreciate any feedback. Thanks in advance.
Kevin Snyder
The usual info...
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods:
* A2plus 0.4.56a
* fasteners 0.3.45
* fcgear 1.0.0
* sheetmetal 0.2.49
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: [Feature Request] Surface finish symbols
The macro is trying to write to the current working directory. Not sure off hand what that is in a Win environment, but unless you've done a local build, you probably don't have write access to the CWD.
If you change the createFile method like this, it seems to work.
Code: Select all
def createFile(self,fileName,symbol):
'''create a svg file including the surface symbol'''
filePath = os.path.join(App.getUserAppDataDir(), fileName)
f = open(filePath,'w')
f.write(symbol)
f.close()
return filePath
Re: [Feature Request] Surface finish symbols
That worked! (so far, the expected window came up and no error messages).
Today, I learned. Thank you.
Today, I learned. Thank you.
Re: [Feature Request] Surface finish symbols
Thank you for another very useful tool.
Do you plan to merge this into the workbench at any point in the future development?
Do you plan to merge this into the workbench at any point in the future development?
Re: [Feature Request] Surface finish symbols
Has there been any consensus on standards etc... ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs