markh-de / KiVar

PCB Assembly Variants for KiCad
MIT License
28 stars 0 forks source link

Any way to set EXCLUDE_FROM_SIM with kivar #74

Open Jajcus opened 3 weeks ago

Jajcus commented 3 weeks ago

I would like to simulate various variants of my board. In this case variants differ by what components are included/excluded, so I would like to toggle 'Exclude from simulation' attribute together with 'Do Not Populate', but I cannot find a way to do it.

Is that possible with KiVar? What would it take to add this functionality?

Of course not every 'DNP' should mean 'exclude from simulation'.

markh-de commented 3 weeks ago

As KiVar relies on the pcbnew API wrapper and therefore only has access to the PCB data, I fear the answer is: No, it can't be done. Because the "Exclude from simulation" attribute is only present in the schematic and not synched to the PCB.

It would require having that attribute available in the PCB (which wouldn't make much sense), an API call to R/W-access the attribute state and also 2-way synchronization of the attribute state (because eventually you want to see the attribute state back in the schematic).

Sorry, but I don't think this feature can make it into KiVar. :disappointed:

Jajcus commented 3 weeks ago

Fair enough.

Manual setup seems to work well enough for me now… until a make a mistake and not notice it.