Prevent schematic traces from being draw...
Hi, I am trying to solve issue https://github.com/tscircuit/core/issues/1264 but I'm having trouble finding a good solution. The idea that comes to mind is to introduce 'keep-out' regions in the space where the solver is not allowed to place line traces. This would require adding a new parameter to the InputProblem to define the dimensions of the text labels. Am I on the right path?
12 Replies
core will be passing the netLabel widths to the trace-solver, I have made a PR sometime back about the netLabelWidth
I am looking into the NetLabel.ts file. Currently, I do not see any logic regarding how to obtain the width and height. A link to the PR would be great, so I can understand how you calculate the width.
This is the PR which is yet to merge in
core
, but you shouldn't be blocked by this. You can create an example in trace-solver where the netLabels have the width and proceed with it.
https://github.com/tscircuit/core/pull/1322Thanks, I will make a test case and proceed with that
Just want to make a note: For this issue I think we should introduce a new pipeline phase that reroutes traces that go through net labels that were assigned "as a fallback" rather than introduce keepout areas outside of pins.
It is possible the keepout solution will work or even be better, but it has a "phantom netlabel routing" issue where traces won't be routed where net labels COULD be, which may look weird or counterintuitive in some cases
@Seve is the kind of solution you guys are looking for?

cc: @Rishabh
Yeah, It kind of looks good to me

Probably ok, it might be messier than doing “larger shifts”, but can look at pr to decide! Nice work!
https://github.com/tscircuit/schematic-trace-solver/pull/60
@Seve @Rishabh
GitHub
Prevent schematic traces from being drawn through net labels by 0hm...
ref: #1264
introduce a new solver that will run at the end and adjust the labels
@Rishabh Could you take a look at this comment you left? I fixed it up with some new logic https://github.com/tscircuit/schematic-trace-solver/pull/60#discussion_r2345881928
Sorry for retagging, but I put the last message in the wrong thread. Rishabh deleted that and putting it here!