You need to use EasyEDA editor to create some projects before publishing
Import Solid Region from DXF
722 8
mdredmond 3 years ago
I need to import a solid copper region designed in a CAD tool (it's a PCB antenna).  Is there a way to do this?  The DXF consists only of the outline of what will become the solid copper region and that imports okay.  I suppose another way to ask this is:  Is there a way to convert a closed polygon into a solid copper region? Thanks!
Comments
andyfierman 3 years ago
Convert it to an image then import it oversized and then scale it back down in the image import tool.
Reply
mdredmond 3 years ago
How exactly can it be scaled?  Dimensions are critical (because it's an antenna).
Reply
andyfierman 3 years ago
Simply multiply the dimensions in the DXF by an integer then divide the linear scaling of the image Import by the same integer. A better solution would be to construct the antenna directly as a PCB Footprint in EasyEDA, create an antenna Schematic Symbol and associate the antenna Footprint to that symbol. There are notes about how to do this and how to deal with the DRC errors that PCB PCB antennas generate in EasyEDA here: [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)<br> <br> [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)<br> <br> [https://easyeda.com/forum/topic/Yellow-cross-on-pad-component-d60f3f94a84f46559e5f7800e6964836](https://easyeda.com/forum/topic/Yellow-cross-on-pad-component-d60f3f94a84f46559e5f7800e6964836)
Reply
andyfierman 3 years ago
This topic has a detailed discussion one PCB antennas... [https://easyeda.com/forum/topic/Help-needed-with-NRF24-reference-design-fd56c235282a43bbb5dbd2a30c9ea581](https://easyeda.com/forum/topic/Help-needed-with-NRF24-reference-design-fd56c235282a43bbb5dbd2a30c9ea581)
Reply
andreasbernhofer 3 years ago
@mdredmond You can use [https://github.com/xsrf/easyeda-svg-import](https://github.com/xsrf/easyeda-svg-import) for a proper SVG import into a solid copper region
Reply
andyfierman 3 years ago
@mdredmond, @andreasbernhofer, Sorry, I'd forgotten about that solution. However, my comments about DRC errors and the problems with connecting to PCB antennas still apply. :)
Reply
andreasbernhofer 3 years ago
@mdredmond If you want to keep your DXF you can also create a solid region from a single(!) selected track with this script. Execute via Advanced - Extensions - Run Script... ``` js shape = api('getShape',{id: api('getSelectedIds')}); if(shape && shape.pointArr) { api('createShape',{ shapeType:'SOLIDREGION', 'jsonCache': { layerid: shape.layerid, type: 'solid', pathStr: 'M ' + shape.pointArr.map(p => `${p.x} ${p.y}` ).join(' L ') + ' Z' } }); } else { $.messager.error("No points from selected shape!"); } ``` The track doesn't have to be closed, it will close from the last point to the first point of the polygon.
Reply
mdredmond 3 years ago
Awesome, thanks gentlemen.  I think that's going to get me fixed up. Thanks!!
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 -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice