if you have a command line window open navigate to the folder where helix.py is located (btw, a helix is a 3d spiral )
Once you got the folder right, try to start the python script with this:
“python helix.py”
Do you see a couple of lines scroll by?
If yes, try this:
“python helix.py > helix.txt”
There then should be a helix.txt sitting next to helix.py in that same folder.
WOW! It worked! @Joan_Sparky Thank you!!! Thank you!!! Thank you!!!
You are right about the meaning of helix. I was using it all the time because of the Autocad tool.
just in case - as you said you’re not so fluent with python - you found how to manipulate the spiral (turns, track spacing, CW/CCW, etc.), by modifying the ‘helix.py’ code, yes?
I’m interested in creating a spiral but I need to know the steps one by one. I downloaded the code “KiCAD_CopperSpiral_v2.py” But I can not use it … not know how to use the original code (copy / paste) First use “Windows 10 x64bit” The file is located in C: \ KiCAD_CopperSpiral_v2.py
And I’ll kicad, I press “python scrips display console” and paste the code: siguiente…pero and appears not to do after eso…hacia where I point the mouse pointer or should I type to pop me the spiral?
I really think that writing on the front line “execute …” is unnecessary …
because of the way I hit the code to the console without changing anything
I do not know
sorry for my bad English
many thanks
Those last lines of output… you need to put that into a .kicad_pcb file pretty much at the end.
Create a project with schematic and then create a track in pcbnew for that.
Save everything.
Then open the .kicad_pcb file in a text editor.
Study where the track element is and then add the output of the python script at that place.
Save the file.
Open in pcbnew again and the spiral should be there.
Just curious as to what you are using the spiral for, inductor, antenna, …?
Why not create a module that can be saved to a library and manipulated like any other footprint, associated with a schematic symbol and be DRC friendly?
ammm … I did not succeed … something I need and I can not figure …
This is what I do: I explain better in the pictures with respective order of numbers and letters …
previously I tried to paste the original code at the end of spiral outline text, then save your changes, and does not appear Pcbnew opened spiral
Is it necessary to have the “KiCAD_CopperSpiral_v2” file in c :?
…
…
or in addition also I paste the same code in the console window kicad?
Thank you very much for your patience again
When you open a command line interface and type this:
> python
What happens?
If it is installed you should see something similar to this in that window:
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
If that’s the case you should be able to run the python script for the spiral directly in the command line (type exit()) to get out of the python interpreter:
> copper_spiral.py
And you should see something like this scroll by in the command line window:
If that works collect the output of that script in a file. Under windows the command line for that would be:
> copper_spiral.py >> spiral.txt
Now onto the .kicad_pcb file.
Get something like https://notepad-plus-plus.org/ and open a simple project like with what you got up there.
Navigate to the folder and open the .kicad_pcb file of it. Scroll down to the bottom of that file. Should look something like this:
Attached is a minimal header needed, for File.Append Board to work, to import the Spiral.
(saves the user file edit steps)
Example has (net 0), if the net number inserted is > 0 & not valid, PcbNew spits an error code.
Normally, you would find the specific design ‘attach-net’ number, then use that in the script.
Well, it is not my intention to disturb or something like that. I do not want cause extensive repost the question that has already been resolved. I apologize for the misunderstanding is that sincerely to create the spiral that need it slipped from my hands light years.
Perhaps if Joan, or otrousuario friend of charitable soul could create me the zip file so as not to continue taking away your valuable time, you would appreciate forever.
Specifications are
for a circular PCB; = 15.5 mm perimeter
Spiral top thickness (the minimum allowed) 0,2 mm
separation of spiral lines (0.1 mm) or 0,3
number of turns: 8 spirals
sense of turns and direction of a clock (sa the same)
It is also important to start from the outside in
separating the perimeter of the PCB with respect to the first line of the spiral: 0.2 mm or 0,4
Well, thank you very much for all the information they have provided both community and also thank you confidence management forum.
A sketch:
when I get to finish the prototype in approximately 20 days I will send you real images of the physical creation of this thanks to you who are the only ones who can get me out of this mud swamp move that leaves me like water flowing in the rivers. I’m really stuck
beforehand an affectionate greeting and again apologize for the time that this entails. thanks infinity
Really wonderful, wonderful, sublime! only detalle…voy to try to change the format of the spiral that is not copper (should not be yellow)
I think I should edit the file py right?
You do not know how much I appreciate your dedication and passion for kicad. You’re great !!, you have a good day full of good vibes