load , export and Convert

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
janni0101
Posts: 5
Joined: Wed Apr 21, 2021 9:32 am

load , export and Convert

Post by janni0101 »

Hello,

I want to convert my project DJI Agricultral Drones files to different file formats via a script.
Is this possible? I can't find any documentation on that.
when I run FreeCADCmd.exe with "test.py" as parameter "hello world" is printed to console.
But when I run FreeCAD.exe with "test.py" as a parameter nothing is shown in the python console of FreeCAD?
thanks
User avatar
onekk
Veteran
Posts: 6199
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: load , export and Convert

Post by onekk »

Already answered in some other place.

Someone has told you that the "results" are not put in the "python Console"

The print statements and the error goes to the "Report Window", after you have set some things as in:

https://wiki.freecadweb.org/Python_scripting_tutorial


Note also the

Edit → Preferences → General → Macro to Show script commands in python console.

Under "Exploring FreeCAD"

They are some basilar setting to have a decent feedback when scripting with FreeCAD.

If you use an AppImage, the message that go in "Report View" are usually echoed if you launch via a terminal the AppImage.

Hope it helps

Regards

Carlo D.
Last edited by onekk on Thu Apr 22, 2021 9:37 am, edited 1 time in total.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
janni0101
Posts: 5
Joined: Wed Apr 21, 2021 9:32 am

Re: load , export and Convert

Post by janni0101 »

janni0101 wrote: Thu Apr 22, 2021 9:13 am Hello,

I want to convert my project DJI Agricultral Drones files to different file formats via a script.
Is this possible? I can't find any documentation on that.
when I run FreeCADCmd.exe with "test.py" as parameter "hello world" is printed to console.
But when I run FreeCAD.exe with "test.py" as a parameter nothing is shown in the python console of FreeCAD?
thanks
ook thanks, I will check it
User avatar
onekk
Veteran
Posts: 6199
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: load , export and Convert

Post by onekk »

I have edited my post to be more clear.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
janni0101
Posts: 5
Joined: Wed Apr 21, 2021 9:32 am

Re: load , export and Convert

Post by janni0101 »

onekk wrote: Thu Apr 22, 2021 9:34 am Already answered in some other place.

Someone has told you that the "results" are not put in the "python Console"

The print statements and the error goes to the "Report Window", after you have set some things as in:

https://wiki.freecadweb.org/Python_scripting_tutorial


Note also the

Edit → Preferences → General → Macro to Show script commands in python console.

Under "Exploring FreeCAD"

They are some basilar setting to have a decent feedback when scripting with FreeCAD.

If you use an AppImage, the message that go in "Report View" are usually echoed if you launch via a terminal the AppImage.

Hope it helps

Regards

Carlo D.
ook thanks
Post Reply