Are you looking for help regarding FreeCAD python scripting?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Outsourced
Posts: 81
Joined: Wed Feb 03, 2021 8:07 am

Re: Are you looking for help regarding FreeCAD python scripting?

Post by Outsourced »

Hello FC
TBH I'm not much on language including Python, I have learnt what I have - because Mechanical drafting is under my skin & my next few hobbyist projects require the ability to drive a gear on various path shapes IE Curved Rack & Pinion.

The files I have tried to upload here state file too large: So I have included links to Files on Drive.
Example File & 3 macros. 2 of which work & the 3rd is an attempt to combine the code & I have tried everything logical to get the code correct, but to no avail.

File
https://drive.google.com/file/d/1Iy8pDl ... share_link

Macro Follow Path Author The Markster
https://drive.google.com/file/d/1fOZQF5 ... share_link

Macro Rotate Mod from Mango Jelly Tutorial
https://drive.google.com/file/d/1r3O5BF ... share_link

Macro Mash
https://drive.google.com/file/d/1RA8lvB ... share_link

There maybe #Commented out for variation(s) purposes on FollowPathWireRotate.FCMacro

Thx to past present & future Assistance
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Are you looking for help regarding FreeCAD python scripting?

Post by onekk »

Outsourced wrote: Tue Feb 21, 2023 9:33 am ...
This thread is usually the place for posting "help matters" and not for requesting help, as your post seems to be.

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/
Outsourced
Posts: 81
Joined: Wed Feb 03, 2021 8:07 am

Re: Are you looking for help regarding FreeCAD python scripting?

Post by Outsourced »

onekk wrote: Tue Feb 21, 2023 10:03 am
Outsourced wrote: Tue Feb 21, 2023 9:33 am ...
This thread is usually the place for posting "help matters" and not for requesting help, as your post seems to be.

Regards

Carlo D.
6/7 Nights of the week I am 'helping' new users on the Facebook page, what thread is that supposed to be on?
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Are you looking for help regarding FreeCAD python scripting?

Post by onekk »

Outsourced wrote: Wed Feb 22, 2023 6:56 am ....
Usually this thread is not much populated, and from what it seems it is a sort of first approach as first post is listing some resources to be "getting started".

More complex things should IMHO go "Tutorials and Video" or better end in a Wiki Page as it is getting complicated for new user to find here "stable and updated" informations a part of some sticky and blocked threads managed by moderators.

But I could be wrong 😃.

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/
jonbitzen
Posts: 16
Joined: Fri Nov 13, 2020 3:59 am

Re: Are you looking for help regarding FreeCAD python scripting?

Post by jonbitzen »

Is there an official home for instructions to get robust content assist support for Python scripting in vscode? I've recently sorted that one pretty well - its really tightened up my iteration loop for a model airplane design workbench I'm working on.

Mostly wondering whether it was something everyone else already knew how to do but me, or if the steps were one of those things generally considered so plain that its not worth a mention

I've seen bits and pieces here and there in Google searches that pointed to forum posts, but I haven't seen anything all in one place. If its something that'd be widely useful I'd be happy to share if there's a place for it.

jonbitzen
edwilliams16
Veteran
Posts: 3109
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Are you looking for help regarding FreeCAD python scripting?

Post by edwilliams16 »

jonbitzen wrote: Sun Feb 25, 2024 9:37 pm Is there an official home for instructions to get robust content assist support for Python scripting in vscode? I've recently sorted that one pretty well - its really tightened up my iteration loop for a model airplane design workbench I'm working on.
You could very likely usefully add to the wiki https://wiki.freecad.org/Debugging#Visu ... _(VS_Code)
Post Reply