I am trying to find skill function or develop a skill script that would provide me co-ordinates
of silk screen of a component. I was not able to find such function.
Could anyone please help me with this?
Dave Elder, Tait Communications
In reply to eDave:
Dave, Thanks for your reply.
Your method worked for getting the silkscreen coordinates for components.
Now, I was trying to get coordinates for "BOARD GEOMETRY/SILKSCREEN_TOP".
I tried using "axlLayerGet(layerName)" and it gave me param dbid of layer.
However, I was not able to extract any co-ordinate or shape related properties from it.
I also tried, getting shapes on "BOARD GEOMETRY/SILKSCREEN_TOP" layer
shapeList = axlDBGetShapes("PACKAGE GEOMETRY/SILKSCREEN_TOP");
It is returning null list.
Does anybody have worked on this previously and have any idea how to get this information?
In reply to KetCadence:
1/ Layers don't have any shape-related properties.
2/ axlDBGetShapes will only return shapes. Chances are that you don't have any shapes on that layer - just lines and text.
As you suggested, there are no shape properties involved with "BOARD GEOMETRY/ SILKSCREN_TOP".
I guess there should be some lines, clines associated with it.
So, I was trying to get hold of those line objects in order to get required extents of silkscreen.
I came acorss an utility developed by you called autoSilkUtils_public.il
One of the change log in header information suggests:
"8.20 26-Aug-09 DE Also select associated objects that do not have a parent - such as board geometry text."
So I was searching for the function related to above mentioned functionality.
I found function called "findTypeObjects (types @key visibleOnly, layers, attrPairs, props, bbox, point, xy)".
If I am correct, it is related to functionality related to above change log.
I tried to use it as follows:
objs = findTypeObjects("LINES", ?layers "BOARD GEOMETRY/SILKSCREEN_TOP")
It gave me one dbid, but I am not able to identify what it is exaclty.
I tried to print "objs->??", and it is nil.
Could you please let me know, if this functionality could be used to get hold of line objects
present in BOARD GEOMETRY/SILKSCREEN_TOP ?
I am trying to debug this thing, but since I am new to this kind of scripting it is difficult to understand.