Arranging parts in PBC using API javascript code
Hello,
I'm having a board with some components, leds and capacitors. all the leds has a prefix with running numbers 1-200 and related capacitors with prefix of c1-c200
I searched for the API code for rotating and moving parts:
api('rotate', {ids:["gge2","gge3"],degree:90});
And for moving:
api('moveObjsTo', {objs:["gge2","gge3"], x: api('coordConvert', {type:'real2canvas',x: '10mm'}), y: api('coordConvert', {type:'real2canvas',y: '10mm'})});
The issue is that I don't know how to get the mapping between the IDs into the prefix, I was trying to rotate and move it via prefix without any success.
Does anyone familiar with how I can get the mapping between all my parts prefix to IDs? or moving parts via prefix?
#PCB#Circuit Design
Sign In Or Register Comment after
No comments yet. Be the first to comment!