asdasdasd
API moveObjs reports ERROR
I have some scripting I used before to auto-place a large number of footprints in a specific configuration. I haven't used it in a while. Just tried and I'm getting a generic error. It seems to specifically be the moveObjs method that causes the problem. Here's the script and the error... api('moveObjs', {objs:["gge1404"], addX:75,addY:0}); The interesting thing is that most of the object moves but it leaves some of the pads behind. If I move the object after this it snaps the pads back into the correct location. So that's kind of a workaround. Except that the script stops when it gets this error. So I can't run it in bulk. I would have to enter the command one at a time and then move it slightly for each of the 108 items I have to place. Not so automated. Any thoughts on what the error might be? Was there any change in the moveObjs API call that might have caused a bug? I tried some other PCB lib objects that aren't my own and I at least get the error even if in some cases everything moves. So it doesn't appear to be directly an issue with my lib. Thanks. #BugReports#
BillyBuerger 2019-10-09 13:14:43 comment 4 0 Bug Reports
Create a track in API
I have some very specific tracks I'm trying to create on my PCB. Placing by hand is slow and difficult to get right. I already have some scripts I created to place my footprints automatically based on my known coordinates. So I'm trying to figure out how to place some tracks around the footprints with my known coordinates as well. But I'm not seeing anything in the API reference for doing that. I see examples of createShape and insertShape using the shapeType polyline and path. But neither of these examples seem to actually do anything. Is this possible? #PCB#
BillyBuerger 2018-10-11 20:25:00 comment 8 0 Circuit Design
api select not working
I have a script that I use to auto-place a large number of components in the exact X/Y locations that I have defined. The script clones an existing object, selects it, then moves it to the desired location. It worked a couple months ago but it seems the editor has been updated since then. When I try to run it now, it just gives a message that says "error". I narrowed it down to the call to select. I can even hard-code it like in the documentation example and it doesn't work... api('select', {ids:["gge5"]}); Did something change in the api or is there a bug that's causing this not to work? #BugReports#
BillyBuerger 2018-03-22 13:02:30 comment 4 0 Bug Reports