[Design] Drawing a wire (inductor) on shapes

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

I was able to download the both files provideds in this topic ;-)
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by TheMarkster »

chrisb wrote: Wed Jan 19, 2022 10:31 am Such parameters could do the trick:
Here is the same formula using Parametric Curve FP macro.
Snip macro screenshot-a808d6.png
Snip macro screenshot-a808d6.png (80.33 KiB) Viewed 1322 times
And the JSON text version:

Code: Select all

{"formula": {"a": "6", "b": "1", "c": "20", "d": [], "X": "(a + b * cos(c*t))*cos(t)", "Y": "(a + b * cos(c*t))*sin(t)", "Z": "b*sin(c*t)", "t": "0.0", "t_max": "6.283185307179586", "interval": "0.02"}}
To import the JSON, in the File property browse to the above text saved into a file, such as json.txt. Then toggle Read File to True to read it into the set of formulas.
Attachments
coil.parametric_curve_fp.FCStd
(24.68 KiB) Downloaded 17 times
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

That looks great as well. And what in case if I would like to do the coils more tight:

Code: Select all

--|^v^v^|--
or do coil modules:

Code: Select all

--|^v-^-v-^-v|---|^-v-^-v-^-v|----|^-v-^-v-^-v|--

or

--|^v^v^|----|^v^v^|--

?
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by TheMarkster »

Experiment with different values for a, b, and c.
chrisb
Veteran
Posts: 53785
Joined: Tue Mar 17, 2015 9:14 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by chrisb »

Experiment with different values for a, b, and c.
And max(t) if you want segments only.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

Thanks all for the help. I appreciate it much :-)

I'll check it all whenever the addon download start to work for me. In the mean time, if there are any more ideas then I'm sure I'll check them when I get able to :-)
User avatar
onekk
Veteran
Posts: 6098
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: [Design] Drawing a wire (inductor) on shapes

Post by onekk »

mcgiwer wrote: Wed Jan 19, 2022 3:22 pm Thanks. I'll try it out whenever I get able to download the macros's and plugins... for now I get an strange error about beeing unable to connect to wiki to download it (reported as an bug)
Probably the bug is related to the way proxy are set, I've noted that in Preferences >> "Addon Manager" the Proxy is set to "custom", I've to set it to "no proxy" (as I've no proxy) to make it work with a stock AppImage on Linux.

Try to see if this is not also you problem.

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/
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

@onekk

Thanks for the suggestion, but I have the proxy disabled in FreeCAD from the begining, so that's not a issue reason
Post Reply