You need to use EasyEDA editor to create some projects before publishing
API Tutorial
672 5
lmatsiev 4 years ago
Why the following code does not add an arc to a schematic lib?:     api('createShape', {         "shapeType": "arc",         "stroke": "#8D2323",         "stroke-width": "1",         "cx": 400,         "cy": 300,         "rx": 20,         "ry": 20,         "start-angle": 0.1,         "end-angle": 2.7    }); Thanks!
Comments
UserSupport 4 years ago
Hi Please delete the repeat topics. we will fix the repeatly topics issue. thanks ![图片.png](//image.easyeda.com/pullimage/Inel3oy8EFYY95cNteMAgrm2u5tOB3FqP5KmIQPr.png)
Reply
andyfierman 4 years ago
@lmatsiev, I replied to one of you posts but I think that has now been deleted along with my reply. Have you found these two Tutorials? [https://docs.easyeda.com/en/DocumentFormat/0-EasyEDA-File-Format-Index/index.html](https://docs.easyeda.com/en/DocumentFormat/0-EasyEDA-File-Format-Index/index.html) [https://docs.easyeda.com/en/API/1-How-to-Use-API/index.html](https://docs.easyeda.com/en/API/1-How-to-Use-API/index.html)
Reply
lmatsiev 4 years ago
Yes I did and I replied, but [UserSupport](https://easyeda.com/UserSupport) requested that I remove all repeating posts, presumably except the one [UserSupport](https://easyeda.com/UserSupport) replied to. These documents do not help much, they are in the same state they have been for at least the last 3 years. The example "example 1 Art" with fancy shapes did not work back then and still does not. From the limited examples I managed to get the circle and polyline do what I needed, but not the line, arc and pin. For example, I can place pins programmatically, but can change neither the pin name nor pin number. Guessing the internal structure of arc object or line object from hoping that they should be similar to ellipse and polyline turns out to be futile. Is there some document describing the object structure or properties for the objects listed here: [https://docs.easyeda.com/en/API/3-API-List/index.html](https://docs.easyeda.com/en/API/3-API-List/index.html): Schematic 1. `shapeType`, `schlib`, `rect`, `polyline`, `polygon`, `wire`, `bus`, `image`, `circle`, `ellipse`, `line`, `path`, `arc`, `annotation`, `junction`, `netlabel`, `busentry`, `arrowhead`, `noconnectflag`, `pin`, `netflag` 2. PCB `shapeType`, `FOOTPRINT`, `TRACK`, `COPPERAREA`, `SOLIDREGION`, `RECT`, `CIRCLE`, `TEXT`, `ARC`, `DIMENSION`, `PAD`, `VIA`, `HOLE`? [UserSupport](https://easyeda.com/UserSupport) also replied "The API tutorial we didn't update it for a long time, we are using the resource to develop for more important task. when we finish, we will update the API tutorial" Does not sound like there is much hope.
Reply
andyfierman 4 years ago
Sorry but I can't help either. I'm not aware of any other documentation about the scripts or the api.
Reply
lmatsiev 4 years ago
Thanks! I thought there should have been some obscure code on GitHub or Google Drive or somewhere we could dig through and figure out those objects... Writing documentation is understandably laborious, but since the code is already there somewhere, giving the motivated users access would make sense. Our only hope is [UserSupport](https://easyeda.com/UserSupport).
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