summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPSR00012023-06-29 19:16:39 +0530
committerPSR00012023-06-29 19:16:39 +0530
commit09d8daaa4ccf62ae28a5989d893cedfb26a6ffb8 (patch)
tree7e7efb2acee7587f0204972ebeef8f5907ad7ac1 /src
parent21f47301263ac8ac36cf1a3733dbe6df3ae375ce (diff)
downloadeSim-09d8daaa4ccf62ae28a5989d893cedfb26a6ffb8.tar.gz
eSim-09d8daaa4ccf62ae28a5989d893cedfb26a6ffb8.tar.bz2
eSim-09d8daaa4ccf62ae28a5989d893cedfb26a6ffb8.zip
draw_pos_rec variable added
Diffstat (limited to 'src')
-rw-r--r--src/maker/createkicad.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/maker/createkicad.py b/src/maker/createkicad.py
index 6e5a2d1b..8e4faa1b 100644
--- a/src/maker/createkicad.py
+++ b/src/maker/createkicad.py
@@ -238,11 +238,17 @@ class AutoSchematic:
draw_pos = self.template["draw_pos"]
draw_pos = draw_pos.split()
- draw_pos[4] = str(
- int(draw_pos[4]) - self.findBlockSize() * self.inc_size)
+
+ draw_pos= [w.replace('comp_name', f"{self.modelname}_0_1") for w in draw_pos]
+ draw_pos[8] = str(float(draw_pos[8]) + float(self.findBlockSize() * self.inc_size)) ##previously it is (-)
+ draw_pos_rec= draw_pos[8]
+
self.template["draw_pos"] = ' '.join(draw_pos)
- lib_file.write(self.template["draw_pos"] + "\n")
+ lib_file.write(
+ self.template["draw_pos"] + "\n"+
+ self.template["start_draw"] + " \""+ f"{self.modelname}_1_1\""+ "\n"
+ )
input_port = self.template["input_port"]
input_port = input_port.split()