Online Spiral Generator for PCB EasyEDA
57 2
zz555 4 days ago
Online Spiral Generator for PCB EasyEDA [https://zxlogin.com/spiral/](https://zxlogin.com/spiral/)<br> <br>
Komentáře
andyfierman 4 days ago
@zz555, This seems like the beginnings of a really good plugin for EasyEDA but there are some things that need a bit more work. 1) Relying on a proprietary, commercial 3rd party tool is less than ideal. Not everyone has or can afford a legal copy of Photoshop. The good news though is that it seems possible to use the Free and Open Source Software tool, Gimp, to edit the line width of the generated PNG file. I have not explored it fully but the following steps are nearly right. (At the moment the exported image has a border round ti which I have not worked out how to avoid.) Open the file in Gimp; Click on the Fuzzy select wand in the Toolbox Tool Options pallette; Click on the image in Gimp click Edit >  Stroke Selection; Change the Line Width; Click Stoke; File > Export As... to export as a PNG. The line width of the image after exporting from Gimp is not great but that might be my inexperience with Gimp. 2) There is howwever a bigger problem because in EasyEDA it is not possible to assign a net name to copper imported as an image. It is also not possible to convert copper imported as an image to a track or a pad. This creates DRC errors when trying to connect from a track to the copper of the spiral. The following topics describe some of the issues. [https://easyeda.com/forum/topic/How-to-design-a-PCB-Lib-for-a-PCB-Antenna-efa50ba1cdd9433c958ceedbad520398](https://easyeda.com/forum/topic/How-to-design-a-PCB-Lib-for-a-PCB-Antenna-efa50ba1cdd9433c958ceedbad520398) [https://easyeda.com/forum/topic/How-to-avoid-DRC-errors-when-connecting-to-PCB-Footprints-a-k-a-PCB-Libs-90bf944fe3644b21a7d27a9e9d8df8d6](https://easyeda.com/forum/topic/How-to-avoid-DRC-errors-when-connecting-to-PCB-Footprints-a-k-a-PCB-Libs-90bf944fe3644b21a7d27a9e9d8df8d6) [https://easyeda.com/forum/topic/Copy-existing-PCB-from-a-scan-bdd1817ca030420c8139b06781f45983](https://easyeda.com/forum/topic/Copy-existing-PCB-from-a-scan-bdd1817ca030420c8139b06781f45983) [https://easyeda\.com/forum/topic/Import\_custom\_PCB\_layout\_from\_Fusion\_360\-9USQOMJHF](https://easyeda.com/forum/topic/Import_custom_PCB_layout_from_Fusion_360-9USQOMJHF) [https://easyeda\.com/forum/topic/Pre\_Designed\_PCB\_into\_EasyEDA\-nt20YWwol](https://easyeda.com/forum/topic/Pre_Designed_PCB_into_EasyEDA-nt20YWwol)<br> <br> There may be a way to export or convert the PNG file to an SVG file and then use Andreas Bernhofer's ESVG Import xtension: in [https://easyeda.com/forum/topic/Extension-User-Extensions-for-EasyEDA-Summary-9e065b68316f4491a3911dc6204be31e](https://easyeda.com/forum/topic/Extension-User-Extensions-for-EasyEDA-Summary-9e065b68316f4491a3911dc6204be31e)<br> <br> 3) Better still, add an adjustable width function to your tool and the ability to export it directly as an SVG file. :)
Odpovědět
andreasbernhofer 3 days ago
@zz555 You can use a script directly in EasyEDA to create the spiral. Go to `Advanced - Extensions - Run Script...` and run this, which is just a copy of your code, adapted to use the API: ``` js source = api('getSource','json'); d = 100; s = 3; l = 1000; centerx = source.canvas.originX; centery = source.canvas.originY; points = []; for (i=0; i<l; i++) { a=0.1*i; points.push({ x: centerx+(d+s*a)*Math.cos(a), y: centery+(d+s*a)*Math.sin(a), }) } api('createShape',{ shapeType:'TRACK', "jsonCache": { layerid: "1", strokeWidth: 10, pointArr: points } }); ``` The scale is off, as the base unit in EasyEDA is 0.01 inch, but I guess you can use that to generate a proper script :)
Odpovědět
Pro přidání komentáře se musíte Přihlásit nebo Registrovat
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.