Assign trace width to a net

Hello
How can we assign width to a particular net using Python API.
So that after routing the thickness of trace should be of that value, which is assigned to that particular net.

Thanks in advance.

If you do routing in python then just set width on the tracks.
If you want to create a netclass for the net then see How to create new NetClass using python

You will be able to set width on the netclass.

Thank you for your quick reply and I get your point
But here in this case the things are different and I know I can set the width on the net class using python. However, the thing is that what can be done with bottleneck trace? Because if I assign the 2mm to the particular trace ,then, when that trace connect to the IC having pad width of 0.5mm then it becomes irrelevant. So what to do with this bottleneck situation.

23

I don’t get the question or how it’s related to python.

KiCad does not have special support for bottleneck traces, you have to do them manually by changing width of a segment or several segments of the trace to desired value that is not necessarily same as netclass width.

You would do the same in python.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.