@sebastian Thank you for your help. Really appreciate it. However, nothing worked for me to translate the following into python codes, although I was able to do it some other way it is extremely slow because of the loops that it contained! If anyone…
@tagger5896 Thanks for the codes. I already defined the circle and it works as it is supposed to. However, the problem is I don't understand in the above scripts, how I should call the circle in the "fill_region" function correctly and how…
Thanks very much for your support @Matthias @EugeneZelenko
@Matthias I understood the first point you made. But I still don't understand how I can fix the while loop so that it will terminate and how I should define "circle" in a way that…
@EugeneZelenko
Many thanks for your help. That solved the while issue but for some reason still the filling does not work!!
fc_box = pya.DBox(...) # fill cell footprint fill_margin = pya.DPoint(self.channel_pitch, 0) # x/y distance between…
The "Merge" function perfectly works as mentioned above by @Matthias or by @tagger5896 when I make a layout and work within the layout environment as follow:
region = pya.Region(planacon.begin_shapes_rec(metalrf))region.merge()layout.clea…
@Matthias @tagger5896
I used the following script to merge the polygons, but it seems not working. Do I make a mistake here? :/
for n in range(0, 4): box4 = pya.DBox(0.0, 0.0, self.planacon_port_width, self.planacon_port_height).moved(-(s…
@EugeneZelenko
Thanks for your response. I have already used the Text Class to label the ports, and I can basically draw traces knowing the coordinates of each port. However, for each trace between two ports I need to calculate the coordinates of t…
@Matthias I was just looking for some examples that I can follow to learn how to script for a layout. However, I have already started writing the script and am baby-step learning the details. Thank you for your amazing support here.
@hleduc
I know that this is a bit old discussion, but wonder if you have tried the Python codes yet? I also have the same problem and it has made me miserable! :neutral:
It actually doesn't show me any error. Everything sounds working fine, but af…
@tagger5896 Thanks very much for your response. I saw this thread before. However, I feel like this should be much easier than the thread. Also, what I'm trying to do should be a bit different from that thread.
I'm trying to create a layout from sc…