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:
* Help 1.0.3
Error is:
If you need whole script I will upload, meanwhile I tried a much smaller script:File "C:/Users/Owner/AppData/Roaming/FreeCAD/Macro/Rect_offset_get_angle.FCMacro", line 67, in <module>
FD=DE/sin(AF1)
<class 'NameError'>: name 'sin' is not defined
Code: Select all
import FreeCAD,FreeCADGui
import Draft
import math
from PySide import QtGui
A=sin(.5)
print('Angle of fitting: ', A)
Any help? I am using sin like here: https://wiki.freecadweb.org/ExpressionsFile "C:/Users/Owner/AppData/Roaming/FreeCAD/Macro/sin_test.FCMacro", line 6, in <module>
A=sin(.5)
<class 'NameError'>: name 'sin' is not defined