KiCad StepUp: The Sketcher for Footprint generation

Hello @maui, first I would like to thank you for the creation of this plugin.

I designed a PCB with KiCad and want to import it in FreeCAD. Everything but the import of the filled zones work out of the box. After a little investigation it seems to me that there is a problem if a copper zone fill is active on more than one layer (in my example top and bottom). I have attached a minimal example.
To reproduce, open in KiCad and make sure the copper zone fill is active on only one layer. Import in FreeCAD including the copper works as expected.
Change the zone to be active on Top and Bottom layer, import again in FreeCAD and the copper zone is not included.

FreeCAD_zone_example.kicad_pcb (16.6 KB)

Is this a know limitation of your plugin?

Version Numbers

FreeCAD Version: 0.19.24291 (Git)
KiCad Version: (5.99.0-11550-g369d813a32), release build
kicad StepUp version 9.7.8.2

@fox
ATM this is an issue in track loading and it seems to be also in fcad_pcb which is the library I use for parsing and generating the tracks.

Thanks for the feedback.

1 Like

it should now be fine with latest update

I have another question concerning the mask layers. Is it possible to see them in FreeCAD? Iā€™m making an aluminum housing for the filters in the previous posts and I would like to be able to see the exposed areas of the pcb to ensure there are no mistakes. You can imagine it like this:

image

The exposed ground areas will have metal walls contact them from the housing.

Hi @dom11990, have you started to write a little tutorial?
I would be very happy to add it to ksu WB.

Iā€™m going to see if I can add the option to load a Mask area inside FreeCAD.
Do you have a demo board to test it? (you can send it in PM if you prefer).

hey @maui I have to admit that I have not. I will though! What format would you prefer? Should I put everything into a Writer document and you add the styling you have for your other documentation? Where should I post it? I will do it this weekend.

a Writer or Drawing document (best if made in LibreOffice) would be fineā€¦

there are some two documents in KSU demo folder (or at the repo):
kicadStepUp-cheat-sheet.odg
Generating-a-KiCAD-footprint-and-Model-from-3D-Step-Data-Rev02.odt

you can post it here or through PM

many thanks :smiley:

@dom11990 any news?
I have a quite usable version to release about the mask layers ā€¦

1 Like

@maui yes I have the text and pictures. It needs some polish though. Still working on it. Unfortunately, a work deadline got moved up 3 weeks so Iā€™m in crunch mode now and have to push this a bit :frowning: I will send you what I have and perhaps you could at least comment on my workflow?

1 Like

Yes, I will look into it.

1 Like

Hi Maui,
Iā€™ve been using Kicad StepUp for a long time and think itā€™s a great tool, the improvements you have been making have been a great improvement.

Iā€™m having an issue with a downloaded model were the face colours all get messed up after I have set them the way Iā€™d like and then export the model via Kicad StepUp
178-009-613.step.zip (334.0 KB) .

All Iā€™m doing is the following:

  1. Importing the attached step file into a new Kicad V0.19 document.
  2. Select the imported body and choose the ā€œSet colorsā€¦ā€ from the context menu.
  3. Select all faces and change the color to ā€œMetal Silverā€ 129,129,129.
  4. Select the different faces I which to change the colors of. For example change the pins to ā€œGold Pinsā€ 219,188,126.
  5. Select ā€œOKā€
  6. Save the file.
  7. Export to ā€œ3d Model to Kicadā€ via Kicad StepUp v10.1.3.2, use all default values or export.

Once the Step file is generated the model will change colors.

Are you able to look at the attached model and indicate what I am doing wrong, If possible could you even correct the model so that I can color and export it successfully.

Thanks for any help you can provide.
Kenneth

hi @kkeeley
Iā€™ve changed the routines to add a new feature in step export, but it seems Iā€™ve added an issue with my latest update.
I will have a look asap.
For the moment you can use this commit
kicadStepUpMod previous commit
Thanks for reporting

@kkeeley
Hi Ken, Iā€™ve reverted the commits to avoid, ATM, the STEP transparency attribute ā€¦
You can update the version and it should work as previously.
Iā€™ve also added this function to the Undo FC history of commands.

1 Like

@dom11990
Iā€™ve updated the tool to push-pull from/to kicad_pcb a FillZone, KeepOutZone and Mask Zone.

1 Like

@maui
Thanks for the quick work around, Iā€™m glad it wasnā€™t me that was doing something wrong. Hopefully you will resolve the issue quickly and can then restore the features lost by the reverting the code back to before the issue.

@dom11990:

Iā€™m making an aluminum housing for the filters in the previous posts and I would like to be able to see the exposed areas of the pcb to ensure there are no mistakes.

Perhaps you can use the power of FreeCAD? Import the finished pcb into FreeCAD with the KiCADstepUP tool, then import STEP model(s) of your aluminum parts, and then use one of FreeCADā€™s assembly workbenches to assemble the whole thing. You can make the aluminum parts a bit transparent, so you can observe if there are any problems.

Hey! Iā€™m trying to design a EMI/RFI shield for RF board, SatNOGS-COMMS and iā€™m stacking in footprint export from FreeCAD to KiCad. The FreeCAD model is placed here.


The problem is, when i create a sketch with RF_PolyLined Sketch the conversion to footprint, it has a result of unified plane and not the shape of sketch.

I would like to create a guide how to go from KiCad to FreeCAD and back to KiCad in order to create the EMI/RFI shield.

1 Like

Have you tried @maui StepUp plugin for FreeCad?

2 Likes

Hi @Agis

to get a Pad Poly in KiCAD you need to create a shape that does not a create a ā€˜closedā€™ ring
this is not fine:
image

this is fine:

Then in your user case, you need to break the shape, even with a small gap, and then create the poly line shape to be converted to kicad footprint.
Then you need to add a small circle inside the sketch to create the reference pad

emi_shield-v2.FCStd (657.1 KB)
emi_shield-v2.kicad_mod (46.6 KB)


btw nice board :smiley:

3 Likes

Hi @Agis
I see from your latest board commit that you have solved your fp issue and you have created it using StepUp.

Please feel free to contact me even in PM here to help you in creating the howto guide.

1 Like