Copy & Paste Duplicating
708 30
duritskiy 7 months ago
Previously, it was possible to copy part of the scheme, and then paste the duplicate, then save the scheme, then go to the PCB and copy and paste the corresponding part there (already correctly placed), and if the changes were imported after that, then the scheme and the board became synchronized and the layout of the components on the board was preserved, which greatly facilitated the work. In new versions, this feature is gone. Since after importing changes, all new components are removed, and then added again, but in discord. Return this feature, please, as it was And it would be good if nets of new wires were automatically renamed after synchronization. Because earlier it was necessary to delete from it and anew to trace.
Comments
andyfierman 7 months ago
Would this help: [https://easyeda.com/forum/topic/Duplicate-PCB-for-multiple-printing-with-same-component-s-numbers-6f36c5cbcd7a414f82ba97027da7b743](https://easyeda.com/forum/topic/Duplicate-PCB-for-multiple-printing-with-same-component-s-numbers-6f36c5cbcd7a414f82ba97027da7b743)
Reply
duritskiy 7 months ago
1) andyfierman, thank you for the offer, it is interesting, but it does not solve the problem. 2) Once again I will explain the problem: Let's say you need to design an optocoupler expansion board for the Arduino Mega. Arduino has about 50 pins. The optocoupler circuit of one channel contains about 10 components. As a result, you need to place about 500 components. And this is very difficult without some automation. Previously, PCB synchronization did not spoil the placement of replicated components. And now, the program first deletes all manual replicated components, and then creates them again in the heap (with the same prefixes). 3) The last update did not fix anything in my problem.
Reply
duritskiy 7 months ago
Why this project is synchronized without loss [https://easyeda.com/duritskiy/test2](https://easyeda.com/duritskiy/test2) but this spoils the placement of components [https://easyeda.com/duritskiy/pushkin-2019](https://easyeda.com/duritskiy/pushkin-2019) Dear developers, please correct the problem
Reply
andyfierman 6 months ago
If I copy both of those projects to my own then open them and do **Update PCB...** from the Schematic or **Import Changes...** from the PCB then for test2 I get: ![image.png](//image.easyeda.com/pullimage/o5OvqyDezy0nTbls9au27FRPOKK4Vk0aGWCUHtOU.png) and for pushkin-2019 I get: ![image.png](//image.easyeda.com/pullimage/tiRRaSsYiT13LAfRbjucIUIhhVpRTtofi8bQiMJw.png) because there is a difference between the net name joining R1 and R3.
Reply
andyfierman 6 months ago
Sorry but I'm not sure I understand the problem from looking at those two projects.
Reply
duritskiy 6 months ago
``` Yes, one project works as it should, and the other looks the same, but it does not work correctly. So I'm trying to understand their internal differences, and how to fix "2019 Pushkin_PCB.json" so that it also shows "PCB is the same as SCH". I am trying to understand the logic of the program algorithm. I also noticed that the connection between the resistors have different names. I even tried to replace OP1_3 with R1_1, but after importing the modified JSON both resistors disappeared altogether. ```
Reply
duritskiy 6 months ago
    "LIB\~4004\~2993\~package\`0603\_BIG\`\~90\~\~gge1779\~1\~**a1b3b1516f4e48ee993459629981a0fe**~**1553623143**~0~**354eaaf4c3f7c95d**#@$ I have not found a description for these parameters. What is it? **a1b3b1516f4e48ee993459629981a0fe    -  **I suspect it is crc MD5, but what? ![dif.jpg](//image.easyeda.com/pullimage/bFpGeAy87lfwdwKweQLBk9caMGLBp7RxWNMzdqba.jpeg)
Reply
UserSupport 6 months ago
Hi at v6.1, we add a unique ID for each part, bettwen Schematic and PCB, if you just copy and paste, the schematic part's unique ID can't match the PCB part's unique ID, and then when you update PCB , the editor can find the part by unique ID, then it will remove all extra part, and place correct one. EasyEDA doesn't provide unique ID edit option yet, but if your design is not complicated, you can edit the EasyEDA source file, to make them unique ID as the same. but that will take a loog time, suggest just layout. how to edit the unique ID? 1、you must make sure the schematic is creating at v6.1, not save as, not copy and paste, not clone 2、the PCB must created by the schematic converting 3、export the schematic and PCB EasyEDA source file, and open them 4、find each part by prefix, copy the Schematic unique ID and paste to PCB source file, at the correct location ![图片.png](//image.easyeda.com/pullimage/zaxoaYZmdaeGJKks69gf0AFSwKEeAzwMhJXtDR4U.png) PCB ![图片.png](//image.easyeda.com/pullimage/SwxEvU6S5jA87YzjORlSiiwWHS6rXsseFFai19qx.png) 5、when finish, copy the PCB text and paste in PCB EasyEDA source dialog, and apply。 ![图片.png](//image.easyeda.com/pullimage/C8koxHuOiN3ASyL8RU2Z5kEfgn4UBeT3CCEJUIXs.png) 6、and then the PCB unique ID will match the schematic. Thank you
Reply
duritskiy 6 months ago
I noticed another glitch. [https://easyeda.com/duritskiy/test3](https://easyeda.com/duritskiy/test3) if I open test3pcb, and then open "EasyEda File Source", then replace the net name "R1_1" to "NET1", and after click APPLY, both resistors will disappear. And even if you again change "NET1" to "R1_1", then the resistors will not be restored. It will only help to close "test3pcb" without saving and reopen
Reply
UserSupport 6 months ago
@duritskiy Hi Issue confirmed, it should be a bug. thank you
Reply
duritskiy 6 months ago
If you open any PCB, and then open "EasyEda File Source", and then click APPLY, everything disappears
Reply
duritskiy 6 months ago
var json = api('getSource', {type: "json"}); api('applySource', {source: json, createNew: !true}); ``` Even here such a simple script leads to an error after several starts, and maybe even after one. I have this problem alone? ```
Reply
duritskiy 6 months ago
I determined exactly this BUG. Bug occurs when you run this script or in "EasyEda File Source" click to Apply button, **If the PCB zoom is 1000% or more**. If the PCB zoom is 750% less, then there are no errors! Please fix it!
Reply
duritskiy 6 months ago
``` When will you release the next update? ```
Reply
duritskiy 6 months ago
**What's New in v6.1.48** Fix after import changes, delete copper area fail issue ``` I understand that my problem is not solved yet? ```
Reply
duritskiy 6 months ago
ReNumberScript.js : [https://yadi.sk/d/I67wIVHw491s8A](https://yadi.sk/d/I67wIVHw491s8A) ``` This is my solution to the problem. I will use it until the Easyeda developers fix it in their codes. The meaning of the script is: In SCH mode, the script renames all components according to their order. For example, R4, R7, R8 -> become R1, R2, R3. In PCB mode, the script also renames all components according to their order. And also reconnects the network of all wires. To create duplicates correctly, you need: 1) Run the script in SCH mode 2) Select and copy the necessary part of the scheme using ctrl + c, ctrl + v 3) Save changes to SCH 4) Open the PCB and also run the Script first. 5) Now you can also duplicate the necessary part of the scheme via ctrl + c, ctrl + v 6) Click on the "Import Changes" button 7) And again run the Script so that it renames all the wires correctly. ```
Reply
andyfierman 6 months ago
@duritskiy, Thanks for posting that.
Reply
duritskiy 6 months ago
VIDEO: [https://yadi.sk/d/NFrmMSeZZoYg_w](https://yadi.sk/d/NFrmMSeZZoYg_w)
Reply
duritskiy 6 months ago
[https://yadi.sk/d/Dcy1KEw_d0Rr-w](https://yadi.sk/d/Dcy1KEw_d0Rr-w)
Reply
duritskiy 6 months ago
UPDATE [https://yadi.sk/d/I67wIVHw491s8A](https://yadi.sk/d/I67wIVHw491s8A)
Reply
duritskiy 6 months ago
UPDATE [https://yadi.sk/d/I67wIVHw491s8A](https://yadi.sk/d/I67wIVHw491s8A)
Reply
duritskiy 6 months ago
[https://yadi.sk/d/I67wIVHw491s8A](https://yadi.sk/d/I67wIVHw491s8A) another update. I hope the last. Does anyone need this?
Reply
Thoughtyness 5 months ago
@duritskiy Yes. I have been trying to figure out how to do this exact thing for days, as it is infeasible to do it manually. I was really excited when I saw the video, unfortunately I'm not anymore because it doesn't work on my project. I have followed all of your steps exactly and watched the video with no success. I believe part of the problem is with EasyEDA and not your script-regardless, it doesn't work but I do need it.
Reply
duritskiy 5 months ago
If your share your project, i can create one more video, that will show you how to use my script. Sorry for my english :)
Reply
duritskiy 5 months ago
today i found and fixed one bug, and this update: [https://yadi.sk/d/MUeNNxXA4ULpLQ](https://yadi.sk/d/MUeNNxXA4ULpLQ) I hope you did not forget to install the scripts in the system through "Tools-> Extensions-> Load Script" It looks like this to me: ![11111111111111111111.jpg](//image.easyeda.com/pullimage/E7gxAHeMP2I9GHomLrHNzRFQMoXSpBeKFUe05tCT.jpeg)
Reply
duritskiy 3 months ago
New algorithm is faster. How to install scripts: [https://yadi.sk/d/Jmtk-HBQxYcv3Q](https://yadi.sk/d/Jmtk-HBQxYcv3Q) This is an example of copying from one project to another: [https://yadi.sk/d/Yu7dzEj7NO3dXA](https://yadi.sk/d/Yu7dzEj7NO3dXA) This is an example of how you can change the name of Net in SCH and then synchronize it with the PCB: [https://yadi.sk/d/Oo_l5pakWhD-KQ](https://yadi.sk/d/Oo_l5pakWhD-KQ)
Reply
tobalt 3 months ago
Dear duritskiy, I am happy that you add this **BADLY NEEDED** feature to easyeda. I hope that easyeda will add this as a native functionality **soon**. I have a large board where many hardware blocks need to be multiply placed for different channels. I am sure that many people are facing the same problem. I wonder why this thread is not more crowded. I will try it and report any errors in case there are any. Tbh I got a little lost which version of the script is up to date.
Reply
tobalt 3 months ago
Ok, I have trouble executing this script. I have downloaded and installed your 4 .js files. When I click the MyExtensions button at the top I get 4 items there: ReNumberScript.js, ShowHidePref.js, ShowScriptDialog.js, UnRouteSelected.js When I click ReNumberScript, I get the error: "Syntax error: Illegal character" So I watched again the video from your post above: [https://yadi.sk/d/NFrmMSeZZoYg_w](https://yadi.sk/d/NFrmMSeZZoYg_w) However, I cannot follow those steps because when I click run script on top, I get an empty window. If I load the ReNumberScript before running, I get the same error as mentioned before. Your newer videos don't really help me either, because you have scripts there that I don't have. Maybe I have missed something. Also in the new videos, you do not show how to duplicate a group of hardware as you showed in your older video. Unfortunately I am quite confused now. Maybe you can give me some pointers. Another question I have is: How does the script work with multi-schematic boards. I have for example 9 schematic sheets that all contain parts going into the same board. Best regards, Tobias
Reply
duritskiy 3 months ago
I rewrote the script, now it is more convenient and faster video: [https://yadi.sk/d/zdnlyLj2Iktc-A](https://yadi.sk/d/zdnlyLj2Iktc-A) scripts: [https://yadi.sk/d/MUeNNxXA4ULpLQ](https://yadi.sk/d/MUeNNxXA4ULpLQ)
Reply
duritskiy 3 months ago
``` This is how ReplaceSchlib.js works ``` [https://yadi.sk/d/AAkDAyzYrXLaUg](https://yadi.sk/d/AAkDAyzYrXLaUg)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.