Search found 18 matches
- Tue Feb 11, 2020 10:38 pm
- Forum: Wiki
- Topic: python API Power users hub
- Replies: 14
- Views: 4226
Re: python API Power users hub
after cllicking the mouse twice. Can anyone tell me why this isn't working? Back in FreeCAD version 0.17 I believe the Part.Line command was changed to Part.LineSegment, therefor change line 17 in exercise.py from: l = Part.Line(self.stack[0],self.stack[1]) to: l = Part.LineSegment(self.stack[0],se...
- Tue Feb 11, 2020 9:36 pm
- Forum: Wiki
- Topic: python API Power users hub
- Replies: 14
- Views: 4226
Re: python API Power users hub
It seems like lately everything is outdated on the power users hub. I'm trying to learn to write scripts, and I recently tried the example line drawing function found here: https://www.freecadweb.org/wiki/Line_drawing_function. Followed all the directions as best I could (exactly as laid out), but w...
- Sat Feb 08, 2020 2:55 pm
- Forum: Python scripting and macros
- Topic: Using Visual Studio as Python editor
- Replies: 24
- Views: 7723
Re: Using Visual Studio as Python editor
I found a simple solution to the ssl problem that seems to have worked. I merely downloaded and installed Win64 OpenSSL from https://slproweb.com/products/Win32OpenSSL.html, and now I have been able to install the extra packages!
- Sat Feb 08, 2020 2:12 pm
- Forum: Python scripting and macros
- Topic: Using Visual Studio as Python editor
- Replies: 24
- Views: 7723
Re: Using Visual Studio as Python editor
Looks interesting! I'm going to try it out. Do you know offhand if the .env file setup works basically the same on Windows as shown on that page for linux (of course using slightly different path syntax)? I'm a Windows user with this functionality, my .env file in the macro folder looks like: FREEC...
- Fri Feb 07, 2020 3:56 pm
- Forum: Python scripting and macros
- Topic: Using Visual Studio as Python editor
- Replies: 24
- Views: 7723
Re: Using Visual Studio as Python editor
Looks interesting! I'm going to try it out. Do you know offhand if the .env file setup works basically the same on Windows as shown on that page for linux (of course using slightly different path syntax)?Kunda1 wrote: ↑Fri Feb 07, 2020 12:22 pm Checkout: FreeCAD External Editor With Code – OSS: https://pythoncvc.net/?p=869
- Fri Feb 07, 2020 12:09 pm
- Forum: Python scripting and macros
- Topic: Using Visual Studio as Python editor
- Replies: 24
- Views: 7723
Re: Using Visual Studio as Python editor
and why not ? all my macros (see my signature Gist) are made only with the FreeCAD editor https://www.freecadweb.org/wiki/images/thumb/1/1c/Std_DlgMacroExecuteDirect.png/32px-Std_DlgMacroExecuteDirect.png and the GUI with QtCreator the only problem there is no search function in the editor My main ...
- Fri Feb 07, 2020 12:02 am
- Forum: Python scripting and macros
- Topic: Using Visual Studio as Python editor
- Replies: 24
- Views: 7723
Re: Using Visual Studio as Python editor
I did a print(os.environ) from inside Freecad, and the PATH variable looks to have everything I would need to somehow add to my custom python env. for Freecad. Is there a script somewhere inside freecad that sets that all up? 'PATH': 'E:\\FreeCAD_0.19\\bin\\lib\\site-packages\\PySide2;E:\\FreeCAD_0....
- Thu Feb 06, 2020 11:46 pm
- Forum: Python scripting and macros
- Topic: Using Visual Studio as Python editor
- Replies: 24
- Views: 7723
Re: Using Visual Studio as Python editor
hi for macro Python use the editor http://www.freecadweb.org/wiki/images/thumb/1/1c/Std_DlgMacroExecuteDirect.png/32px-Std_DlgMacroExecuteDirect.png mario What? That's like telling me to use vi as my text editor instead of Notepad++! Seriously though, I have the same idea using visual studio 2017 f...
- Wed Feb 05, 2020 12:01 pm
- Forum: Developers corner
- Topic: Python version from git pull versus prebuilt
- Replies: 8
- Views: 1448
Re: Python version from git pull versus prebuilt
Since I'm just getting my feet wet with programming for Freecad, at this time I have started my first item as a macro, using the latest conda builds with python 3.7.3. It should keep me busy for awhile. My only programming for the last few years has been writing macros for autodesk inventor using vi...
- Wed Feb 05, 2020 2:41 am
- Forum: Developers corner
- Topic: Python version from git pull versus prebuilt
- Replies: 8
- Views: 1448
Re: Python version from git pull versus prebuilt
Yes, basically to a tee. I didn't see where it mentioned any configuration options for the python version to use, so I figured it was kind of hard coded into the source. Not sure how the conda build version I downloaded was built? If you use the libpack, the python comes with the pack. And the pack...